Re: [PHP] PHP ping and exec() hangs apache

2009-05-28 Thread Kamil Walas
Ashley Sheridan pisze: On Wed, 2009-05-27 at 10:25 +0200, Kamil Walas wrote: Hi, I stuck with strange error. I have following code: ? echo 'BEFORE'; echo exec(ping -c1 -w1 1.1.25.38); echo 'AFTER'; ? Address doesn't exist. When execute script from command line everything

Re: [PHP] PHP ping and exec() hangs apache

2009-05-28 Thread Ashley Sheridan
On Thu, 2009-05-28 at 10:33 +0200, Kamil Walas wrote: Ashley Sheridan pisze: On Wed, 2009-05-27 at 10:25 +0200, Kamil Walas wrote: Hi, I stuck with strange error. I have following code: ? echo 'BEFORE'; echo exec(ping -c1 -w1 1.1.25.38); echo 'AFTER'; ?

[PHP] PHP ping and exec() hangs apache

2009-05-27 Thread Kamil Walas
Hi, I stuck with strange error. I have following code: ? echo 'BEFORE'; echo exec(ping -c1 -w1 1.1.25.38); echo 'AFTER'; ? Address doesn't exist. When execute script from command line everything works fine. But when I go to the file by Firefox it hangs out and apache need to be

Re: [PHP] PHP ping and exec() hangs apache

2009-05-27 Thread Ashley Sheridan
On Wed, 2009-05-27 at 10:25 +0200, Kamil Walas wrote: Hi, I stuck with strange error. I have following code: ? echo 'BEFORE'; echo exec(ping -c1 -w1 1.1.25.38); echo 'AFTER'; ? Address doesn't exist. When execute script from command line everything works fine. But when