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:[EMAIL PROTECTED]] 
> Sent: Friday, March 22, 2002 12:00 PM
> To: [EMAIL PROTECTED]
> 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
> [EMAIL PROTECTED]
> ++++++++++++++++++++++++
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

Reply via email to