1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[WTH] Bot Programmer - Possibly PHP?!?! - FTP / File Change

Discussion in 'Hire a Freelancer' started by KraftyKyle, Jul 21, 2014.

  1. KraftyKyle

    KraftyKyle Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Aug 13, 2008
    Messages:
    1,941
    Likes Received:
    4,609
    Gender:
    Male
    Location:
    Unknown
    I'm looking for someone to create a simple ftp bot (I think that would do the trick) that uploads fileA to a location on my server every hour at :45 and then uploads fileB to a location on my server every hour at :00, etc. If you can do the job post and send me a PM.

    Is it possible to check the server time via PHP and change the file accordingly? It's not this simple, but I'm looking to display one header on a web page for 45 minutes and then another header on the same web page for 15 minutes.

    If you know another way to accomplish this let me know.
     
  2. REAL EMAIL ID

    REAL EMAIL ID Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 27, 2013
    Messages:
    738
    Likes Received:
    94
    Gender:
    Male
    Location:
    Hell
    Home Page:
    Add me on Skype we can do this at cheap rate .
     
  3. pavan

    pavan Elite Member

    Joined:
    Mar 30, 2008
    Messages:
    1,603
    Likes Received:
    432
    I can do this
    add me up on skype
    PavanIndia
     
  4. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    902
    Likes Received:
    204
    Home Page:
    Sending you a PM too.
     
  5. nesterdwarf

    nesterdwarf Regular Member

    Joined:
    May 30, 2008
    Messages:
    276
    Likes Received:
    539
    Location:
    State of Misery...er, Missouri...
    Using your example, this should be close to what you are needing -

    Code:
    
    <?php
         date_default_timezone_set('UTC');
         $today = date("i");
         if ($today>=45){
              echo $today;
              echo "</br>ItemB";
         }else{
              echo $today;
              echo "</br>ItemA";
         }
    ?>
    
    
    HTH,
    ND

    P.S.

    Sent you a PM with links to the relevant PHP pages. - ND
     
  6. johnpup

    johnpup Regular Member

    Joined:
    Jan 31, 2013
    Messages:
    247
    Likes Received:
    29
    Hello sir,
    I am very good in php, please add me on skype: walcott911

    Thanks and regards
     
  7. illblackthat

    illblackthat Newbie

    Joined:
    Jul 21, 2014
    Messages:
    4
    Likes Received:
    0
    You should do this with inline javascript or PHP not seperate files via FTP. PM me if you need help with this, or google for changing content dynamically based on time (i.e. good morning vs. good afternoon)