1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Buying Looking for a PHP coder for a small script

Discussion in 'Programming' started by Johnburk, May 4, 2012.

  1. #1
    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:


    PHP:
    1.  
    2. $check = array(
    3. "url1" => "2012-05-05",
    4. "url2" => "2012-05-05",
    5. "url3" => "2012-05-06",
    6. "url4" => "2012-05-06",
    7. "url5" => "2012-05-07");
    8.  
    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.
     
    Johnburk, May 4, 2012 IP
  2. Johnburk

    Johnburk Peon

    Messages:
    777
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    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.
     
    Last edited: May 5, 2012
    Johnburk, May 5, 2012 IP
  3. 0wned

    0wned Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    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
     
    0wned, May 5, 2012 IP
  4. downloadphpscripts

    downloadphpscripts Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    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.

    PHP:
    1.  
    2. // This would be the file url_array.php
    3. $url_dates_array["2012-05-05"][] = "url1";
    4. $url_dates_array["2012-05-05"][] = "url2";
    5. $url_dates_array["2012-05-06"][] = "url1";
    6. $url_dates_array["2012-05-06"][] = "url2";
    7. $url_dates_array["2012-05-06"][] = "url3";
    8. $url_dates_array["2012-05-07"][] = "url1";
    9. $url_dates_array["2012-05-07"][] = "url2";
    10.  
    Then, on whatever page you need to run the script:

    PHP:
    1.  
    2. require_once("url_array.php");
    3. $current_date = date("Y-m-d", strtotime("now"));
    4. foreach($url_dates_array[$current_date] as $date_key => $date_url)
    5. {
    6. // do your processing here
    7. echo $date_url . "<br />"; // echo or process each url for today's date
    8. }
    9.  
    Please let me know if I'm on base and if you'd like to discuss it further.
     
    downloadphpscripts, May 5, 2012 IP