Nov 27th, 2008 02:36
healthy man, dman, Jonathan Sharp, Stephane Cote, http://www.ttnr.org
It depends on how your retrieving a web page. PHP is a server side
scripting language which means PHP runs on a web server to build web
What you're talking about is having PHP be a parser before a web page
get's viewed in your browser. It's possible if you run a HTTP server
with PHP on your local box.
If you had a PHP script that printed a text box on the first screen
where you entered a URL and had the PHP script then go and fetch that
wanted to avoid and did a eregi_replace() on it, then it is possible to
what you're thinking of. There are alot of other factors you need to
take into consideration such as making sure you have absolute urls to
src attributes etc, replacing HREF's so they point back to the PHP
script that "browses" for you...
If you want it to be self contained and local, you can load a HTTP
server and PHP on your local machine and use that to browse the net.