Re: Re: Use cron to execute a script --> OTHER problem now

From: Date: Tue, 21 Aug 2001 18:34:42 +0000
Subject: Re: Re: Use cron to execute a script --> OTHER problem now
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-63748@lists.php.net to get a copy of this message
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" <dave@hawk-systems.com> wrote in message news:DBEIKNMKGOBGNDHAAKGNIEADHOAA.dave@hawk-systems.com... > 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 >

« previous php.general (#63748) next »