Jump to content

PHP include in IIS 6.0


Recommended Posts

Posted

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?

Posted

i get a 500 error it doesn't work...this is so annoying i have tried judst about everything to get this to work i mean is it just not possible to include things from other directories? That just doesn't make sense...

Posted

That could be a parse error then, before your include code put in:



And see if that comes back with any errors.


error_reporting(E_ALL | E_STRICT);

ini_set("display_errors", 1);
Posted

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

Archived

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

  • Recently Browsing   0 members

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