Re: Can anyone translate this script to php?

From: Date: Mon, 11 Mar 2002 14:26:07 +0000
Subject: Re: Can anyone translate this script to php?
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12575@lists.php.net to get a copy of this message
<%@language="vbscript"%> <%location=request.querystring("res") location=replace(location, " ", "/") %> <body> <img src="<%=location%>"> </body> ================== <html> <head> <title></title> </head> <body> <? $location = $HTTP_GET_VARS["res"]; ## get the value from the GET var; If it was a post, use $HTTP_POST_VARS["res"] instead. $location = str_replace( "/"," ", $location); ## this assumes you want to replace all / with a space. ?> <img src="<?=$location?>"> </body> </html> ========================== This may do it. Nicole www.aeontrek.com "Ceyhun GüLer" <jayhoon@fenerbahce.com> wrote in message news:20020310174717.15317.qmail@pb1.pair.com... > I have a small picture and when I click on this image > image opens resimgoster.asp with "resimgoster.asp?res=main tumbled images > picture.jpg" > and this asp code includes > > <%@language="vbscript"%> > <%location=request.querystring("res") > location=replace(location, " ", "/") > %> > > <body> > <img src="<%=location%>"> > </body> > > this code gets "res" variable and replace " " fields with "/" > by this way I use only one file to enlarge of these picture... > but I need it in php now > > can any one translate my asp code to php code? > > > > >

« previous php.windows (#12575) next »