I currently have a script that checks a website every X period. This is done by typing the url of the script and it works in the browsers. It is like http://www.domain.com/script.php?check=URL I does not work from the serverside and I if I want to check 10 URLs I have to run 10 sites in a browser and then the next day manually change ?check=oldurl to ?check=newurl. It would be great if the script could be changed, where it would take a .txt or .php file and check all the URL within that files based on date. This way 10 scripts can be running from a server and I don't have to do anything manually. For example it would take: $check = array( "url1" => "2012-05-05", "url2" => "2012-05-05", "url3" => "2012-05-06", "url4" => "2012-05-06", "url5" => "2012-05-07"); PHP: So on 2012-05-05 it would continualy check URL1 and on 2012-05-06 it would check URL2. And so on. Looking for a coder who can do this for me.
I have had over 20 PM's! Please stop sending a PM and please post your questions here. A few things. It is just a simple script. Not the new Google or Facebook. There no need for a database, CSS, JS, Ruby or Rails or any other additional feature. Just a list of URLs that need to be visited. This can be within the PHP or as an external .txt file. I am not looking for hosting, a server or any other service. Thank you.
Hey there, if you can clarify for me what you mean by "check" I can do this Job for you with a extremely short turn around time. Once you have let me know what you mean by check ill be able to give you a quote and a better estimation of how long it will take. Thanks, 0wned
Hi John, If I understand correctly, you're looking for something like this: This would be the url_array.php file and will contain a multi-dimensional array with each date key containing the urls to be run on that date. So basically, each $url_dates_array["datehere"][] can contain multiple urls. // This would be the file url_array.php $url_dates_array["2012-05-05"][] = "url1"; $url_dates_array["2012-05-05"][] = "url2"; $url_dates_array["2012-05-06"][] = "url1"; $url_dates_array["2012-05-06"][] = "url2"; $url_dates_array["2012-05-06"][] = "url3"; $url_dates_array["2012-05-07"][] = "url1"; $url_dates_array["2012-05-07"][] = "url2"; PHP: Then, on whatever page you need to run the script: require_once("url_array.php"); $current_date = date("Y-m-d", strtotime("now")); foreach($url_dates_array[$current_date] as $date_key => $date_url) { // do your processing here echo $date_url . "<br />"; // echo or process each url for today's date } PHP: Please let me know if I'm on base and if you'd like to discuss it further.