rolloff Posted August 23, 2005 Posted August 23, 2005 I am trying to get the following cron to work since my host does not accept wget php -q /home/denverc/public_html/mailer/admin/responder.php?op=cron the following cron is what I need to use for my mailing software */15 * * * * /usr/bin/wget -O/dev/null -o/dev/null http://www.mywebsite.com/mailer/admin/responder.php?op=cron can someone tell me how to work the php script to replace the other, I receive the following error No input file specified. Thanks for the help! Quote
TweezerMan Posted August 23, 2005 Posted August 23, 2005 You can't call a PHP script from a cron job with parameters such as '?op=cron' tacked on the end of the file name. The responder.php script would need to modified so the script can receive the parameter when it is called like this in the cron job: >php -q /home/denverc/public_html/mailer/admin/responder.php op=cron You might take a look at this code I wrote for someone else experiencing this problem with another script. Your script could require additional code though, depending on how the script is written. Quote
rolloff Posted August 23, 2005 Author Posted August 23, 2005 ok now have this error <br /> <b>Fatal error</b>: Call to undefined function: sqlconnect() in <b>/home/denverc/public_html/mailer/lib/etools2.php</b> on line <b>162</b><br /> below is line 162 of the etools2.php sqlconnect(array('server'=>$database_host,'user'=>$database_user, 'database'=>$database_name,'password'=>$database_password)); Quote
TweezerMan Posted August 23, 2005 Posted August 23, 2005 Apparently, sqlconnect() is a function defined in some other PHP file. I imagine the script code is probably using an include() or require() so it can access the functions in it, but something isn't right in the script code that specifies the path to that file. Without being able to look at the source code or trace the code execution, I don't have any way to tell you exactly what's wrong or how to fix it. By the way, welcome to the forums, rolloff! Quote
rolloff Posted August 25, 2005 Author Posted August 25, 2005 Thanks, I am glad to be here, what support you all offer and what a welcome!! Thanks! can I send the code to someone to look at? Quote
TweezerMan Posted August 25, 2005 Posted August 25, 2005 You can PM me with details on how I can look at the code. Quote
rolloff Posted September 10, 2005 Author Posted September 10, 2005 David, still cannot get my mailer program to work, seems it needs wget to work, any other ideas or do I need to find a nother host? Thanks for the support Quote
TCH-Don Posted September 10, 2005 Posted September 10, 2005 What mailer script are you trying to use? Quote
TweezerMan Posted September 10, 2005 Posted September 10, 2005 I believe this is OmniStar Mailer, a commercial mailing script. roloff - The bottom line here is that in order to use OmniStar Mailer's responder.php script in a cron job, any code in responder.php, or in scripts included by responder.php, has to be modified to run properly in a non-web server environment. I've looked at the code a couple of times and recommended fixes where I thought there was a problem. OmniStar Mailer has a lot of code though, and as an outsider who is not a licensed user of this commercial software, I'm not sure there is much more than I can do to help you. Quote
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.