Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Answers Viewqa PHP how do i grab the url in php?

View Questions and Answers by Category


Have Programming Question? Ask it here!

Nafees Shams
how do i grab the url in php?
0 Answer(s)      2 years and 9 months ago
Posted in : PHP

I want to grab the 'entire' url, including any special characters like & and #, from a site. I then want to replace the characters with something a browser can read for example:

& = %26
# = %23

I tried URL encoding but it only grabs the part until the #, which it treats as an anchor.

Thanks for your help!

View Answers

Related Tutorials/Questions & Answers: