I am doing a small home computing project in PHP and creating such links ...
<a href=\"list_beer.php?order_by=name\">Beer</a>
It seems to be picking the right file. When I turn it on, it seems I need a way.
include_once ("/var/www/common.php");
I am sure this is not possible. Perhaps you could tell me what is the best practice for these things, so that I can create scripts that are not tied to a specific path (or operating system, this applies) and so that the file selected in the first example is known / can i control Perhaps some settings in php.ini or apache?
Thank.
source
share