Jump to content

Read the URL from the address bar


woocha

Recommended Posts

Is there anyway to read  the address bar for instance if the address bar shows this in the brower:

http://search.ebay.com/ws/search/SaleSearch?sofocus=bs&satitle=chicken+cheese&sacat=-1%26catref%3DC5&fbd=1&dfsp=1&_trksid=m37&from=R6&nojspr=y&pfid=0&fswc=1&few=&saprclo=&saprchi=&fss=0&saslop=1&sasl=&fls=4%26floc%3D1&sargn=-1%26saslc%3D0&salic=1&saatc=1&sadis=200&fpos=18951&fsct=&sacur=0&sacqyop=ge&sacqy=&sabfmts=0&saobfmts=exsif&ftrt=1&ftrv=1&sabdlo=&sabdhi=&saaff=afdefault&afcj=&afmp=&fsop=1%26fsoo%3D1&fcl=3&frpp=50

essentially, I would like to have the address turned into a variable.

 

Link to comment
Share on other sites

No...That wouldn't be my server...that's Ebay, but the point was made just the same.  There are a lot of extra things in that URL:

sofocus=bs

&satitle=chicken

this URL just made the point for me.....

 

Thank you for the response though.  I am not familiar with $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI'], but I will go to php.net and check them out.

 

Thank you

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.