aarman Posted May 19, 2006 Share Posted May 19, 2006 Cron Job to process phpList e-mail “Q”I am at my wits end. I finally figured out this problemStatus: 404Content-type: text/htmlX-Powered-By: PHP/4.3.2No input file specified. Only to start getting this errorContent-type: text/htmlX-Powered-By: PHP/4.3.2Fatal Error: Mysql is not supported in your PHP, recompile and try again. I know Mysql and PHP work on my site because I can process the “Q” manually.What am I missing?I really need some help there is a huge patch missing out of my hair as I continue to pull it. Quote Link to comment https://forums.phpfreaks.com/topic/10042-help-with-cron-job/ Share on other sites More sharing options...
dsk3801 Posted May 20, 2006 Share Posted May 20, 2006 [!--quoteo(post=375391:date=May 19 2006, 06:44 PM:name=Pulling Out Hair)--][div class=\'quotetop\']QUOTE(Pulling Out Hair @ May 19 2006, 06:44 PM) [snapback]375391[/snapback][/div][div class=\'quotemain\'][!--quotec--]Cron Job to process phpList e-mail “Q”I am at my wits end. I finally figured out this problemStatus: 404Content-type: text/htmlX-Powered-By: PHP/4.3.2No input file specified. Only to start getting this errorContent-type: text/htmlX-Powered-By: PHP/4.3.2Fatal Error: Mysql is not supported in your PHP, recompile and try again. I know Mysql and PHP work on my site because I can process the “Q” manually.What am I missing?I really need some help there is a huge patch missing out of my hair as I continue to pull it.[/quote]how are you executing the cron script? I usually do a "where php" on the command line first to find out where the php binary is located, then run it, like this:/usr/local/bin/php -f /home/username/public_html/cron_file.phpYou can also do:/usr/local/bin/php --helpTo get a list of the command line options. On some servers I've had to specify which php.ini file to use when running on the command line, which there is an option for. Quote Link to comment https://forums.phpfreaks.com/topic/10042-help-with-cron-job/#findComment-37455 Share on other sites More sharing options...
litebearer Posted May 21, 2006 Share Posted May 21, 2006 Another Lite-sledge-hammer approach (for who don't know, are afraid of, do not have access to and/or are to lazy to learn (I fit this category) cron).....simply use the task-scheduler on your pc (aren't we all using pc's? :) ) to have your browser invoke the required php script on your server at the appropriate times.Lite... (Master of Laziness) Quote Link to comment https://forums.phpfreaks.com/topic/10042-help-with-cron-job/#findComment-37787 Share on other sites More sharing options...
aarman Posted May 23, 2006 Author Share Posted May 23, 2006 Dave K. thanks for the response. My command isphp /home/admin/public_html/lists/index.php -p processqueue -c /home/admin/public_html/lists/config/config.php login=xxx password=xxxI did not mention that this is a hosted account. How do I get to the command line?Thanks for the reply litebearer.can I use the task scheduler on my PC to schedule a task on a hosted account? aghhhhhhhhh I am so confused.Thanks for the reply litebearer.can I use the task scheduler on my PC to schedule a task on a hosted account? aghhhhhhhhh I am so confused. Quote Link to comment https://forums.phpfreaks.com/topic/10042-help-with-cron-job/#findComment-38132 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.