Login   Register  
PHP Classes
elePHPant
Icontem

File: make_example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Wudi  >  Mht File Maker  >  make_example.php  >  Download  
File: make_example.php
Role: Auxiliary script
Content type: text/plain
Description: Makes two examples
Class: Mht File Maker
Build MHT MIME archives from lists of files
Author: By
Last change:
Date: 2004-07-24 07:14
Size: 6,107 bytes
 

Contents

Class file image Download
<?php
$files 
= array();
$files['webpages/image.jpg'] = 'eJylj2dUkwcUhr8vX0jYGiLLBqHIXsoSKNLIERMIUk0QNEpUthANQioYZgkiSKCgDEHKHhZQSwGZIoqACag0IEgioGxkz6gM09gfPf73eX/d8977nvcKB4TvgZ0EnAMOAEEQsBcJEL4FDn+dvouvId+bAQqfAChxQA1Qg0B1AIYCIRQobAOUAQAS6RuQ4hKAGEJkGe0EQAgGh5Biomf+QwyCI2BIUFxCcZe8AiCprKFth7f39ol/jkKL9hVBAAK/TQIguJiEyMCgABj0tcL/BlwMBiGQoBxayAekRUcwFIQCsEDPh4LSuPiM9dC+6k1snSqGhiTSkGcjGeITmKLCn6eer2K9nzJqVyamu9Op5vp0RCO/gk8NM/bpS50KzPIukVTq9fEiPu1CSiUzMjUGNVI71klNobNF0vKE8hNF26X3jNtvLXAj/L/UCwHGvMnqokbNx2xX6xHKYnbOdd6konaBllx8l3kSBq7Vb5t5OMcsWSbfL/SEhsBWnsg0nNldQSCgyM9mbhLuHrvQD1vPwdq+2whWCZ7voKskdt2LtGSvNJxMbFYfZzCLgWHTQ+wxo58EBpzyvJ7NqYtq+7kre9640c0udlvj2xjDT7Y86vjNtBtMRza9uEf73IS8FVcGbb9Or4Tk8j+AVwVnlp32P6Cr3QjDalupeoYe9aryVAdRCTPzXsVyDIcCInsAdaAN6intxoT/9mQUUY3fn24wF60um13lw9PzJ4boa936dczlqnsCtyzyzh6VJv1Z16UAxNhWYN22dd028vP4u+zVyLpNX7DLZvGHCZWDsQMUrQWEzyWoiZLlx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fYLnCBjuzLhOhsS4j/zgUYYhAuGhINDuRgZFsgz14Iv93XH9IlWUsuzAE6KnNH4wSuaJt801Ked';
$files['example_simple.php'] = 'eJx1UEFOwzAQvEfKH6wKac0B8wCSlCLIrRJSDxwrJx5q08Q2tqOU3xMLDpXaXna1szOj3anWXvuyCPieTMDe2R6MRp3EYDqxrOipLMribqtTawZs5RGB1cxiZucQv7+kPTQ7pDa4kdPHpAyr5qX64J5/pHZOKDSUVZea3dR9oU+c3k5y9APolvmLjHg1gdOMzssD4g3D1oSY3hcCJ2MVTkKn8brpZkpuo1RG4vWfcssjJ/xdJ5aw/s3Qa8eokkwHfNarM8KKJRkOSPW+G6Q9Nq2xJmooUT3KJke8bsriF1ceffw=';

mkdir('webpages'0777);
foreach (
$files as $filename => $filecont) {
    
$fp fopen($filename'w');
    
fwrite($fpgzuncompress(base64_decode($filecont)));
    
fclose($fp);
}

echo 
"Finished.<br>\r\n";
echo 
"&nbsp;&nbsp;<a href=\"example_simple.php\" target=_blank>example_simple.php</a><br>\r\n";
echo 
"&nbsp;&nbsp;<a href=\"example_advanced.php\" target=_blank>example_advanced.php</a>\r\n";
?>