Ok, I managed to get it working using the ../../ technique - thanks for that. However, I have stumbled upon another problem.
I want to include a header, that header has the session_start(); in it. As you well know, session_start(); has to be called first so at the top of the index.php script, I have:
Code: Select all
<?PHP include('../../test/header.php'); ?>
However, I am using this as a test directory for the new layout which I am going to transfer in a couple of weeks. As it is, it isnt very directory friendly, when I transfer the files, I am going to have to change every file so that it looks in the right directory for the header and footer files. Is there anyway that I can get the path leading up to, but not including the file name, so for instance:
/home/my_space/public_html/test/
I looked through the $_SERVER variables, but it doesnt appear to be much use. Is there anyway I can get it, or anyway I can make the script in Apache, and then use it that way?
Thanks,
Someberry.