•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 397,807 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,511 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 890 | Replies: 1
![]() |
•
•
Join Date: Nov 2006
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
"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?"
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?"
•
•
Join Date: Nov 2006
Location: South Wales
Posts: 159
Reputation:
Rep Power: 2
Solved Threads: 11
•
•
•
•
"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 Syntax (Toggle Plain Text)
<?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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
Similar Threads
- Basic PHP Includes (PHP)
- PHP Includes??? (PHP)
- Setting up PHP (PHP)
- How to test PHP code in offline in Linux + Apache 2 (PHP)
- PHP Beginner Here (PHP)
- Multiple PHP INCLUDES (PHP)
Other Threads in the PHP Forum
- Previous Thread: Image functions in php
- Next Thread: Password protection for Website


Linear Mode