Php include question

  • manuel2283
  • Novice
  • Novice
  • manuel2283
  • Posts: 26

Post 3+ Months Ago

I have a quick question for those of you who know PHP

I have using PHP for about a week and have a question regarding INCLUDES.

Ok I have this HTML Page I would like to include in a lot of other pages

http://216.174.103.173/main_components/ ... eader.html

Here is my include code:

<?php

if(!empty($HTTP_GET_VARS[page]) and file_exists("./$HTTP_GET_VARS[page].inc")) {

include("./$HTTP_GET_VARS[page].inc");

} else {

include("/home/virtual/site77/fst/var/www/html/main_components/html/blue_header.html
");

}

?>


The HTML Tables are there but my images are missing:

http://216.174.103.173/main_templates/s ... nclude.php

How can I get the images and whole HTML page to be included with all its attributes and images, on my include.

Thank You :?:

you can email me at: manuel2283@surfillustrated.com
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'm about 99% certain all you need to do is make the relative links to the images in the HTML header page absolute links instead of relative. I'm pretty positive that will do the trick.
  • manuel2283
  • Novice
  • Novice
  • manuel2283
  • Posts: 26

Post 3+ Months Ago

Thank You for help. It worked just fine.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Excellent! Glad it worked.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 160 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.