Is it possible to urlencode a url that contains a url encoded url?

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-03-12T14:04:23Z Indexed on 2010/03/12 14:07 UTC
Read the original article Hit count: 457

Filed under:
|

I have a website that uses the facebook, twitter, delicious share links. They contain a a url encoded url of the website that you wish to share. The problem is I then want to send the facebook/twitter/delicious url through a php redirect page.

Will it work to encode a url within an encoded url? Will there be side effects?

To simplify my question:

www.website.com/redirect.php?url=" URLENCODED (http://www.facbook.com/sharer.php?t='URLENCODED(title)'&u='URLENCODED(http://www.hotel.com)')

© Stack Overflow or respective owner

Related posts about php

Related posts about urlencode