Images not showing up in localhost
Posted by: aditya (---.host.pobb.as13285.net)
Date: October 09, 2016 02:24AM

Hi there,
Probably im asking the same question if iam, Iam sorry.
Im trying to add images to my testing site and images are coming blank.I have put the images in www folder within a subfolder(www/images/pic.jpeg) and still not able to see the image. Im using win 10,64bit and apache version
2.4.18 .My code is as below
<!doctype html>
<html>
<head>
<title> My Web </title>
<style>
ul{
list-style-type:none;
overflow:hidden;
}
li{
float:left;
}
a {
padding-left:5cm;
}
body{
background-color:#42a7f4;
}
</style>
</head>
<body>
<ul>
<li><b> <a href="mywork.html"> My Work </a> </b> </li>
<li><b> <a href="aboutme.html"> About me </a> </b> </li>
<li><b> <a href="otherinterests.html"> Other interests </a> </b> </li>
<li><b> <a href="contact.html"> Contact </a> </b> </li>
</ul>
<img src="[localhost];
</body>
</html>
I have tried to put the image url in different ways still same result. Im new to this stuff if there is anything wrong in the code please let me know and please let me know how to make images appear..
Thank you

Options: ReplyQuote
Re: Images not showing up in localhost
Posted by: Userius (---.under.net.ua)
Date: October 09, 2016 10:58AM

I had a similar problem. This may be due to the fact that I recently started to use a proxy server? Or it can not be connected?

Options: ReplyQuote
Re: Images not showing up in localhost
Posted by: Otomatic (Moderator)
Date: October 09, 2016 11:16AM

Hi,

> <img src='http://localhost/www/images/webdev1.jpeg'>
No !
Don't use http. Use relative path to the image, for example: <img src='images/webdev1.jpeg'>

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Images not showing up in localhost
Posted by: aditya (---.host.pobb.as13285.net)
Date: October 09, 2016 12:18PM

Sorry, didnt notice code i pasted came wrong.
I have tried the path with http,, with www/images/pic.jpg, only with images/pic.jpeg. Still no luck.
I can access the image through my project everything is fine but when im trying to link it in a file not much luck...

Options: ReplyQuote
Re: Images not showing up in localhost
Posted by: RiggsFolly (Moderator)
Date: October 09, 2016 04:57PM

Are you running this site inside a Virtual host, or in `wamp\www\projectfolder`

Read WAMPServer 3 All you need to know Specifically the second thread.

And or this post The need for Virtual hosts

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.