[nycphp-talk] Getting fragment - after the hashmark
Tom Melendez
tom at supertom.com
Sat Jun 25 09:18:02 EDT 2005
I tried this myself, with no luck.
I passed ?foo=bar#tomfrag to a file with a phpinfo call, and the
fragment never appears. Weird.
Tom
http://www.liphp.org
Hans Zaunere wrote:
>This seems like a silly question, and something that would be common.
>
>When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark?
>
>http://us4.php.net/manual/en/function.parse-url.php
>
>Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem.
>
>I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it.
>
>Thanks,
>
>H
>
>
>_______________________________________________
>New York PHP Talk Mailing List
>AMP Technology
>Supporting Apache, MySQL and PHP
>http://lists.nyphp.org/mailman/listinfo/talk
>http://www.nyphp.org
>
>
>
More information about the talk
mailing list