Possible Duplicate:
Best methods to parse HTML with PHP
I wish to get the code of a website as you can with "view source" but dynamically. I found a site which does exactly what i want - http://www.iwebtool.com but I wish to implement it by myself. any ideas? thanks!