how do i grab the url in php?

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









Related Tutorials/Questions & Answers:
how do i grab the url in php?
how i do url encoding process - JSP-Servlet
Advertisements
How to do url rewritting?
How do I upgrade mysql?
What is the difference between PHP4 and PHP5?
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 do the coding for 'leaving a comment' in java
How do I decompile Java class files?
How do I initialize a byte array in Java?
How do I compare strings 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 start machine learning with Python? What should I do if I am a beginner?
How do I generate random number?
How do I do this program? I'm new to Java programming...
ModuleNotFoundError: No module named 'phpy'
How do I start learning MongoDB?
How do I learn Python data science?
How do I start a data mining company?
How do I get a job in AI field?
How do I become an AI engineer?
How can I do data science course?
How do I become a data scientist in India?
How do I prepare for a data scientist interview?
How do I become a data scientist for free?
How do I become a data scientist in 2020?
How do I start learning machine learning?
How do I get a job in AI?
How do I start a deep learning career?
How do I become a machine learning engineer?
How do I start learning data science?
How do I switch to data science career?
How do I start data mining?
How do I start preparing for data science?
How do I start learning AI?
How do I start a data science career?
How do I become a python master?
How do I learn machine learning?
how do i begin a two dimensional array?
How do I choose a data science course?

Ads