Date: 04/08/00
- Next message: Florian Gnägi: "[PHPLIB] Re: your mail"
- Previous message: Eric Thelin: "[PHPLIB] Authenticated and not Authenticated on 1 page"
- In reply to: Rahul Jain: "(no subject)"
- Next in thread: Florian Gnägi: "[PHPLIB] Re: your mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
i can't say it better than ramus, so here is a copy of his email to the php
list:
---begin--
To: Patrick Meisel <patrick <email protected>> Cc: php3 mailing list
<php3 <email protected>> Subject: Re: [PHP3] PHP-Scripts as CRON-Job
> does anyone know, whether it is possible to run
> a PHP-Script as CRON-Job?
> How would I do it?
Sure. Compile and install the CGI version of PHP. Just use the same
configure line you used to build the Apache module, but remove any
--with-apxs or --with-apache switches and you will get a standalone 'php'
binary. You can copy this binary to /usr/local/bin and then at the top of
a script file you can put:
#!/usr/local/bin/php -q
And then just write your PHP code below this line. Then make the file
executable and you have yourself a standalone PHP script that you can run
from cron.
-Rasmus
---end---
At 12:54 AM 4/9/00 +0530, Rahul Jain wrote:
>Hi friends,
>
>I have a php script file which I would like to execute at a specific
>interval on my apache web server on a linux system.
>I would like to know the details of how do I write the crons to call that
>file and how do I compile that php file and details regd. the same are
>required.
>
>Rahul Jain
>rahuljain <email protected>
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Florian Gnägi: "[PHPLIB] Re: your mail"
- Previous message: Eric Thelin: "[PHPLIB] Authenticated and not Authenticated on 1 page"
- In reply to: Rahul Jain: "(no subject)"
- Next in thread: Florian Gnägi: "[PHPLIB] Re: your mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

