PDA

View Full Version : PHP Server Side Include Not Working


EmilyPEarwig
02-28-2012, 07:36 PM
It seems so simple. This page

http://50.62.128.53/about/

includes the following "include"

<ul id="nav"><?php include("includes/nav.php"); ?></ul>

I've published out the nav.php file, but the html isn't pulling into the aforementioned page.

HALP!?!? May thanks and kind returns. ;)

edbr
02-29-2012, 01:40 AM
i think your path is wrong http://50.62.128.53/about/includes/nav.php is 4o4 so try
<ul id="nav"><?php include("../includes/nav.php"); ?></ul>

EmilyPEarwig
02-29-2012, 03:43 PM
Bali-

Thanks for your kind reply. That was a mistake with the previous path. I still, however, cannot get it working.

<div id="nav">
<ul id="nav"><?php include("/includes/menu.php"); ?></ul>
</div>

The page again is at: http://50.62.128.53/about/

Thanks again!

EmilyPEarwig
02-29-2012, 03:45 PM
Sorry "edbr" I guess your name isn't "Bali Villas." :-)

EmilyPEarwig
02-29-2012, 04:00 PM
I should mention this site is on a Windows I5 server...

edbr
03-01-2012, 12:07 AM
ah is php installed on it? also i think it should be
<?php include("../includes/menu.php"); ?>