Ron --

...and then Ron Rudman said...
% 
% I have a php cli that creates a file.  It works fine when I execute it from
% the Linux command line as  "php foo > bar".  I'm trying to also execute this

OK.


% by clicking a form button on a web page via "system('php foo > bar')".  I

Odd, as some have said, but fair enough :-)


% can see that the file bar gets created but it's always empty.  I've tried

What should be in it?  How does it get in there?  Why might it not get in
there?  Where is it that it should get in there?


% executing "system('php foo')" (directly to STDOUT) but get no output.  I've
% tried "exec('php foo',$output)" but there's nothing in the array when it's
% done.

What about passthru()?  Note that system() only returns the last line --
and so if that's a blank you won't see anything.


% 
% Suggestions???

Try the above.


% 
% BTW, wherever I've written "php" above I've actually used the full path of
% the php executable.

Then you should have written that ;-)


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to