[PHP] Strange problem with some includes...
I have this page: http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php If you look on the bottom, it says: Warning: Failed opening 'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/metalages/2002/reviews/rev-evergrey-insearchoftruth.php on line 209 The weird thing is, those paths are CORRECT and DO contain those files! WEIRD! Has anyone had something like this happen or know a cause as to why this would not work even if the paths it is looking for are 100% correct? If you need to know the code in my page I'll be happy to provide, I'm stumped! Deron www.metalages.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Strange problem with some includes...
It looks like you put a full URL into your include ... which would be incorrect. The syntax is ... include(path/relative/to/your/script); jim -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Strange problem with some includes...
Hi Jim! Ok couple of questions then... .. yesterday these includes WERE working. For some reason I went to the site today and they weren't. VERY weird! Since these includes are showing up on multiple pages in different directories, I currently have them being called like this: Code in page: (out of whack due to cut/paste) ?php include(/home/metalages/common.php); $bandname='evergrey'; for ($x=0; $xcount($GLOBALS[folders]); $x++) { if ($x 0) { $num=$x+1; } else { $num=''; } $incline=$GLOBALS[prefix] . $GLOBALS[folders][$x] . $GLOBALS[preband] . $bandname . $num . $GLOBALS[suffix]; include($incline); if ($x(count($GLOBALS[folders])-1)) { echobr\n; } } ? Then I have a common.php outside of web folder with this code: ?php $prefix='http://www.metalages.com/includes/'; $folders=array('relatedinfo/','alsosee/','sounds/','progged/'); $preband='inc-'; $suffix='.php'; ? So, since it DID work yesterday for me, the code I have set up isn't correct? I'm baffled by the fact that it did work for me yesterday, I kinda wish it didn't now! LoL! Jimtronic [EMAIL PROTECTED] wrote in message news:p05101010b8359cecd8f0@[192.168.1.17]... It looks like you put a full URL into your include ... which would be incorrect. The syntax is ... include(path/relative/to/your/script); jim -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Strange problem with some includes...
Yes sir: -rw-rw-r-- Directory : drwxrwsr-x Deron www.metalages.com Martin Towell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... look at read permissions, does the web server have permissions to read those files? -Original Message- From: Deron [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 9:03 AM To: [EMAIL PROTECTED] Subject: [PHP] Strange problem with some includes... I have this page: http://www.metalages.com/2002/reviews/rev-evergrey-insearchoftruth.php If you look on the bottom, it says: Warning: Failed opening 'http://www.metalages.com/includes/relatedinfo/inc-evergrey.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/www/metalages/2002/reviews/rev-evergrey-insearchoftruth.php on line 209 The weird thing is, those paths are CORRECT and DO contain those files! WEIRD! Has anyone had something like this happen or know a cause as to why this would not work even if the paths it is looking for are 100% correct? If you need to know the code in my page I'll be happy to provide, I'm stumped! Deron www.metalages.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]