Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
"Michael Hall" <[EMAIL PROTECTED]> wrote: > I've just recently got a bit more serious with learning bash scripting and > am surprised at how powerful it really is, in conjunction with the usual > UNIX commands and other tools. PHP is the only choice for most things web > related, but I'm finding t

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
"Ben Bleything" <[EMAIL PROTECTED]> wrote: > Interesting method, with the lynx... I imagine that if you've only built > the DSO, then that would be the way to do it.. if it worked. It works. -- Steve Werby President, Befriend Internet Services LLC http://www.befriend.com/ -- PHP General Mail

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Steve Werby
"Michael Hall" <[EMAIL PROTECTED]> wrote: > With all the advice that has been offered so far, has it been assumed that > php is installed in the CGI rather than DSO manner? I haven't found this to be clear from the thread. > Can PHP as a DSO > interpret shell script-like files with a shebang at

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Michael Hall
On Sun, 8 Jul 2001, Ben Bleything wrote: > Interesting method, with the lynx... I imagine that if you've only built > the DSO, then that would be the way to do it.. if it worked. My guess > would be, you would have to do lynx > 'http://localhost/path/to/script/script.php' to force it to go thr

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
l Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:16 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job This looks like a good place for me to step in and maybe clear up something I've been wondering about ... With all the advice tha

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Michael Hall
t? Does it come by and run 'php > > >> yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in > > >> it? I've found that works well... just put that as the first line, and > > >> it behaves as a shell script (after you make it ex

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Chris Fry
that works well... just put that as the first line, and > >> it behaves as a shell script (after you make it executable, of course) > >> > >> Ben > >> > >> -Original Message- > >> From: James, Yz [mailto:[EMAIL PROTECTED]] > >>

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread Don Read
>> it behaves as a shell script (after you make it executable, of course) >> >> Ben >> >> -Original Message- >> From: James, Yz [mailto:[EMAIL PROTECTED]] >> Sent: Sunday, July 08, 2001 3:39 PM >> To: [EMAIL PROTECTED] >> Subject: [PHP] R

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Jeff Lewis
; To: 'James, Yz'; [EMAIL PROTECTED] > Subject: RE: [PHP] Running PHP as a cron job > > > How are you executing the script? Does it come by and run 'php > yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in > it? I've f

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
, Ben -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:57 PM To: Ben Bleything; [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Matthew Loff
ECTED]] Sent: Sunday, July 08, 2001 6:57 PM To: Ben Bleything; [EMAIL PROTECTED] Subject: Re: [PHP] Running PHP as a cron job Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php: ?: No such file or directory automation/mail.php: =: co

Re: [PHP] Running PHP as a cron job....

2001-07-08 Thread James, Yz
e a shebang ('#!/usr/bin/php') in > it? I've found that works well... just put that as the first line, and > it behaves as a shell script (after you make it executable, of course) > > Ben > > -Original Message----- > From: James, Yz [mailto:[EMAIL PROT

RE: [PHP] Running PHP as a cron job....

2001-07-08 Thread Ben Bleything
ecutable, of course) Ben -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Running PHP as a cron job Hi all, This is probably going to sound incoherant, but Do I have to do anything (other than change the

[PHP] Running PHP as a cron job....

2001-07-08 Thread James, Yz
Hi all, This is probably going to sound incoherant, but Do I have to do anything (other than change the permissions of a php file) to get it to run as part of a cron job? I created an extremely simple file that should just send a blank email to me (using mail()). I got an email from the cr