redirecting to image after analizing

Discussion in 'PHP' started by promotingspace.net, Aug 5, 2007.

  1. #1
    Hi
    As you may remember, i am trying to prepare something to give users a code to place on their pages to show ads. some suggested me to give them a 1*1 image so that enables me to analize their details and help me show ads. ( I know how to analize info after visitors clicked on the ads. Jus the display is a problem)
    while i was thinking about this idea (using image), i thought maybe i can give them a code like:
    <img border="0" src="a redirect link here.php " width="1" height="1">
    and aRedirecrtLinkHere.php analizes the HTTP_referrer and help me have the ads displayed. and finally redirect to an image.
    If this works, how can I settup that link and if not any suggestion or idea that works?
    thanks
     
    promotingspace.net, Aug 5, 2007 IP
  2. promotingspace.net

    promotingspace.net Peon

    Messages:
    361
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I guess I got the solution. I give them an iframe code with a link to a php file on my site as src
    The only remaining problem is that I can use http_referrer to realize from where my link has been clicked. But I need to realize where ( what domain) is asking for my php file to display the iframe. if i know that, I can analize their settings and display the ads according to their setting in my database
     
    promotingspace.net, Aug 6, 2007 IP
  3. exodus

    exodus Well-Known Member

    Messages:
    1,900
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Why not have the width/height the same as the images. Then use php gd to create the image along with processing anything you need to process.
     
    exodus, Aug 6, 2007 IP