Męczę się z tym dłuższą chwilę, przekopałem manual i nie widzę rozwiązania.
Jak zczytać kotwicę (anchor) z aktualnego url'a
np: http://www.strona.pl?action=new#dodaj
Chodzi o tę część adresu url 'dodaj'.
Czy ktoś może zna rozwiązanie tego problemu?
<? # Author: Eric O # Date: July 13, 2006 # Go Zizou!!)
# Creating Automatic Self-Redirect To Secure Version # of Website as Seen on Paypal and other secure sites # Changes HTTP to HTTPS #gets the URI of the script $url = $_SERVER['SCRIPT_URI']; #chops URI into bits BORK BORK BORK #HOST and PATH portions of your final destination $destination = $chopped[host].$chopped[path]; #if you are not HTTPS, then do something about it if($chopped[scheme] != "https"){ #forwards to HTTP version of URI with secure certificate } ?>
<?php $url = 'http://uzytkownik:haslo@serwer/sciezka?arg=wartosc#kotwica'; ?>
<?php ( [scheme] => http [host] => serwerer [user] => uzytkownik [pass] => haslo [path] => /sciezka [query] => arg=wartosc [fragment] => kotwica ) ?>