We all know that xHTML/CSS and JS minification and compression benefits large traffic sites.
Take a look at the following code:
include("template.funcs.php");
include("country-redirect.php");
if(($country=='PL')||($country=='POL'))
{
header('Location: index_pol.php');
exit();
}
$include_path = './global_php/';
$page = "couture";
include $include_path."shop.inc.php";
$movie_num = 1 ;
Now see the minifed version:
include("template.funcs.php");include("country-redirect.php");
if(($country=='PL')||($country=='POL')){header('Location: index_pol.php');
exit();}
$include_path='./global_php/';$page="couture";include $include_path."shop.inc.php";
$movie_num=1;
Which one do you think is faster - in general, I want to start also minifying my programming too, small var and string names like $a rather than $apple and trying to remove as much extra character as possible. Will the PHP Compiler like a compressed chunk or spaced out one?