Welcome Guest, Not a member yet? Register   Sign In
Cron on GoDaddy
#4

[eluser]spider pig[/eluser]
Hi gene777

[quote author="gene777" date="1284252891"]Hi,
Code:
/web/cgi-bin/php5: /usr/local/lib/libpng12.so.0: no version information available (required by /web/cgi-bin/php5)
Content-type: text/html
[/quote]

libpng12 is a library (plugin) that handles PNG image files. If you are not modifying PNG files, I'd say there was a problem with the server.

Your Step 1 look correct, however, the web address you are trying to open in Step 2 doesn't look right. It looks like you are accessing the main index.php file for the entire web site rather than the particular controller that sends the emails:

Code:
#!/bin/bash
<?php
    $handle = fopen("http://mywebsitelocation/index.php/send_emails", "r");
    fclose($handle);
?>

I didn't bother setting permissions. Normally your FTP software (I use Coda) does this for you.

The one thing I did omit from my original post was the line of code used in cron. So here it is:

Code:
/web/cgi-bin/php5 "$HOME/html/cron.php"

It is based on the default code GoDaddy has when you create a new cron job.

GoDaddy's cron only allows you to run a script up to twice an hour. Just made use the check box "Run twice an hour" is ticked. I just adjusted how many emails are sent in each batch to compensate.

Hope that helps.


Messages In This Thread
Cron on GoDaddy - by El Forum - 07-29-2010, 09:10 PM
Cron on GoDaddy - by El Forum - 07-30-2010, 04:50 PM
Cron on GoDaddy - by El Forum - 09-11-2010, 01:54 PM
Cron on GoDaddy - by El Forum - 09-12-2010, 07:13 PM
Cron on GoDaddy - by El Forum - 09-12-2010, 09:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB