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 -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

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