PHP Cron job - no input file specified "SOMETIME"
<p>I have PHP cron job which runs every 30 minutes. PHP cron job is running in Godaddy hosted environment and Godaddy has told that it is not their problem. I run the PHP like this</p>

<p>/web/cgi-bin/php5 "$HOME/html/wp-content/themes/twentyten/totalview.php"</p>

<p>Code inside the totalview.php is</p>

<pre><code>&lt;?php
include_once("../../../wp-config.php");
include_once("tplinclude/functions.php");
session_start();

    $res=mysql_query("select sum(`total_num`) from `some_table`");
    $row = mysql_fetch_row($res);
    echo $row[0] ;
?&gt;
</code></pre>

<p>But once in a while this will give error message, </p>

<hr>

<p>Status: 404 Not Found
Content-type: text/html</p>

<p>No input file specified.</p>

<hr>

<p>Problem is that I get this error only SOMETIME. For example out of 48 execution 8-10 times it will show this error. Rest it will work fine. I pull some data from database, so I know that it works most of the time.</p>

<p>But why it gives error sometime ?</p>
