SHARE
TWEET

Untitled

a guest Sep 9th, 2011 312 Never
  1. <?php
  2. function base64_encode_image ($filename=string,$filetype=string) {
  3.     if ($filename) {
  4.         $imgbinary = fread(fopen($filename, "r"), filesize($filename));
  5.         return base64_encode($imgbinary);
  6.     }
  7. }
  8. ?>
RAW Paste Data
Top