I am trying to get the following cron to work since my host does not accept wget<br /><br />php -q /home/denverc/public_html/mailer/admin/responder.php?op=cron<br /><br /><br /><br />the following cron is what I need to use for my mailing software<br /><br />*/15 * * * * /usr/bin/wget -O/dev/null -o/dev/null <!--sizeo:2--><span style="font-size:10pt;line-height:100%"><!--/sizeo-->http://www.mywebsite.com/mailer/admin/responder.php?op=cron<!--sizec--></span><!--/sizec--><br /><br /><br />can someone tell me how to work the php script to replace the other, I receive the following error<br /><br />No input file specified.<br /><br />Thanks for the help!<!--content-->
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:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->php -q /home/denverc/public_html/mailer/admin/responder.php op=cron<!--c2--></div><!--ec2--><br />You might take a look at <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=21675&st=0&p=143117&#entry143117" target="_blank">this code</a> 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.<!--content-->
ok now have this error<br /><br /><br /><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 /><br /><br /><br />below is line 162 of the etools2.php<br /><br />sqlconnect(array('server'=>$database_host,'user'=>$database_user,<br /> 'database'=>$database_name,'password'=>$database_password));<!--content-->
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.<br /><br />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. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /><br /><br />By the way, welcome to the forums, rolloff! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
Welcome to the forums rolloff.<!--content-->
Welcome to the forums rolloff <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums rolloff<!--content-->
Welcome to the forums rolloff <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forum, rolloff. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
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?<!--content-->
You can PM me with details on how I can look at the code.<!--content-->
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?<br /><br />Thanks for the support<!--content-->
What mailer script are you trying to use?<!--content-->
I believe this is OmniStar Mailer, a commercial mailing script.<br /><br />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.<br /><br />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. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /><!--content-->
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:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->php -q /home/denverc/public_html/mailer/admin/responder.php op=cron<!--c2--></div><!--ec2--><br />You might take a look at <a href="http://www.totalchoicehosting.com/forums/index.php?showtopic=21675&st=0&p=143117&#entry143117" target="_blank">this code</a> 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.<!--content-->
ok now have this error<br /><br /><br /><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 /><br /><br /><br />below is line 162 of the etools2.php<br /><br />sqlconnect(array('server'=>$database_host,'user'=>$database_user,<br /> 'database'=>$database_name,'password'=>$database_password));<!--content-->
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.<br /><br />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. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /><br /><br />By the way, welcome to the forums, rolloff! <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/thumbup1.gif" style="vertical-align:middle" emoid=":thumbup1:" border="0" alt="thumbup1.gif" /><!--content-->
Welcome to the forums rolloff.<!--content-->
Welcome to the forums rolloff <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forums rolloff<!--content-->
Welcome to the forums rolloff <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
Welcome to the forum, rolloff. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid="" border="0" alt="smile.gif" /><!--content-->
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?<!--content-->
You can PM me with details on how I can look at the code.<!--content-->
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?<br /><br />Thanks for the support<!--content-->
What mailer script are you trying to use?<!--content-->
I believe this is OmniStar Mailer, a commercial mailing script.<br /><br />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.<br /><br />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. <img src="http://www.totalchoicehosting.com/forums/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid="" border="0" alt="sad.gif" /><!--content-->