Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

how do i grab the url in php?

Ads

 
 

Share on Google+Share on Google+

Nafees Shams
how do i grab the url in php?
0 Answer(s)      5 years and 3 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!

Ads
View Answers
Ads









Related Tutorials/Questions & Answers:
Advertisements