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 This week: 1All time: 6,125 This week: 560Up
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: 41
All time rank: 3811 in Estonia Estonia
Week rank: 416 Down3 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  
 0%
Total:455
This week:1
All time:6,125
This week:560Up
 User Ratings  
 
 All time
Utility:41%StarStarStar
Consistency:41%StarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:30%StarStar
Rank:4239