"I am having a few problems trying to get my php includes showing on my page.

Is there any easy/basic code I can insert on a page to test whether it is really working. The package I get from my host does allow php includes so there shouldn't be a problem there?"

"I am having a few problems trying to get my php includes showing on my page.

Is there any easy/basic code I can insert on a page to test whether it is really working. The package I get from my host does allow php includes so there shouldn't be a problem there?"

To correctly include you should use the following code;

<?php
include('file_i_want_2_include.php');
?>

This will allow you to include this file. The file must be in the same directory as the file you are inserting the include statement in. If not PHP will check your php.ini file for you include directories.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.