Is there a way I can set up my imgPath = "path here" so that if it comes from the live site's ip it uses images.mydomain.com and if I am working on it locally it uses my local path?
If LCase(Trim(Request.ServerVariables("SERVER_NAME")) ) = "www.mydomain.com"<BR> ' Use live site<BR>Else<BR> ' Use local<BR>End If<BR><BR>Craig.
Let's say your local IP is 192.x.x.x then you could do<BR><BR><%<BR>if Left(Request.ServerVariables("REMOTE_ADDR"), 3) = "192" then<BR>imgPath = "192.x.x.x"<BR>else<BR>imgPath = "images.mydomain.com"<BR>end if<BR>%>
cheers guys, I presume there is no security implications on this is there? as my local machine is only available locally.