PDA

View Full Version : Path for Include file



dallr
09-26-2008, 06:12 AM
Hello all.
I would like to know how to reference a file in another folder as an include file.

My webpage is located at: htdocs/MyWebsite/xhtml/myPage.php

I want to have an include file in the above page what references the following file: htdocs/MyWebsite/PHP/thisPage.php

What should my include file path be
<?php include "............."; >?

dallr

Nile
09-26-2008, 11:33 AM
<?php
include('../PHP/thisPage.php');
?>

That should work. :)

dallr
09-26-2008, 01:34 PM
Thanks much.!!

Dallr