PHP5 includes w/IIS 5.1

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
emetib
Forum Newbie
Posts: 4
Joined: Tue Jul 15, 2008 9:58 pm

PHP5 includes w/IIS 5.1

Post 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.
phppucci
Forum Newbie
Posts: 17
Joined: Fri Oct 03, 2008 2:27 pm

Re: PHP5 includes w/IIS 5.1

Post by phppucci »

What is the reason you are using IIS instead of Apache?
emetib
Forum Newbie
Posts: 4
Joined: Tue Jul 15, 2008 9:58 pm

Re: PHP5 includes w/IIS 5.1

Post by emetib »

My hosting is IIS.

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