Run PHP script on load

meheartswhoelse

New Member
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.Here is the form:\[code\]<form id="backup" action="backup.php" method="get"> <div id="formContainer"> <div class="rowtop"> <span class="formw"> <input class="search" type="text" onclick="this.value='';" name="tag" value="http://stackoverflow.com/questions/3556425/<?php echo urldecode($tag); ?>"/> </span> </div> <br> <div class="row"> <br><br> <span class="formw"> <input type="text" onclick="this.value='';" name="maxpages" value="http://stackoverflow.com/questions/3556425/<?php echo $max_pages; ?>"/> </span> </div> <div class="rowbottom"><span class="label"><input type="submit" value="http://stackoverflow.com/questions/3556425/Backup" /></span></div> </div></form>\[/code\]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.What is the easiest way to achieve this?
 
Back
Top