Re: [PHP] Running CLI from a web page

2003-11-10 Thread David T-G
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 hav

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Chris Shiflett
--- 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

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
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

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Chris Shiflett
--- 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 its

Re: [PHP] Running CLI from a web page

2003-11-10 Thread Ron Rudman
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 whe

RE: [PHP] Running CLI from a web page

2003-11-10 Thread Jay Blanchard
[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'v