how do i grab the url in php?

Ads
 

how do i grab the url 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

Ads









Related Tutorials/Questions & Answers:
how do i grab the url in php?
How to do url rewritting?
Advertisements
How do I upgrade mysql?
How can I do it? .click();
How do I compile the registration form?
how do i solve this problem?
how do i solve this question?
How do I decompile Java class files?
How do I compare strings in Java?
How do I initialize a byte array in Java?
How do i do the coding for 'leaving a comment' in java
How do I download urllib3 for python 2.7
How do I get started with Bootstrap
How do I get started with Bootstrap
How do I learn Spring Framework?
How do I learn Spring Framework?
How do I learn Spring Framework?
How do I learn Spring Framework?
How do I learn Spring Framework?
How do I study big data?
How do I generate random number?
How do I start learning MongoDB?
how do i begin a two dimensional array?
PureStack question---i dont know how to do this
PureStack question---i dont know how to do this
How do I import a CSV file in R?
How do I learn data analysis with Python?
how do i write a java program for this??
How do I do this program? I'm new to Java programming...
How do I start learning Docker
how I do select from select in hql

Ads