Forum Moderators: open

Message Too Old, No Replies

Porting from windows to Linux Asp Problem

         

sithicus

1:41 am on Jun 25, 2003 (gmt 0)

10+ Year Member



I'm trying to port this line of code from a windows server to a linux based server.

<IMG SRC="../images/product/<%=Request.QueryString("img")%>">

The request.querystring won't run can anybody tell me why or what i'm doing wrong or what info you need for me to post a better question.

Thanks
-Sith

sithicus

2:46 am on Jun 25, 2003 (gmt 0)

10+ Year Member



please... any suggestions?

txbakers

3:23 am on Jun 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can you print the queryString to the screen without being embedded in a tag like that?

I would try that first. If it prints, the answer lies within your coding, not the ASP.

sithicus

3:46 am on Jun 25, 2003 (gmt 0)

10+ Year Member



Well,
The code works fine on an IIS Server but when I moved it over to a linux server it doesn't work... so i'm thinking it's something small but i'm not overly good with asp to begin with.

sithicus

4:22 am on Jun 25, 2003 (gmt 0)

10+ Year Member



A little more background information on this code.

This is the line of code which sets img

<a href="JavaScript:imagePop('../asp/enlargeimage.asp?img=' + imageToEnlarge);">
imageToEnlarge is a var which changes when the user clicks
on a image

This is the code which sets imageToEnlarge

<div align="center"><a href="../zoom/aj72xx/zoom1.htm"
onclick="MM_swapImage('mainImg','','../../../images/product/aj72xx/aj72xx_big_1.jpg',1);
imageToEnlarge = escape('aj72xx/aj72xx_zoom_1.jpg'); return false;"><img src="../../../images/product/aj72xx/aj72xx_small_1.jpg" width="70" height="70" border="0" /></a></div></td>

the end result is that it creates a pop up window with
enlargeimage.asp in it, on the enlargeimage.asp page it is basically very simple just a layout with this line of asp code
<IMG SRC="../images/product/<%=Request.QueryString("img")%>">

That code is used to display an enlarged image of the one the user clicked on. The problem is is that this code worked perfect on an IIS two server and now i've switched over to a linux server and it seems these is a error with this line of code.

<IMG SRC="../images/product/<%=Request.QueryString("img")%>">

I hope this helps a little
If anybody wants to see a link of this code just message me and i can show you the application and maybe that would be easier.
Thanks
-Sith

sithicus

4:56 am on Jun 25, 2003 (gmt 0)

10+ Year Member



Nevermind it looks like maybe the linux server doesn't have chillisoft installed. That would pretty much sum up why the heck it's not working.
-Sith

paladin

1:06 pm on Jun 28, 2003 (gmt 0)

10+ Year Member



if your server supports PHP (Linux usually does) than you can try the following:
1. Change the file extention to *.php from *.asp (page.asp=>page.php)
2. Change the
<IMG SRC="../images/product/<%=Request.QueryString("img")%>">
to
<IMG SRC="../images/product/<?=$_GET['img']?>">

hope it helps