[UPHPU] php equivalent of Request.ServerVariables
David Boucha
boucha at gmail.com
Fri Sep 9 11:47:45 MDT 2005
I believe you can get the url from this variable:
$_SERVER["SCRIPT_URI"]
David
On 9/9/05, Ashley Oviatt <ashovi at qwest.net> wrote:
> Is there a way to get the current url using php or javascript? Like
> Request.ServerVariables("URL") in asp?
>
> What I want to do is take a url like this:
>
> http://www.ashley.oviatt.whatever.com/
>
> and get the ashley and oviatt out of it to put on the current page. I've
> seen code do this, but can't seem to find it anywhere.
>
> Thanks,
>
> Ash
>
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
More information about the UPHPU
mailing list