freshbee Posted February 10, 2009 Share Posted February 10, 2009 Dear Friends, Is there any function to check whether the file is already included ? Thanks in Advance. Link to comment https://forums.phpfreaks.com/topic/144574-check-the-file-is-already-included-by-include/ Share on other sites More sharing options...
genericnumber1 Posted February 10, 2009 Share Posted February 10, 2009 get_included_files() http://us2.php.net/manual/en/function.get-included-files.php Of course, you could just use include_once() and it will include it only if it hasn't already been included. Link to comment https://forums.phpfreaks.com/topic/144574-check-the-file-is-already-included-by-include/#findComment-758693 Share on other sites More sharing options...
freshbee Posted February 10, 2009 Author Share Posted February 10, 2009 Thanks a lot, Actually I had a issue with include_once so I want to use some other function. Thanks, get_included_files function will be useful to me. Link to comment https://forums.phpfreaks.com/topic/144574-check-the-file-is-already-included-by-include/#findComment-758698 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.