Ok I have the same problem but this isnt working.
The first line of my sript is #!/usr/local/php -q , BTW this isnt in the <?
?> brackets, but should it be?

then I use lynx -dump -http://localhost/show_reminder.php
in the crontab, but the mailer demon gives me the message

your terminal lacks the ability to clear the screen or move the cursor.  So
maybe i dont have php installed correctly as a cgi?
I simply downloaded php and then put the php.exe into a folder. Is there
some setup that I need to do?


"Dave" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> php files are text files
> you have to tell cron (or more directly the system) what to do with it.
>
> like a perl script, simply tell it where to find the PHP processor and it
will
> then use it to run your script...  otherwise it is just diaplaying a page
of
> text every minute.
>
> you must have a cgi copy of PHP executable available to run your script,
yes you
> can have both on your server if you are already running the mod_php
version.
>
> add
>
> #!/usr/local/bin/php -q
>
> to the first line in your script...  then cron will know what to do with
your
> text file.
>
> BTW; a quick search on google for "run php as shell script" produced this
as the
> number 1 result http://www.phpbuilder.com/columns/darrell20000319.php3
> searching for "PHP and CRON" produced yet another plethora of responses.
>
> Dave
>




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to