PHP Classes

Data URI: Generate data URL to embed binaries in links

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 30%Total: 455 All time: 6,128 This week: 455Up
Version License PHP version Categories
class-data-uri 1.0GNU General Publi...5.3HTML, PHP 5


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: 41
All time rank: 3811 in Estonia Estonia
Week rank: 307 Up2 in Estonia Estonia Down
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  
This week:0
All time:6,128
This week:455Up
 User Ratings  
 All time