PDA

View Full Version : includes not workin on localhost (IIS)


homerUK
12-27-2002, 09:49 AM
hi,

I have just installed IIS on WinXP and PHP.... for some reason, my include files are not showing when I load the page... I have looked through the PHP.ini file, but couldnt find anything to do with the includes... is there something I am missing?!

Thanks!!

Kiwi
12-27-2002, 11:11 AM
What error is it returning?

homerUK
12-27-2002, 12:02 PM
none! thats the thing!! it just doesnt load them! They work on my website, just not on the local server!!

Nightfire
12-27-2002, 12:08 PM
Just have a go at this...

include("anoneexistantfile.php");


Does that throw any error up?

mordred
12-27-2002, 02:44 PM
What means "include files not showing"? Did you forget a print or echo statement somewhere in your included file? Also, look at the include_path setting. Maybe you're including something different than you believe.

homerUK
12-27-2002, 03:24 PM
there is not a problem with the code... it works perfectly on my website hosted....

..it just doesnt work on my local server.

When I type in the page... eg:

http://localhost/index.php and view the source of it..... the PHP is not being interpretted... so you can see it... eg:

<?php

$page = "home";
include("header.php");

?>

when that should be getting the header file........

I have installed PHP cos it opens the index.php file fine... but doesnt get the includes!!!!!!

mordred
12-27-2002, 04:49 PM
What's in header.php?