Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image not showing with <? include("../header.php") ?>

Status
Not open for further replies.

suseli

Technical User
Dec 9, 2005
77
GB
My webroot:

public_html
|_____mysite
|___image
| |___all images here
|
|___photos
| |___gallery.php
|
|___index.php
|
|___header.php


I have a gallery.php page that INCLUDES header.php page like this <? include("../header.php") ?>
When i run the gallery.php page the images are not showing at all.

Can somebody please help me.
 
You are only confirming in my mind that you have a path problem.

When you type [ignore][/ignore], the base URL path is the root of the website. When you type [ignore][/ignore], the base URL path is the site's subdirectory /photos. If headers.php outputs HTML which uses relative links (links like "[red]../[/red]images/...") versus absolute links (links like "[ignore] or document-root-relative links (links like "/images/.."), then you are having a path issue.


Want the best answers? Ask the best questions! TANSTAAFL!
 
Thanks for your prompt guide.

header.php has relative links for images.

what do i need to do so that when i run gallery.php the images will show up.
 
its working with absolute path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top