Jump to content

Include files in PHP 5.2.4


ShopMAster

Recommended Posts

My host upgraded to 5.2.4 and now all my include files are not showing up on my pages.

 

Here is how I am defining the include statements:

 

<?
// include header image
include('http://www.maddenwars.com/includes/mainnav_hd.php');
?>

 

I looked at the documentation but I can't seem to find out the correct way to include files.

 

Thanks guys.

Link to comment
https://forums.phpfreaks.com/topic/70835-include-files-in-php-524/
Share on other sites

I'm sorry, I'm a newbie.  What is an absolute path?

 

Not really related to php, but it means the full path to a file. You do know what a path is? Just a guess, but the path your trying to include would look like....

 

<?php
  include 'includes/mainnav_hd.php';
?>

 

providing the file your calling this include from is within your doc root.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.