Hey everyone,

**
Have you tried 

$_SERVER['DOCUMENT_ROOT'].'/';
**
Matt,
DAMN! THATS what I was looking for.
No, didnt try that, took the long route home instead,
but atleast brushed up on php's "explode" function.


**
$baseDir = $_SERVER["DOCUMENT_ROOT"];
$templatesDir = $baseDir . "/templates/";

include($templatesDir . "header.php");
include($templatesDir . "body.php");
include($templatesDir . "footer.php");
**
Ed, perfect.


**
Have you tried;

Include "../templates/header.php";
**
Warren, yep, tried that and also
"../../templates/header.php"; and more, it was going
to the root ("/home/sites/" etc)

Thanks, everyone.

Cheers,
-Mag




=====
------
- The faulty interface lies between the chair and the keyboard.
- Creativity is great, but plagiarism is faster!
- Smile, everyone loves a moron. :-)


                
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to