simplypixie wrote:I am really not sure what you are trying to do - you cannot amend the HTML source of external websites.
Of course you can! There are web proxies/anonymizers all over the internet that already do this. They get the source of an external page (via fopen, file_get_contents, fsockopen, httprequest, domdocument or otherwise), create a local cache, modify it's contents to work on their site, redirect everything back to the same page, and then display the modified page. There's even a few well-known open source projects (such as PHProxy) that do something like this.
My issue is that most of these well-known proxy sites and projects have been blacklisted by OpenDNS on my current network configuration, so I am forced to write my own specification of which OpenDNS is not familiar with. And thus far, I have successfully written up to the point where a user can navigate to another site from within my own site... But in order for navigation to continue any further than a single page, the URLs contained in that page must be modified accordingly.
That being said, I've decided to just use DOMDocument to parse and replace html elements. Thanks anyhow.