RPS SupportClient Login

Request a Quote

Name
E-mail
Phone

Domain Registration

www..
 

PHP Compression

What this wonderful script does, is compress your html and web pages every time it's loaded onto a browser. If it's not already obvious, you must be certain that you use PHP for your web pages and that your server supports it at least.

Pre-flight Checklist

You need to check your server to be sure that the version of PHP installed on your sever is extended with the zlib module.

To do this, simply open Notepad and type the following:

<?php
phpinfo();
?>

Save the file as phpinfo.php and then upload it to your website. Visit the page you uploaded, and continue below:

Now we need to search for a specific module named zlib. Do this by pressing Control+F and search for zlib on the page. It will look similar to the image below:

zlib Compression

If you see something similar to the above box, you are ready to implement it into your site. If you do not see the above box, or one similar to it, please call your web hosting company and ask them if they can install it for you. (You can point them to this page so they know what you are trying to do)

Implementation

It is just as easy to implement it onto your website! Simply add the following code to the top of every PHP page you would like compressed, YES, it is that easy!

<?php
ob_start( 'ob_gzhandler' );
?>
<html>
<head>
<title>My Compressed Page</title>
</head>
<body>
<p>This web page is now COMPRESSED!</p>
</body>
</html>

Hosting Center

  User:
  Pass:
Remember Me

Contact RPS

We offer many contact options:


Phone: (888) 777-1815
Request Callback
Free Consultation
RPS Online Center
Customer Support

RPS Locations


New York
622 Rushmore Avenue
Suite 200
Mamaroneck, NY 10543

Arizona
1753 E Broadway Rd
Suite 101-255
Tempe, AZ 85282

Home | About RPS | Contact Us | Portfolio | Support | Resources | Club RPS | Terms & Conditions | Site Map

2010 © Copyright | All Rights Reserved. Server load time: 0.015513 seconds


accepted payments Secure Web Design New York Web Design
w3c htmlw3c_css