Jump to content

Recommended Posts

Posted

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!

Posted

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.

Posted

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));

Posted

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! :)

  • 3 weeks later...
Posted

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

Posted

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. ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...