Help! Pics Won't Show...

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Help! Pics Won't Show...

Postby MartyBoi » 16. August 2019 19:27

Hi.... I am stuck, so I'm hoping someone could help me out. I am doing a series of tutorials on PHP. When trying to place on image on any given PHP extention, it won't display.

Example: On my index.php, I tried to insert a logo. <img src="img/logo.jpg" alt="logo">; into my header. Well, the logo don't show but a little gray color squire box is where I want to image to be.

Note: The logo will show on an index.html, without xammp running.

Does anyone know the issue?

Thank you
MartyBoi
 
Posts: 1
Joined: 16. August 2019 19:19
XAMPP version: 7.3.8
Operating System: windows

Re: Help! Pics Won't Show...

Postby Nobbie » 17. August 2019 10:37

Probably any path missmatch.

Where is your image stored (full pathname please)?
Where is your index.php stored (full pathname please)?
What exactly do you enter into your browser (full pathname please)?
What is the contents of index.php? Please show us the full code.

Last not least, it can also be a missing option (missing rights) in httpd.conf or in a local .htaccess file. We will run a test and find out after we know all pathnames and filenames.
Nobbie
 
Posts: 11100
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 72 guests