php-general Digest 27 Sep 2012 09:31:36 -0000 Issue 7982

2012-09-27 Thread php-general-digest-help
php-general Digest 27 Sep 2012 09:31:36 - Issue 7982 Topics (messages 319268 through 319275): Static constructor support 319268 by: Yves Goergen 319269 by: Stuart Dallas 319270 by: Yves Goergen 319271 by: Stuart Dallas 319272 by: Yves Goergen

php-general Digest 27 Sep 2012 23:33:24 -0000 Issue 7983

2012-09-27 Thread php-general-digest-help
php-general Digest 27 Sep 2012 23:33:24 - Issue 7983 Topics (messages 319276 through 319288): Re: PHP as Application Server 319276 by: Maciej Li¿ewski 319278 by: Alessandro Pellizzari 319279 by: Sebastian Krebs Re: about lock some codes. 319277 by: Maciek

Re: [PHP] Static constructor support

2012-09-27 Thread Yves Goergen
On 26.09.2012 23:38 CE(S)T, Stuart Dallas wrote: On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: My class is a debug helper class, that can write trace messages and so on. I have added a random per-request tag to distinguish concurrent requests in the trace file and

Re: [PHP] Static constructor support

2012-09-27 Thread Sebastian Krebs
2012/9/27 Yves Goergen nospam.l...@unclassified.de On 26.09.2012 23:38 CE(S)T, Stuart Dallas wrote: On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: My class is a debug helper class, that can write trace messages and so on. I have added a random per-request tag

Re: [PHP] Static constructor support

2012-09-27 Thread Sebastian Krebs
2012/9/26 Stuart Dallas stu...@3ft9.com On 26 Sep 2012, at 22:29, Yves Goergen nospam.l...@unclassified.de wrote: On 26.09.2012 23:20 CE(S)T, Stuart Dallas wrote: If you mean what C# calls a static constructor, no that does not exist in PHP, but you can fake it. Okay, thank you for

[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, $data,

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

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

[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 not

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

[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] 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);

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

[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

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 phps...@gmail.com 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

[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] 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

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 danbr...@php.net wrote: On Thu, Sep 27, 2012 at 1:48 PM, Bastien Koert phps...@gmail.com 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

Re: [PHP] Static constructor support

2012-09-27 Thread David Harkness
On Wed, Sep 26, 2012 at 2:29 PM, Yves Goergen nospam.l...@unclassified.dewrote: 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] Round help needed

2012-09-27 Thread Daniel Brown
On Thu, Sep 27, 2012 at 11:05 PM, Chris Payne oxygene...@gmail.com 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