<?php $uri = 'http://' . $_SERVER['HTTP_HOST']; $path = '/dev/source/class.ControlEntry.php'; $string = $uri . $path; header('Location: '. $string );
Am I actually hitting my server and then redirecting back to the client which then calls the new location. Is this 2 round trips to access my site located at the uri and path above?
Per php.net header() sends a raw http header.
Xampp uses code similar to this to specify the directory the source code is in.
However, I'm thinking about just using an include, as was determined best practice in this related SO post.