Help with a cron job
-
I have not been able to get a cron job to work with WordPress. I have a php file that is pulling a lot of data off three separate databases, compiling it and then creating a post from all the info. The problem is that when I use “include(“../wp-load.php”);” it kills my cron job.
as a test I have the following code
echo “start”;
include(“../wp-load.php”);
echo “finished”;When I run it in my browser, I get “startfinished” when I run it with cron, I get “start”
anybody know why loading wp-load.php is stopping my cron job?
As a side note, I usually get an error sent to me, but with the above code I get nothing.
Here’s the cron call (using a cPanel)
/ramdisk/bin/php5 -c /home/zombiitv/publc_html/php.ini -q /home/zombiitv/public_html/ut/php/autopostAgent.phpI’m using specific php.ini file to increase the memory and the time limits.
Any help would be appriciated
Dan
- The topic ‘Help with a cron job’ is closed to new replies.