Hello,
This problem has now been resolved.
The problem as described below was NOT caused by
PHP. The problem was actually a file permissions/ownership problem.
A.) The apache webserver runs as a user with specific
priviledges. On this particular server the webserver runs as user
'apache'.
B.) Th
Use exec() instead of system() and pass in args for output and error
number and then you'll get an error number telling you what went
wrong.
You'll have to look up the error number in a shell with 'perror' (man
perror) unless you dig my modest extension to do it from PHP:
http://l-i-e.com/perror
Hello,
I am trying the run an external application with
command line arguments using PHP under linux.
ie:
$command="myprog $arg1 $arg2 > textfile.txt";
system("echo \"$command\" > test.txt");
system($command);
$handle=fopen("textfile.txt","r");
if($handle!=NULL)
{
while(!feof($handle))
3 matches
Mail list logo