Page 1 of 1

PHP5 includes w/IIS 5.1

Posted: Sun Oct 05, 2008 3:50 am
by emetib
Inetpub is giving me troubles with include.

// $_SERVER['DOCUMENT_ROOT'] is set - you can use it as usual...

Using include($_SERVER['DOCUMENT_ROOT'].'/dir/folder/file.php');

I get a lengthy error [function.include]: failed to open stream: ... and
failed opening ... for inclusion (include_path='.;c:\php5\pear') in C:\Inetpub\wwwroot ....

ALSO

Using the actual root path times out after 30 seconds.

I have googled .;c:\php5\pear and mainly found many sites displaying this same type error yet have not found a resolution.

If you are using PHP5 + IIS and can include/require files please let me know if you have a resolution for this.

Re: PHP5 includes w/IIS 5.1

Posted: Sun Oct 05, 2008 12:15 pm
by phppucci
What is the reason you are using IIS instead of Apache?

Re: PHP5 includes w/IIS 5.1

Posted: Mon Oct 06, 2008 6:42 pm
by emetib
My hosting is IIS.

My aim here is to get IIS includes to work and learn something new.