RE: [PHP] cron with php as apache module
| From: | Hunter, Ray | Date: | Fri, 22 Mar 2002 19:04:34 +0000 |
| Subject: | RE: [PHP] cron with php as apache module | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-89727@lists.php.net to get a copy of this message | ||
Yeah,
Compile php first as CLI, move the contents of the bin directory to where
you want them, and then compile php again for the apache module.
In the bin directory you will have a php executable file which you can use
for your cli apps.
In your php files that you want to run as crons then add this before the
<?php
#!/path to php/php
Example on my system
#!/usr/bin/php
<?php
Stuff here....
?>
/* EOF */
Thank you,
Ray Hunter
Firmware Engineer
ENTERASYS NETWORKS
> -----Original Message-----
> From: Paul Roberts [mailto:roberts_paul@bigfoot.com]
> Sent: Friday, March 22, 2002 12:00 PM
> To: php-general@lists.php.net
> Subject: [PHP] cron with php as apache module
>
>
> I want to run a php script via a crontab, (i can set up the
> crontab etc).
>
> this is a Linux server and php is installed as an apache
> module, is there any way to run the php script via cron.
>
> the build details are
>
> Configure Command './configure'
> '--with-apxs=/usr/sbin/apxs' '--with-mysql'
> '--enable-track-vars' '--enable-versioning' '--enable-bcmath'
>
>
>
> Paul Roberts
> roberts_paul@bigfoot.com
> ++++++++++++++++++++++++
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>