When running my CGI Perl script the command php cannot be found. If I print out the $ENV{"PATH"} the path to the PHP directory isn't there.
Either set $ENV{"PATH"} so that it does include the path to the php binary or else just call php with an absolute path instead.
The very fact that you are using a Perl CGI script which is shelling out to PHP (on Windows no less) suggests that whatever it is you are actually trying to do could be better achieved some other way. But you probably knew that already.
In reply to Re: Execute command
by hippo
in thread Execute command
by rpike
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |