[PHP] Cron Jobs and php as apache module

2004-03-17 Thread Daryl Meese
Hello all,

Ok,  I run php as an apache module but need to have some php scripts called
from a cron.  Since you can't have php installed as a cgi  apache module I
don't know how to do this.

Any help would be appreciated.

TIA

Daryl Meese

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Duncan Hill
On Wednesday 17 March 2004 11:03, Daryl Meese wrote:
 Hello all,

 Ok,  I run php as an apache module but need to have some php scripts called
 from a cron.  Since you can't have php installed as a cgi  apache module I
 don't know how to do this.

 Any help would be appreciated.

 TIA

 Daryl Meese

PHP CLI executable.  Builds whenever I do a manual install.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Thijs Lensselink
Daryl Meese wrote on woensdag 17 maart 2004 12:04:

 Hello all,
 
 Ok,  I run php as an apache module but need to have some php scripts
 called from a cron.  Since you can't have php installed as a cgi 
 apache module I don't know how to do this.
 
 Any help would be appreciated.
 
 TIA
 
 Daryl Meese

With php installed as an apache module you can still 
run php-scripts from commandline. It should work.

If i create the following file:

test.php
?
#!/usr/local/bin/php
mail([EMAIL PROTECTED], Sample, testing cronjob);
?

And create a new cronjob:

crontab
30   *   *   *   *   php /path to/test.php

This will make cron run the script. 
Just tested it and it works.

Thijs

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 06:03, Daryl Meese wrote:
 Hello all,
 
 Ok,  I run php as an apache module but need to have some php scripts called
 from a cron.  Since you can't have php installed as a cgi  apache module I
 don't know how to do this.

Possibly you can't have PHP configured in Apache as a module and a CGI
but you can sure have the CGI binary on your server. And as others have
said you can also use the CLI version which is the CGI version
streamlined for shell purposes.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Thijs Lensselink
Thijs Lensselink wrote on woensdag 17 maart 2004 12:17:

 Daryl Meese wrote on woensdag 17 maart 2004 12:04:
 
 Hello all,
 
 Ok,  I run php as an apache module but need to have some php scripts
 called from a cron.  Since you can't have php installed as a cgi 
 apache module I don't know how to do this.
 
 Any help would be appreciated.
 
 TIA
 
 Daryl Meese
 
 With php installed as an apache module you can still
 run php-scripts from commandline. It should work.
 
 If i create the following file:
 
 test.php
 ?
 #!/usr/local/bin/php
 mail([EMAIL PROTECTED], Sample, testing cronjob);
 
 
 And create a new cronjob:
 
 crontab
 30   *   *   *   *   php /path to/test.php
 
 This will make cron run the script.
 Just tested it and it works.
 
 Thijs


Hello daryl,

Seems like i have made a little error. It look slike the OpenBSD ports
php package install the cli version next to the .so version.
So running both the .so and the cli version is no problem. Just use the
cli version for the cronjobs.

Thijs

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php