Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.