Re: [PHP] Here's my rounding

2012-09-27 Thread Simon J Welsh
On 28/09/2012, at 6:08 PM, Chris Payne wrote: > $test2 = '253177'; > echo $tes2 . " rounded to: "; > $rounded_number = round($test2,-3); > echo $rounded_number; > > Is it SUPPOSED to happy a number is sent to this little system and it's > SUPPOSED to round the number up. So if the number was 14

Re: [PHP] Round help needed

2012-09-27 Thread Daniel Brown
On Thu, Sep 27, 2012 at 11:05 PM, Chris Payne wrote: > Hi everyone, > > I'm having one of those nights where nothing is working, please help > > What I have is this: > > $rounded_number = round($test, -3); > > Here's the problem i'm having, I need it to increment to the nearest 1000 > but it seems

Re: [PHP] Static constructor support

2012-09-27 Thread David Harkness
On Wed, Sep 26, 2012 at 2:29 PM, Yves Goergen wrote: > How do other languages than C# call that? :-) > Java has "static initializers" which work the same way: they are executed when the class is first loaded and before any code can make use of the class. David

Re: [PHP] Responding to an XML data post

2012-09-27 Thread tamouse mailing lists
On Thu, Sep 27, 2012 at 1:00 PM, Daniel Brown wrote: > On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert wrote: >> Hi All, >> >> I am stuck in something where a 3rd party app pushes an XML post to my >> site. They need me to respond to that push with a synchronous XML post >> back confirming that th

RE: [PHP] Problem with PHP in Moodle LMS

2012-09-27 Thread admin
> Has anyone ever heard of a problem with the Moodle LMS when trying to edit an activity (quiz, resource) in which there is a timeout after only a few seconds and a message saying something to the effect of > that the system is sorry but there was a time out, please retry. When I look in the URL I

[PHP] Problem with PHP in Moodle LMS

2012-09-27 Thread Gary Lebowitz
Has anyone ever heard of a problem with the Moodle LMS when trying to edit an activity (quiz, resource) in which there is a timeout after only a few seconds and a message saying something to the effect of that the system is sorry but there was a time out, please retry. When I look in the URL I see

Re: [PHP] Responding to an XML data post

2012-09-27 Thread Daniel Brown
On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert wrote: > Hi All, > > I am stuck in something where a 3rd party app pushes an XML post to my > site. They need me to respond to that push with a synchronous XML post > back confirming that the data was received / had issues etc. Those > XMLs are define

[PHP] Responding to an XML data post

2012-09-27 Thread Bastien Koert
Hi All, I am stuck in something where a 3rd party app pushes an XML post to my site. They need me to respond to that push with a synchronous XML post back confirming that the data was received / had issues etc. Those XMLs are defined, but I am not sure how to push that XML back. A simple echo $xm

Re: [PHP] about lock some codes.

2012-09-27 Thread Maciek Sokolewicz
On 27-09-2012 15:13, Jim Giner wrote: Even simpler - use the 'tempnam' or 'tmpfile' functions to always have a unique name and avoid having to check for an existing file. Amazing what the php Manual has in it... Good find, I completely forgot about the existence of those functions ;) It's bee

Re: [PHP] about lock some codes.

2012-09-27 Thread Jim Giner
On 9/27/2012 7:05 AM, Maciek Sokolewicz wrote: On 27-09-2012 11:31, lx wrote: Hello: I have a question now.the code is: $ftemp = fopen("$fdoc_tmp/temp_proxy", 'w'); fwrite($ftemp, $content); fclose($ftemp); exec("/usr/

[PHP] Activating the mysql_clear_password plugin

2012-09-27 Thread Pierre-Gildas MILLON
I need to use the mysql_clear_password plugin. I'm using the CentOS php 5.3.3 and manually recompiled the mysql & mysqli extensions with the Oracle MySQL 5.5 libraries. According to the MySQL documentation ( http://dev.mysql.com/doc/refman/5.5/en/cleartext-authentication-plugin.html), I need

Re: [PHP] Re: PHP as Application Server

2012-09-27 Thread Sebastian Krebs
Hi, Once again I didn't read it completely (maybe I will do so), but my 2ct: I recently played with Ruby and Python and of course with their application server (at least a little bit). My experience was, that it is less fun as it sounds in the first place compared to a well designed webserver-int

[PHP] Re: PHP as Application Server

2012-09-27 Thread Alessandro Pellizzari
Il Thu, 27 Sep 2012 12:28:00 +0200, Maciej Liżewski ha scritto: > Sure there are > disadvantages and other problems but what Alessando is saying is "I > would not use cure for cancer even if it existed because it can > introduce other problems like overpopulation". Uhm, no. I see it as "I would

Re: [PHP] about lock some codes.

2012-09-27 Thread Maciek Sokolewicz
On 27-09-2012 11:31, lx wrote: Hello: I have a question now.the code is: $ftemp = fopen("$fdoc_tmp/temp_proxy", 'w'); fwrite($ftemp, $content); fclose($ftemp); exec("/usr/local/bin/gdnsproxy -a -f $fdoc_tmp/temp_proxy 1

Re: [PHP] Re: PHP as Application Server

2012-09-27 Thread Maciej Liżewski
to Matijn Woudt: you are right there should be something like: public void synchronized increment(), but that is not the point. Sure there are disadvantages and other problems but what Alessando is saying is "I would not use cure for cancer even if it existed because it can introduce other problems

[PHP] about lock some codes.

2012-09-27 Thread lx
Hello: I have a question now.the code is: $ftemp = fopen("$fdoc_tmp/temp_proxy", 'w'); fwrite($ftemp, $content); fclose($ftemp); exec("/usr/local/bin/gdnsproxy -a -f $fdoc_tmp/temp_proxy 1>$fdoc_tmp/dout 2>$fdoc_tmp/derr", $da