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

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

asp.net mvc - Cannot display error message on Editor or EditorFor -

php - Using str_replace to translate a MySQL Table in html -