PHP Classes

File: compress.php

Recommend this page to a friend!
  Classes of Subin Siby   PHP HTML Compressor   compress.php   Download  
File: compress.php
Role: Example script
Content type: text/plain
Description: The page where AJAX request to compress goes to
Class: PHP HTML Compressor
Compress Web pages HTML, CSS and JavaScript
Author: By
Last change: Update of compress.php
Date: 4 months ago
Size: 671 bytes
 

Contents

Class file image Download
<?include "load.php";?>
<!DOCTYPE html>
<html>
 <head>
  <title>Site Compressor from subinsb.com</title>
  <style>*{font-family:Ubuntu;}.status{font-size:13px;margin:2px;}</style>
 </head>
 <body>
  <?
 
if(isset($_POST['siteDetails'])){
  
$_POST['options'] = isset($_POST['options']) ? $_POST['options']:array();
  
$starttime = microtime(true);
  
$SC->makeOptions($_POST['siteDetails'], $_POST['options']);
  
$SC->checkOptions();
  
$SC->startCompress();
  
$endtime = microtime(true);
  
$duration = round($endtime - $starttime, 4);
  
$SC->status("Site Compression Finished In $duration seconds");
  }else{
  
$SC->ser("Not enough data");
  }
 
?>
</body>
</html>