societyofrobots Posted May 30, 2009 Share Posted May 30, 2009 For some reason, include("my_file.php") takes ~2 seconds. If I include the exact same code that's in that include file outside of the include() it works fast, no problem. I've tried turning on php output_buffering=on and using file_exists() but no luck. I even tried: include($_SERVER['DOCUMENT_ROOT'] . '/my_file.php'); but the delay was the same. Ideas? I'm using PHP Version 4.3.9. -------- Similar question externally posted here (cross reference): https://sourceforge.net/forum/message.php?msg_id=7418412 http://www.societyofrobots.com/robotforum/index.php?topic=8015.0 Link to comment https://forums.phpfreaks.com/topic/160298-include-really-slow-by-~2-seconds/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.