[PHP] Re: foreach and destroying variables for memory saving

2008-12-10 Thread Gal Gur-Arie
Tim | iHostNZ wrote: Hi All, Just to annoy the hell out of you, another thing that has been on my mind for a while: I love the foreach ($ar as $k = $v) { ... } construct and use it all the time. However, I read somewhere that foreach actually uses a copy of $ar instead of the array

[PHP] Re: how do i allow more than 2 threads of php to run?

2008-12-09 Thread Gal Gur-Arie
Rene Veerman wrote: i'm getting freezes for the 3rd to Nth concurrent request on my homeserver (got root, on debian4 + apache2). how can i allow more threads? like 50 or so? Any chance that you're using session and checking it from the same browser from different tabs (using same session

Re: [PHP] Using system

2003-09-17 Thread Gal Gur-Arie
Hello, try this: ?php $sMyHostname = exec('uname -a 21'); echo \n.$sMyHostname.\n; ? Uros wrote: Hello Robert, I think not here is my code #!/usr/local/bin/php -q ?php $ret = `nslookup -timeout=3 www.myhost.com |grep Non-existent host/domain`; ? I always get automaticaly output. I also try to