Re: [PHP] PHP CGI mode and command line variables

2003-07-24 Thread CDitty
That worked like a charm. Thanks Chris. I've added this to my snippet collection. :) At 12:02 AM 7/24/2003, Chris Shiflett wrote: --- CDitty <[EMAIL PROTECTED]> wrote: > Thanks man. That got rid of the error, however it is not using the > variable in the script. You have to read them in. I th

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread Chris Shiflett
--- CDitty <[EMAIL PROTECTED]> wrote: > Thanks man. That got rid of the error, however it is not using the > variable in the script. You have to read them in. I think you can just loop through $argv, so something like this will show you what PHP is receiving: Hope that helps. Chris = Be

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread CDitty
Thanks man. That got rid of the error, however it is not using the variable in the script. I can't run this via wget or the browser since the importing files are rather large. Any other ideas? Chris At 11:33 PM 7/23/2003, Chris Shiflett wrote: --- CDitty <[EMAIL PROTECTED]> wrote: > I have

Re: [PHP] PHP CGI mode and command line variables

2003-07-23 Thread Chris Shiflett
--- CDitty <[EMAIL PROTECTED]> wrote: > I have written a script that runs fine when I run it via the > command line. However, when I tack on variables to the command > line, I get an error. > > This works. > php -q ./import.php > > This doesn't > php -q ./import.php?feed=eastwood I might be

[PHP] PHP CGI mode and command line variables

2003-07-23 Thread CDitty
I have written a script that runs fine when I run it via the command line. However, when I tack on variables to the command line, I get an error. This works. php -q ./import.php This doesn't php -q ./import.php?feed=eastwood This is the error that it returns - Could not open input file: ./i