RE: [PHP] php/shell question...

From: Date: Thu, 18 Jul 2002 20:05:29 +0000
Subject: RE: [PHP] php/shell question...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-108331@lists.php.net to get a copy of this message
[snip] I know that it's pretty easy for a shell script to call a php page to do something. What's the best way to have a php page call a shell script? I'm trying to automate the creation of directories with certain files in them (people creating their own temporary websites..), and figured a simple shell script to copy the files (or symobolic links to these files) from a master directory to the appropriate directory for the customer would make the most sense. Am I barking up the wrong tree, or does this make sense? [/snip] Use exec() or shell_exec() http://www.php.net/manual/en/function.exec.php HTH! Jay

« previous php.general (#108331) next »