|
Posted by Ridge Burner on 02/17/06 17:40
"ZeldorBlat" <zeldorblat@gmail.com> wrote in message
news:1140189401.470766.152540@g47g2000cwa.googlegroups.com...
>
> What do you mean, "not executed" ? Do you get an error? A blank
> screen? How do you know it didn't execute?
>
The cron runs independent of me here so no output is visible, its dumped to
/dev/null.
The 'parent' script itself updates data in MySQL, then calls the include to
take the new info from MySQL and write it to an include file for the site.
The 'parent' script does what it is supposed to - updates the data in DB,
but the included file is not writing to the file. It will work if I browse
to the parent script and run it from browser, just not via CLI. I know it
is not executing because the DB has been updated, but not the file that is
written to.
very simply, like so:
$sql = "do something";
$query = mysql_query($sql);
include '../includes/script_that_writes_to_file.php';
which I have changed to
include 'var/www/home/HTDocs/includes/script_that_writes_to_file.php';
-Ridge
Navigation:
[Reply to this message]
|