Re: [PHP-DB] Command Line Error

2005-03-28 Thread Bastien Koert
Goes right where you have it #!/ ?> Bastien From: "Ron Piggott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> CC: "PHP DB" Subject: Re: [PHP-DB] Command Line Error Date: Mon, 28 Mar 2005 12:35:09 -0500 I didn't realize I was required to do this. Would you p

Re: [PHP-DB] Command Line Error

2005-03-28 Thread Ron Piggott
MAIL PROTECTED]> Sent: Monday, March 28, 2005 11:02 AM Subject: Re: [PHP-DB] Command Line Error > are you putting: > > #!/ > > at the top of your page? if not, it will be interpreted as a shell > (bash/csh) script. > > > -- Original Message -- > >

Re: [PHP-DB] Command Line Error

2005-03-28 Thread Martin Norland
Martin Norland wrote: 00 8-19/2 * * mon-fri /usr/bin/php /foo/backup_script.php I should have mentioned this - this runs twice an hour Monday through Friday, between the hours of 8am and 7pm. You would more likely prefer 05 1* * * your_command which would run at 1:05am every day. use 'cro

Re: [PHP-DB] Command Line Error

2005-03-28 Thread Martin Norland
Ron Piggott wrote: I wrote a really simple 11 or 12 line PHP script to remove old entries from a web card application I made: $todays_date=DATE("Y-m-d"); [snip] Take a look at this line: $todays_date=DATE("Y-m-d"); When it is ran from the command line this line causes the script to give these erro

[PHP-DB] Command Line Error

2005-03-28 Thread Ron Piggott
I wrote a really simple 11 or 12 line PHP script to remove old entries from a web card application I made: When this is run from the web it works fine. I wanted it on a CRON then the expired entries are removed automatically. Take a look at this line: $todays_date=DATE("Y-m-d"); When it