Reply to Re: include - CLI vs. HTTP

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация