Hi,
I am trying to create a PHP script which works as follows.
User calls my script with no parameters. The script opens the homepage of a thirdparty site, reads it into a variable, and does various parsing on it. Basically, the parsing involves replacing all hyperlinks with calls to my script with the original url as a parameter. For example,
a href of "www.3rdparty.com/page2.html" becomes "http://www.myserver.com/myscript.php?url=www.3rdparty.com/page2.html".
So, all links on the thirdparty site are now routed through my script.
This works fine for the basic stuff. But as the 3rd party site gets more complex, I have to start rewriting javascipt etc on the fly as well.
Now it works consistently but enormously slowly. I would just like to know if anyone has tried anything similar and found any good code snippets, libraries, techniques, etc...
By the way, I do have the permission and approvale of the third party site, he just doesn't want to change his site to suit me 🙂
Thanks,
Chang