PHF: Portable Hypertext Format

Nov 2, 2005

Have 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.


Comments closed

Recent posts

  1. Customize Clipboard Content on Copy: Caveats Dec 2023
  2. Orcinus Site Search now available on Github Apr 2023
  3. Looking for Orca Search 3.0 Beta Testers! Apr 2023
  4. Simple Wheel / Tire Size Calculator Feb 2023
  5. Dr. Presto - Now with MUSIC! Jan 2023
  6. Archive