Categories
-
Recent Posts
Archives
Meta
Canvas is maybe one of the most interesting HTML5 feature. It has all you need to create rich web applications or games. We talked about how to Generate gradient image with PHP some time ago. Now we’re gonna use HMTL5 canvas element to draw a simple button with a gradient effect, using it’s 2D context …
If you want to provide the ability to download some content (like a text from the database) or to be sure that the browser won’t open a file you gave a like to instead of downloading it here are the few lines of php code that you can use to do that: In this context …
There are a lot of nice effects you can get using php’s gd library. The one I decided to show now is a very simple way to render an image with a gradient between any two colors. You will be able to use this script for a wide range of needs considering that it gives …
Most people know about php’s mail function. Even if it’s not the only way to send emails it is very used because of its simplicity. One thing that is not very often found in tutorials but is very useful might be the way to add attachments to the message using only this function and not …
In this post I will give you a simple example of RSA encryption and decryption using php. I guess that if you searched for this you already know what RSA is. If you don’t there’s a great article on it on wikipedia. You will find yourself sometimes in need of an encryption algorithm that would …