I have a file called index.php
which includes a class from another file (class/event.class.php
) with the following code:
<?php
require_once('class/event.class.php');
$evt = new Event;
$evt->doSomething();
?>
The file event.class.php
should be able to read the URL used in the request (not $_SERVER["SCRIPT_FILENAME")
to the file.
ie: http://localhost:8888/class/event.class.php
How do I do that?