Run PHP script on load
<p>I have a PHP script which uses the value of an form input box to submit a twitter search via <code>FileGetContents()</code>, it returns the results on screen and stores them in a MySQL database.</p>

<p>Here is the form:</p>

<pre><code>&lt;form id="backup" action="backup.php" method="get"&gt;
    &lt;div id="formContainer"&gt;
        &lt;div class="rowtop"&gt;
            &lt;span class="formw"&gt;
                &lt;input class="search" type="text" onclick="this.value='';" name="tag" value="&lt;?php echo urldecode($tag); ?&gt;"/&gt;
            &lt;/span&gt;
        &lt;/div&gt;
                &lt;br&gt;
        &lt;div class="row"&gt;
                &lt;br&gt;&lt;br&gt;
            &lt;span class="formw"&gt;
                &lt;input type="text"  onclick="this.value='';" name="maxpages" value="&lt;?php echo $max_pages; ?&gt;"/&gt;
            &lt;/span&gt;
        &lt;/div&gt;
        &lt;div class="rowbottom"&gt;&lt;span class="label"&gt;&lt;input type="submit" value="Backup" /&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>I'd like to have this script running as part of a CRON job, so instead of getting the search value from the input i'd like it to be the same value each time its run.</p>

<p>What is the easiest way to achieve this?</p>
