Re: [Fwd: [ph-linux-newbie] help on cron]

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Joseph Syjuco <joseph(at)asti(dot)dost(dot)gov(dot)ph>
Cc: <pgsql-php(at)postgresql(dot)org>
Subject: Re: [Fwd: [ph-linux-newbie] help on cron]
Date: 2002-11-07 16:52:51
Message-ID: Pine.LNX.4.33.0211070951560.29627-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

On 7 Nov 2002, Joseph Syjuco wrote:

> worked but when i put it in crontab
> * * * * * php /usr/local/apache/htdocs/xxx.php
> it didnt work ... it didnt spew any errors ... just did nothing

Try editing your php script so the first line looks something like this:

#!/usr/local/bin/php -q
<?php
script goes here
?>

Note that the /usr/local/bin part might be different on your box than on
mine.

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Ray Hunter 2002-11-07 22:57:05 Re: Last URL
Previous Message scott.marlowe 2002-11-07 16:23:56 Re: Can't seem to get Psql and Exec to work together