Jump to content

include() really slow (by ~2 seconds)


Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.