SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Nov 2012
    0 Post(s)
    0 Thread(s)

    Automatically swapping an image for another on the server.

    Hi guys,

    I am new here, glad to have found this forum.
    Just a quick question.
    I am trying to figure out a way to automatically swap a file for another one on the same location on the server at a given time.
    This image is the splash screen of my IOS app and the url is pointing to it.

    Let's say I have a new version of "picture1.jpg" that needs to take the place of the old "picture1.jpg" on Sunday at 12pm.

    This picture will need to change up to 20 times a month and I want to automate the whole process.

    Is that possible? How can this be achieved?
    Thanks for the pointers.


  2. #2
    SitePoint Zealot
    Join Date
    Jul 2012
    Scarborough, North Yorkshire, United Kingdom
    0 Post(s)
    0 Thread(s)
    Cron job can be used, not sure which language you use but you essentially want to run the cron on Sunday at 12pm that:

    Removes the old image
    Adds the new one from a holding folder on your server
    Resell SSL Certificates - API / WHMCS / HostBill / ClientExec
    ServerTastic - RapidSSL, Geotrust, Thawte, Symantec, SmarterTools and more


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts