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
by clicking a form button on a web page via system('php foo bar'). I
can see that the file bar gets created but it's always empty. I've tried
[snip]
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
by clicking a form button on a web page via system('php foo bar').
I
can see that the file bar gets created but it's always empty. I've
There are already plenty of echo statements in foo! They DO show up when I
run php foo. It's when I try to use system(php foo) that I don't get
anything.
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
I have a php cli that creates a file. It works fine when I
--- Ron Rudman [EMAIL PROTECTED] wrote:
There are already plenty of echo statements in foo! They DO show up
when I run php foo. It's when I try to use system(php foo) that I
don't get anything.
I missed the original question, but why are you trying to use the PHP CLI
from within PHP itself?
I have a report that I would like to run as a cron job, hence the need for a
standalone CLI version that just reads the database and has no other
context. But...I would also like to run this report on demand from within a
web application. It seemed obvious that all I'd have to do was execute my
--- Ron Rudman [EMAIL PROTECTED] wrote:
I have a report that I would like to run as a cron job, hence the
need for a standalone CLI version that just reads the database and
has no other context.
[snip]
I can't see how I would use eval() here, since in the command line:
php foo, foo is a
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
7 matches
Mail list logo