Jump to content

PHP include in IIS 6.0


Recommended Posts

Ok so i have IP gallery installed and im using the lastx_images mod that allows you to put last 5 images on any php page but my problem is you have to put a php file with the script in your forums root directory then include it. So the php sctipt is in /forums the script is called lastx_images.php, in the readme it says put include(/forums/lastx_images.php) in any php page to bring up the images but it only works if your in the forums directory. Im trying to get it to work in the root directory on my portal page. I'm using IIS 6 instead of apache so i think the include feature works kinda diffrent can anyone help?

Link to comment
Share on other sites

this is what i get with the error command before the include...


Warning: require(./ips_kernel/class_db_mysql.php) [function.require]: failed to open stream: No such file or directory in C:\apache\htdocs\Site2\forums\lastX_images.php on line 13

Fatal error: require() [function.require]: Failed opening required './ips_kernel/class_db_mysql.php' (include_path='.;C:\php5\pear') in C:\apache\htdocs\Site2\forums\lastX_images.php on line 13

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...