IT EXPERT COMMUNITY
 

 

PHP Speedy - automatically speed up the download time




PHP Speedy is a script that you can install on your web server to automatically speed up the download time of your web pages. Here’s an example, from a test page:

Before PHP Speedy — 14 requests that took 4.44 seconds


After PHP Speedy — 4 requests that took 1.1 seconds


PHP Speedy automatically joined together all the appropriate files and compressed them, greatly reducing the load time of the page. Let’s see what Yahoo’s Y-Slow makes of this:
Before PHP Speedy — Grade F (44)


After PHP Speedy — Grade A (96)


You can have a look at the test page for yourself:
Test page without compression
Test page with compression

Download

You can download PHP Speedy from this link: PHP Speedy 0.5.2 download

Installation — via auto-install

In order to install PHP Speedy you should:
1. Download and unzip the PHP Speedy package into its own directory
2. Point your browser to the PHP Speedy directory
3. Follow the installation instructions

Installation — manual

If you prefer to manually install things:

1. Download and unzip the PHP Speedy package into its own directory
2. Delete the index.php and install.php files
3. Open config.php
4. Fill in the blanks for the variables (apart from username and password). You might
enter something like this:
$compress_options['document_root'] = “/home/my_site/public_html”;
$compress_options['javascript_cachedir'] = “/home/my_site/public_html/aciddrop/php_speedy/”;
$compress_options['css_cachedir'] = “/home/my_site/public_html/aciddrop/php_speedy/”;
$compress_options['minify']['javascript'] = “1?;
etc
5. Make sure the directories you specified for the cachedirs are writable
6. For the GZIP, minify and expires options 1 is on and 0 is off
7. Open the php file that controls the output of HTML that you will be compressing. This might be something like index.php. Include the php_speedy.php file at the very top, i.e like this:
require(’/home/my_site/public_html/aciddrop/php_speedy/php_speedy.php’);
8. Add this code at the very bottom $compressor->finish();

Comments (2)

RSS collapse / expand
+
0
I was try use it but got invalid css and js
avatar

taboo

  • 20 March 2009 11:35
+
0
Looks like it takes much time for optimise but then it's downloading faster
avatar

fox

  • 29 March 2009 08:40

Only logged-in users can leave comments Login please, or you can register