On my site I built an ad system which normally we would just put the image in the table as imagename.jpg and the remainder of the http://www.mysite.com/ads/ is part of the html page.
A client wants to put an ad on my site,but he gave me a link to his site "http://hissite.com/images/hisad.jpg" to grab the image off his server, because of his tracking system. Well this completely screws up my system because what I get is "http://www.mysite.com/ads/http://hissite.com/images/hisad.jpg"
What I would like to do is set up an If Statment to check to see if http is present and if it is then do something else, if not then do normal stuff-so to speak.
Can you check to see if only a portion of something exist using an if statement?
like<? if ($AdImage == 'http%');
echo ("what ever");
else
echo ("the other what ever"); ?>
Thanks for your help.
Brett