How To Replace Image On Server Before Re-Direct?

Discussion in 'Programming' started by GADOOD, Mar 14, 2007.

  1. #1
    Hi there,

    Could anyone help me with this problem I have.

    Say I have 2 images on my server:

    Image 1: purple.gif
    Image 2: orange.gif

    I want to create a web page in .php that as soon as someone visits it, it deletes purple.gif and renames orange.gif to purple.gif - and then re-directs to another website of my choice.

    How is this possible?

    Thanks in advance. :)

    Pete
     
    GADOOD, Mar 14, 2007 IP