mattfox27 Posted June 29, 2009 Share Posted June 29, 2009 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 More sharing options...
stoo2000 Posted June 29, 2009 Share Posted June 29, 2009 That would include from your root path, so you would need to put the entire path in. i.einclude("c:Inetpubwwwrootforumslastx_images.php"); Link to comment Share on other sites More sharing options...
mattfox27 Posted June 30, 2009 Author Share Posted June 30, 2009 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... Link to comment Share on other sites More sharing options...
stoo2000 Posted June 30, 2009 Share Posted June 30, 2009 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); Link to comment Share on other sites More sharing options...
mattfox27 Posted July 1, 2009 Author Share Posted July 1, 2009 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 More sharing options...
stoo2000 Posted July 1, 2009 Share Posted July 1, 2009 Well from that message, your file does not exist in C:\apache\htdocs\Site2\forums\ Link to comment Share on other sites More sharing options...
mattfox27 Posted July 2, 2009 Author Share Posted July 2, 2009 what a pain...the directory exists/file exists Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.