Forum Moderators: coopster
Welcome to Webmasterworld!
Running a php scrip from Cron with Cpanel/WHM is pretty easy but there are some tricky thing may apply>
This is what you like to run>
php -q /home/morpheus/public_html/getdata.php?cron=yes
I. try this (sometime needs to define where is php)
/usr/local/bin/php -q /home/morpheus/public_html/getdata.php?cron=yes
II. look into the file what you wanna run and if there any file path inside, where the script read/write any file change that path
like this (this is just an example and hope this makes sense)
let say your file contains this
$zp = gzopen("sql/export/".$exportLib->dbName.".".$time.".sql.gz", "w9");
but sometimes you need to define the full path like this
$zp = gzopen("/home/someuser/public_html/sql/export/".$exportLib->dbName.".".$time.".sql.gz", "w9");
All above depends on the server setting.
[edited by: coopster at 11:15 pm (utc) on Mar. 10, 2005]
[edit reason] no solicitations [webmasterworld.com] please [/edit]