PHP Classes
elePHPant
Icontem

Data URI: Generate data URL to embed binaries in links

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-02-11 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 451 All time: 5,668 This week: 1,239Up
Version License PHP version Categories  
class-data-uri 1.0GNU General Publi...5.3HTML, PHP 5
Description Author  

This class can generate data URL to embed binaries in links.

It can generate a URL that includes the data of a given file.

The class can set the URL character set and MIME type of the data to given values, guess from the file name extension based on a list of known extensions, or retrieve it from a given magic MIME type file.

The generated URL can be used in a link or any other resource of an HTML page that requires an URL.

Picture of Uku-Kaarel Jo~esaar
Name: Uku-Kaarel Jo~esaar <contact>
Classes: 8 packages by
Country: Estonia Estonia
Age: 32
All time rank: 4231 in Estonia Estonia
Week rank: 153 Up1 in Estonia Estonia Equal
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files  
File Role Description
Plain text file class.data_uri.php Class class file
Accessible without login HTML file html5slideshow-template.htm Example slideshow twmplate
Accessible without login Plain text file html5slideshow.php Example Command line app witch generates selfcontainig html slideshow
Accessible without login Plain text file magic Data Small magic file
Accessible without login Plain text file class.data_uri.example.php Example Example usage of class
Accessible without login Image file elephpant.jpg Photo Elephant helps test the class

 Version Control Unique User Downloads Download Rankings  
 0%Total:451All time:5,668
 This week:0This week:1,239Up