I have been reading the documentation and forum messages regarding exec() and system() for about a week, and I'm stumped.
I can't even get an error message!
I need to pass arguments from a .php page to a .cgi script and have it execute.
Here's my test code:
<?
$userexec="/usr/local/etc/httpd/htdocs/cgi-bin/fadd.cgi";
$userregstr=('display=newUser&language=en');
system(EscapeShellCmd($userregstr));
exec($userexec,$userregstr);
?>
The script exists.
Permissions: 777
I have tried putting everything together in one string, using absolute paths from the system root, using web-style paths (/cgi-bin/), quotes, apostrophes, no-quotes, using system() instead of exec()...all with no results.
The documentation seems simple, but it's not happening.
Thank you in advance for ANYthing you can suggest.