Location: PHPKode > scripts > Hippo Picture Base64 Encode > hippo-picture-base64-encode/example.php
<?php
  include('hippo_base64_pic.php');

  $fuobj = new hippo_base64_pic();
  $fuobj->upload_form = 'fupload';
  $fuobj->upload_dir = "data/";
  $fuobj->write_filename ='data/hippo_base64_image.php';
  $fuobj->chunk_per_char = 10;
  
  if(!$fuobj->upload())
  {
    print $fuobj->show_error();
    exit(0);
  }
  
  echo "<a href=".$fuobj->write_filename.">".$fuobj->write_filename."</a><hr>";
  echo "<a href=index.php>Re-Upload Picture</a>";
?>
Return current item: Hippo Picture Base64 Encode