blackfish
07-12-2007, 09:04 AM
Hi,
I have devoloped a script to append data to a text file for my linux squid proxy server. The trouble I am now having is that I want to be able to run a shell script via a web browser that will reload the squid proxy service on the same server.
The shell script has the command to reload the squid proxy service using the following commands:
echo Reloading External Lists Please Wait...
service squid reload
echo Reload Complete
echo Proxy Ready
Is there any way to call this script and execute the shell script through PHP or is there a more suitable way, such as commands like system or exec??
Many Thanks,
BlackFish :thumbsup:
I have devoloped a script to append data to a text file for my linux squid proxy server. The trouble I am now having is that I want to be able to run a shell script via a web browser that will reload the squid proxy service on the same server.
The shell script has the command to reload the squid proxy service using the following commands:
echo Reloading External Lists Please Wait...
service squid reload
echo Reload Complete
echo Proxy Ready
Is there any way to call this script and execute the shell script through PHP or is there a more suitable way, such as commands like system or exec??
Many Thanks,
BlackFish :thumbsup: