Reply to Re: [PHP] Included php files in a cron job?

Your name:

Reply:


Posted by "Rodolfo Andrade" on 10/02/45 11:36

Hi Jay,

Yes, you can use include(); with cron.

Regards,
Rodolfo Andrade

----- Original Message -----
From: Jay Paulson (CE CEN)
To: php-general@lists.php.net
Sent: Friday, January 06, 2006 2:29 PM
Subject: [PHP] Included php files in a cron job?


I'm in the process of writing a PHP program that is going to be called once
a week via a cron job. I don't have a place to really test this hence the
reason why I'm asking about it here. My question is can my php program
include other php files and still get executed correctly when the cron job
runs?

For example:
#!/path/to/php
<?php

require_once($file);

//do something....

?>

Will the code in $file work correctly when the cron job executes the php
file that has something simular to what I have above?

Thanks!

[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

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