Desperate: php exec - works in one case, but not other
- From: sarah.ali1@xxxxxxxxx
- Date: 13 Feb 2006 19:54:20 -0800
I am trying to use the php exec function to execute 2 programs, so i
call the exec command twice. I am working on linux. It seems to work
for one executable (which runs fast), but not the other (which is a
slow standalone matlab application), if the php is run via a webpage.
The page hangs for abour 10 seconds and then is done loading...if the
longer program executed, it should take much longer.
The details:
-everything is chmodded to 777
-everything works if i try to run command line (i.e php -f page.php)
-the $output value of the exec function returns an array. if i try to
print it to the screen it just displays "array"
-i have tried exec, system, passthru; same problem
-if i redirect stderr and stdout to a file, the file always comes up
empty
-i am not in safe mode
-set_time_limit is set to 1000000
Any suggestions?
Also, I have been very unsucessful in trying to use passthru to dump
the contents of the output to my webpage, in order to debug. If i run
the php via command line, the executable returns feedback to the prompt
- it wouold be great to see that for the webpage version...
.
- Follow-Ups:
- Re: Desperate: php exec - works in one case, but not other
- From: Ken Hagans
- Re: Desperate: php exec - works in one case, but not other
- Prev by Date: Re: php.ini file ignored
- Next by Date: Re: I need to create logins that can only be used 3 times
- Previous by thread: Re: Send mail to multiple e-mail address
- Next by thread: Re: Desperate: php exec - works in one case, but not other
- Index(es):
Relevant Pages
|