Image not displayed
Posted by: deb_xp (---.161.61.36.static.vsnl.net.in)
Date: February 12, 2009 09:12PM

Hi

I recently installed wampserver on my Vaio running Win Vista Home premiun. The problem is that, althought everything is fine, the images are not displayed using this service. As for example, the below code dosen't seem to work....

<html><head>
<title>Test</title>
</head>
<STYLE type=text/css>
.bodytext {FONT-SIZE: 9px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif}
</STYLE>
<body>
<DIV align=center>
<table width="800" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="800" height="42" align="center" valign="middle" class="bodytext">C:/wamp/www/PHP_examples/Images_Upload/1.jpg</td>
</tr>
<tr>
<td height="299" align="center" valign="middle"><img src="C:/wamp/www/PHP_examples/Images_Upload/3.jpg"/></td>
</tr>
</table>
</DIV>
</body>
</html>

Options: ReplyQuote
Re: Image not displayed
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: February 12, 2009 09:19PM

dont use a full url

use
<img src="PHP_examples/Images_Upload/3.jpg"/>

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Image not displayed
Posted by: deb_xp (---.161.45.35.static.vsnl.net.in)
Date: February 13, 2009 07:42PM

Thanks....but no luck...
If I use "[localhost]; instead then it shows

Is any settings required?

Options: ReplyQuote
Re: Image not displayed
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: February 13, 2009 07:59PM

where is the file and image,,, give me paths


from www onwards

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: Image not displayed
Posted by: deb_xp (---.161.5.222.mum-cdma.dialup.vsnl.net.in)
Date: February 14, 2009 08:54PM

my file path are as follows:

PHP file: C:\wamp\www\PHP_examples\Test.php
Image File: C:\wamp\www\PHP_examples\Images_Upload\1.jpg
Wamp Dir: C:\wamp\www

Options: ReplyQuote
Re: Image not displayed
Posted by: stevenmartin99 (---.b-ras1.blp.dublin.eircom.net)
Date: February 14, 2009 09:00PM

oh sorry ok.

Then in the script just use src='Images_Upload\1.jpg'

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote


Sorry, only registered users may post in this forum.