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
Post a Comment