If i request site/page.php#hash the $_SERVER[\'REQUEST_URI\'] is only /page.php.
site/page.php#hash
$_SERVER[\'REQUEST_URI\']
/page.php
Is there a way to know in php (without later
Why don't you use php's $_GET method (instead of using hash(#))?
$_GET
if(isset($_GET['hash'])){/*do something*/}
The # is only on the client side and php cannot access it.