We Recommend

Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems
Wicked Cool PHP contains a wide variety of scripts to process credit cards, check the validity of email addresses, template HTML, and serve dynamic images and text.


Posted By

dmarten on 03/22/07


Tagged

php include path relative absolute inc


Versions (?)


Who likes this?

5 people have marked this snippet as a favorite

luman
basicmagic
vali29
skywalker
JimiJay


php absolute path include


Published in: PHP 


  1. <?php include ($_SERVER['DOCUMENT_ROOT'] . '/inc/file.php');?>

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: webmasteroy on August 7, 2007

All it does on my server is echo out the contents of the file to the web browser.

You need to login to post a comment.