RSS

Tag Archive | "Using"

Adding Watermarks To Images Using PHP

Tuesday, November 4, 2008

1 Comment

In this tutorial I’m going to show you how to add watermarks to images. The advantages to this script is that it will not effect the original image. So this is the first bit of the code… What this does is defines the functions and retrives the images. $stamp = imagecreatefrompng(’stamp.png’); $im = imagecreatefromjpeg(’photo.jpeg’); Next…What this does is sets the [...]

Continue reading...

Reflections Using The GD - PHP

Saturday, September 13, 2008

2 Comments

In this tutorial I’m going to show you how to make reflections using the GD just like the image below. So here is a walk-through of the code… The first bit is defining the image you want to reflect… $im = 'yourimage.gif'; The second bit gets the size of the inputted image to make sure it is reflected correctly. $size [...]

Continue reading...

Page Redirection Using a URL Variable - PHP

Friday, September 12, 2008

5 Comments

A note for the copy and pasters - a full source code is available at the bottom if you dont want to read it all. You wont learn anything though ;) In this tutorial I will show you how to redirect your page using a URL variable. So you will be able to do something like: http://www.yoursite.com/redirect.php?url=http://www.redirectedsite.com To  [...]

Continue reading...