mattfox27 Posted June 29, 2009 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?
stoo2000 Posted June 29, 2009 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");
mattfox27 Posted June 30, 2009 Author 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...
stoo2000 Posted June 30, 2009 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);
mattfox27 Posted July 1, 2009 Author 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
stoo2000 Posted July 1, 2009 Posted July 1, 2009 Well from that message, your file does not exist in C:\apache\htdocs\Site2\forums\
mattfox27 Posted July 2, 2009 Author Posted July 2, 2009 what a pain...the directory exists/file exists
Recommended Posts
Archived
This topic is now archived and is closed to further replies.