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"); > >>

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 com

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

[PHP] PHP ping and exec() hangs apache

2009-05-27 Thread Kamil Walas
Hi, I stuck with strange error. I have following code: 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 restart. This is a Virtual Server with PHP Version 5.2.6-pl222-gentoo. When addre