Re: execute php script with crontab
| From: | rudi | Date: | Tue, 20 Jan 2004 14:39:12 +0000 |
| Subject: | Re: execute php script with crontab | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175141@lists.php.net to get a copy of this message | ||
Sorry, for delayed reply, but anyway thanks for your help and your sugestions to check the cron log,
after read the tutorial and do some actions (trial and error) for a days, finally i found i know it
what's going on, the tutorial say that there is two way to run php script with cron :
1. First by using cgi ---->> compile the php code into binary file use the path of the file
/usr/bin/php -q /var/www/html/sampel.php, or
2. use lynx http://server.com/sample.php
and when i try the step one there is an error like this :
PHP Warning: Unable to load dynamic library '/usr/lib/php4/gd.so' - /usr/lib/php4/gd.so:
cannot open shared object file: No such file or directory in Unknown on line 0
is that somebody know this problem and how to solve it...????
because i fail in the first way, so i use the second way and the script works... and the first step
still make me confused what's going on...?? does any one have the idea....???
Developer <developer@icop.gr> wrote:
Could I add a question regarding the cron command?
If you automatically run a php script through the cron command is timeout
taken under account or does it run through the "command line" which is
faster (and timeout is not taken under account?)
Thanks all
Mario
yup, i don't know exacly about your questions but i think your questions is about the user
account who run the script in the cron, but i use this line to run my script from the cron, is that
like this..
* * * * * lynx http://server.com/sample.php >
/dev/null
the other tutorial give a sample like this :
1 * * * * root /usr/bin/php /var/www/html/cron/testcron.php
after trial and error i deside to use the first line and works, but i am did'nt check the
execution time. and i think i got to learn about cron.
Thanks for all help.
"linux is mystery so i have to explore"
idur
---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes