I am building a site that checks directories to see if files are present, if so it will include them into the page. What i am trying to do is to CHECK first to see if a particular file (NEXT_PAGE.php) is in that directory, and if it is, include it at the bottom of the page (which i have already done), But then again if it isn't present, don't include it and don't return errors telling me it isn't present either.
Kr|Z.... Mate, thanks for the help, I am running Apache2 soe it didn't work, but i was trolling round the PHP.net site and found this: (Just thought i would let everyone know, coz i know i spent alot of time trying to figure out why your code didn't work, i had already tried it b4 you posted and it didn't work. The one below does?? Go figure??)
PHP Code:
if (is_file('./NEXT_PAGE.php')) {
include './NEXT_PAGE.php';
}
Bookmarks