PHF: Portable Hypertext Format
Nov 2, 2005Have you ever wanted to save a webpage for later printing, or for emailing, or burning to an offline media? Saving pages with a browser requires that you also download a folder full of extras: images, stylesheets and javascripts, which really hurt portability.
What if you could save a webpage in such a format that all external files were encoded and included in a single page? You could then easily email this page, or save it for printing at a later date without having to worry about any extra files.
I've been working on a little PHP script to do just this, and I've posted a beta version of the script here. Try saving your favorite pages in a single file format, easy to email or transfer while still looking completely like the original.
I call these generated pages PHFs for Portable Hypertext Format, since they have the same sort of portability as PDFs (Portable Document Format)
This mechanism uses the data protocol to embed files into the HTML page. Newer browsers like Opera and Firefox can use these URIs, but unfortunately, MSIE cannot. You'll just get broken images and stylesheets if you try to load a generated PHF file in Internet Explorer.
Please let me know if you find any bugs, using the email address provided at the bottom of the page above. Eventually I hope to release the code to the public for other people to use on their servers.
⇐ Orca Search 2.0 Final now available | Orca Search 2.0b released ⇒ |