.htaccess

how to get A Grade YSlow Compress Components with GZip?

With the Firebug add-on YSlow, one of the components that gets rated is something called Compress components with gzip. When you run YSlow to optimize your website or blog, you may be getting dinged on that component. Here is how to improve your site’s speed a bit – with two huge caveats: You web server… Continue reading how to get A Grade YSlow Compress Components with GZip?

php

how to set stamp on photo as a watermark on php?

<?php // Load the stamp and the photo to apply the watermark to $stamp = imagecreatefrompng(‘stamp.png’); $im = imagecreatefromjpeg(‘photo.jpeg’); // Set the margins for the stamp and get the height/width of the stamp image $marge_right = 10; $marge_bottom = 10; $sx = imagesx($stamp); $sy = imagesy($stamp); // Copy the stamp image onto our photo using… Continue reading how to set stamp on photo as a watermark on php?