Re: Is it possible to restart Windows Apache (service) on a PHP script?

From: Date: Mon, 22 Oct 2007 03:44:43 +0000
Subject: Re: Is it possible to restart Windows Apache (service) on a PHP script?
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-263481@lists.php.net to get a copy of this message
Thanks for your suggestions. But, both did not worked. Louie On 10/19/07, Philip Thompson <philthathril@gmail.com> wrote: > > On 10/19/07, Robert Degen <robert.degen@rwth-aachen.de> wrote: > > > > Why don't you try a > > > > passthru('net apache restart') > > > > perhabs another parameter order, but I think It won't work. > > Stopping it might work, but restarting... > > > > > > > > On Fr, Okt 19, 2007 at 04:32:45 +0800, Louie Miranda wrote: > > > Is it possible to restart Windows Apache (service) on a PHP script? > > > > > > i have installed PHP/Apache on a Windows machine. Added the ext > > windows32 > > > service. > > > But could not find any how to or information online. > > > > > > Please help! > > > > > > -- > > > Louie Miranda (lmiranda@gmail.com) > > > > This reminds me of the time I was remoting into a machine (using Altiris, > I > think) to do some work on it. I then needed to restart it... so I did. > Well, > class, what happens when you turn off Mr. Computer? > > Not saying that this is the same thing... b/c if you push a "restart" > command, then it *should* come back up. =/ Sorry, I don't know the exact > command, but consider using exec(). > > Good Luck, > ~Philip > > PS... Yay, it's Friday! > -- Louie Miranda (lmiranda@gmail.com) http://www.axishift.com Security Is A Series Of Well-Defined Steps chmod -R 0 / ; and smile :)

« previous php.general (#263481) next »