tags:

views:

12

answers:

0

Hi Everyone,

I've uploaded a website onto my remote server to a sub folder and I want to prepend a file so I can make that folder the root.

http://tiny.cc/e2tr1

Its just a basic php site with some includes.

in the .htaccess file I have:

php_value include_path ".:/home/thecarbonlist.com/htdocs/beta/includes"
php_value auto_prepend_file "/home/thecarbonlist.com/htdocs/beta/includes/auto_prepend.php

Whats in the auto_prepend.php file is:

$webroot = $_SERVER['DOCUMENT_ROOT'];

But for some reason when I'm using: $webroot in my urls it is not being printed out can anyone help?