[PHP] Re: Awkward time processing

2012-08-03 Thread Alessandro Pellizzari
Il Thu, 02 Aug 2012 09:25:40 -0700, Robert Williams ha scritto: > $times = array( > 17 => '15:31', > 16 => '15:32', > 27 => '15:33', > 14 => '15:34', > 11 => '15:35', > 27 => '16:33', > 14 => '17:34', > 11 => '11:35', > 11 =>

[PHP] Re: PHP as Application Server

2012-09-26 Thread Alessandro Pellizzari
Il Wed, 26 Sep 2012 17:23:35 +0200, Maciej Liżewski ha scritto: > persistent application servers load resources only on startup (or when > needed) and keep them in memory until programatically freed or until end > of application (server shutdown). You don't mention the downsides: - every applic

[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

[PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alessandro Pellizzari
Il Wed, 31 Oct 2012 11:57:11 +0100, ma...@behnke.biz ha scritto: > But it if PHP would be threadsafe, you would be able to run the Apache > in a much faster and less memory using way. > There once was a configure option in PHP to compile it threadsafe, but > they dropped it for a reason. Because

[PHP] Re: Multithreading for OOP PHP

2012-10-31 Thread Alessandro Pellizzari
Il Wed, 31 Oct 2012 11:50:00 +0100, ma...@behnke.biz ha scritto: > The drawback of forking is the memory overhead. With every fork you take > the same amount of memory which is not the case if you could use real > threads. No, it is not. Forking in Linux uses COW (copy-on-write), so a freshly-for

[PHP] Re: Variables with - in their name

2012-11-19 Thread Alessandro Pellizzari
Il Sun, 18 Nov 2012 01:09:11 -0500, Ron Piggott ha scritto: > echo " $row['promo_code_suffix'] . "\" style=\"text-align: center;\">\r\n"; > It could be wrote: > > echo $distributor-42-2; You MUST disable register_globals in your php.ini Once you have done that (and even before that...) you f

[PHP] Re: shared memory on php servers?

2012-12-04 Thread Alessandro Pellizzari
Il Tue, 04 Dec 2012 11:49:22 +0100, rene7705 ha scritto: > I'm wondering, what's the fastest way to put a large and deep array() > structure in shared memory on a PHP server? Using MongoDB. :) Bye. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] Re: PHP 5.4 Help

2013-03-06 Thread Alessandro Pellizzari
Il Wed, 06 Mar 2013 08:41:43 -0800, Great Recordings, LLC ha scritto: > Will someone tell me if the small module included on the bottom of this > note will function properly under PHP 5.4? (Register_Globals turned > off).  If it does not function properly with Register_Globals turned > off, is the

[PHP] Re: Compiler for the PHP code

2013-03-19 Thread Alessandro Pellizzari
Il Tue, 19 Mar 2013 08:46:22 +, Kevin Peterson ha scritto: > My webcode written in PHP and it is running in the interpreted way. My > problem is it is not giving the desired performance so want to try the > compiler if any. PHP gets compiled to bytecode on the server before being executed. Yo

[PHP] Re: AW: AW: PHP is Zero

2013-06-13 Thread Alessandro Pellizzari
Il Thu, 13 Jun 2013 13:27:51 +0200, BUSCHKE Daniel ha scritto: > Why is PHP doing that? Because a decision had to be made, and they chose to do it that way. > I know it works as designed and I know it is > documented like this but that does not mean that it is a good feature, > does it? It is a

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Alessandro Pellizzari
Il Sun, 04 Aug 2013 13:32:55 +0430, Farzan Dalaee ha scritto: > hi i want to write online user module for my site and i want to check > $_SESSION['userID'] to find all users id who loged in but when i echo > this code its return only current user detail how i can see all > sessions? You can't. >

[PHP] Re: how to see all sessions sets in server

2013-08-05 Thread Alessandro Pellizzari
Il Sun, 04 Aug 2013 20:47:37 +0430, Farzan Dalaee ha scritto: Please use better quoting. > So best way is use a script(javascript) to send ajax to server every 5 > second to check users is logged in or not? Is that okey? It depends. > I want to write chat module like facebook and i need a solut

[PHP] Re: Which function returns a correct ISO8601 date?

2013-09-07 Thread Alessandro Pellizzari
On Sat, 07 Sep 2013 14:47:00 +0200, Simon Schick wrote: > The method date("c") actually formats a date, fitting to the format > defined in the constant DateTime::ATOM. > > Are both formats (with and without colon) valid for ISO8601, or is the > documentation for the method date() wrong? Yes: ht