IT experts development community http://itezer.com en noreply@itezer.com (http://itezer.com) noreply@itezer.com (http://itezer.com) http://itezer.com IT experts development community <![CDATA[comment to: PHP Speedy - automatically speed up the download time]]> http://itezer.com/blog/php/27-PHP-Speedy-automatically-speed-up-the-download-time.html#comment57 http://itezer.com/blog/php/27-PHP-Speedy-automatically-speed-up-the-download-time.html#comment57 taboo
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();]]>
20 March 2009 11:35 comments
<![CDATA[comment to: PHP Speedy - automatically speed up the download time]]> http://itezer.com/blog/php/27-PHP-Speedy-automatically-speed-up-the-download-time.html#comment65 http://itezer.com/blog/php/27-PHP-Speedy-automatically-speed-up-the-download-time.html#comment65 fox
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();]]>
29 March 2009 08:40 comments