Hi Kevin, Thanks very much for your reply, but I'm having no luck with it. In the test that I'm doing, I'm using the same code as you provided. It's on a Solaris system & the permissions & ownership of the shell script is correct. The shell script is also located in the same directory as the php file. All the shell script is doing is creating a file & works grand when run from the command line. Have you any ideas/thoughts on this? I'd really appreciate it!
Thanks Dave -----Original Message----- From: Kevin Waterson [mailto:[EMAIL PROTECTED]] Sent: 18 February 2003 13:26 To: [EMAIL PROTECTED] Subject: Re: [PHP] How can you execute UNIX scripts from PHP This one time, at band camp, [EMAIL PROTECTED] wrote: > Hi everyone, > > How can you execute UNIX scripts from PHP. If somebody could let me > know it would be great. if you have a shell script called blah.sh $script = 'blah.sh'; exec($script); system($script); // my favourite or if you like you could do `blah.sh` // backticks Kevin -- ______ (_____ \ _____) ) ____ ____ ____ ____ | ____/ / _ ) / _ | / ___) / _ ) | | ( (/ / ( ( | |( (___ ( (/ / |_| \____) \_||_| \____) \____) Kevin Waterson Port Macquarie, Australia -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php