Replacing all urls?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
simplypixie
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire
Contact:

Re: Replacing all urls?

Post by simplypixie » Sun Dec 09, 2012 5:05 am

Unless I am missing something here, I am not sure why you are trying to complicate matters. In your code you just need

Code: Select all

<a href="http://mysite.com/?url=<?php echo $url; ?>">Link Text</a>

User avatar
simplypixie
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire
Contact:

Re: Replacing all urls?

Post by simplypixie » Mon Dec 10, 2012 6:23 am

I am really not sure what you are trying to do - you cannot amend the HTML source of external websites.

User avatar
simplypixie
php-forum Active User
php-forum Active User
Posts: 300
Joined: Sun Dec 11, 2011 12:51 am
Location: Shrewsbury, Shropshire
Contact:

Re: Replacing all urls?

Post by simplypixie » Mon Dec 10, 2012 8:36 am

So basically you are saying you want to hack someone else's website and alter their source code - that is why
most of these well-known proxy sites and projects have been blacklisted by OpenDNS

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests