Originally posted by toddg
Okay. I didn't post full code here before. but here it is now.
here is the error:
Fatal error: Failed opening required '/family/family.html' (include_path='.:/usr/local/lib/php')
I am using:
<?php require("/family/family.html"); ?>
Now with my images / takes you back up to root level...does it not do this with PHP? It seems as though I am getting some weird root path rather than my normal root path.
What do you guys think?
Thanks
Todd
humm try this
<?php require("../../family.php"); ?>
adding the ../ will take you down one if you need to add another one ../../
most likly looks like there script isnt there...
lets do this...
if file.php is in directory
/var/ww/apache/html/htdocs/getcode/family/file.php
htdocs = the root for web
so you would do this
<?php require("../../family.html"); ?>
else if the file is higher in the directory like this
/var/ww/apache/html/htdocs/getcode/mom/joe/family/file.php
then do this
<?php require("../../../../file.php"); ?>