I've an interesting problem that after using php to restart SAMBA the server
no longer parses php to that particular browser.

This is really really weird!!

The situation is that I've built a php tool to restart server services such
as atalk and samba. Starting/Restarting/Stopping atalk works beautifully
however, restarting SAMBA kills something???

the PHP I'm using to do the restart is:

$test = shell_exec("/etc/rc.d/init.d/smb restart &");
echo "<br>test: $test<br>";
echo "<br>samba restarted";

I've tried with and without the "&" to run it as a background process.
I've tried with shell_exec and exec commands.
I even tried writing a script which does the restart and just get PHP to run
the script.

none were successful.

$test echoes out exactly what it should when restarting SAMBA ie. shutting
down details and then start up details.

I've even tried using "exit()" after my script and it still won't work.

what it does it that after I run the page with the script I can no longer
load pages served from that particular server with php content on them. So I
can still view plain html pages after running the script. Weirder still, PHP
has not crashed because I can pull up another browser from the same computer
and view everything fine. When trying to access the php pages basically the
browser keeps spinning away and eventually times out.

To get the browser to access php content pages on this server I have to quit
and restart my browser.

madness!!!

It's like php just refuses to allow connections from that browser after this
command is run???

I've no idea where to begin trouble shooting this one. I've tried everything
I can think of and I'm out of ideas. So if anyone could help me with this it
would be fantastic!!!

-Tim Churchward



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to