require - Is there a faster way to include PHP files? -


i have following code when want include code php file:

$domain = 'www.example.com'; require_once $domain.'/footer.php'); 

i wonder though if slower be, because surely has go through dns find page?

is there quicker way this? maybe should set ip $domain? or maybe there php snippet detect me?

i pay dns hits, there's too...

no thought can include file via autoloader there no other way include files

require , include in php , both fast, if use temples same.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -