PHP Magic Quotes





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

5
Date Submitted Mon. Oct. 23rd, 2006 10:48 PM
Revision 1
Helper jdenton
Tags GD | gif | images | jpeg | PHP | png | Resize
Comments 1 comments
The resize_image function allows you to resize a GIF, JPEG or PNG file to any dimension you wish and put an optional black border around the image. Here's an explanation of the arguements:

$image_path: The complete path to the image to be resized

$max_width: Maximum width of the resized image. Leave 0 if you want to specify only the height and have the width auto-scale.

$max_height: Maximum height of the resized image. Leave 0 if you want to specify only the width and have the height auto-scale.

$file_prefix: This will prepend a string onto the resized image filename. If you want to create a thumbnail image and keep the original, set $file_prefix = 'thumb'.

$dir: Allows you to save the resized image to a sub directory under the $image_path directory. If you want to save thumbnail images to images/thumbs, set $dir = 'thumbs'.

$border: boolean, 1 = border, 0 = no border

$mime: Image mime type. (image/jpeg, image/gif, image/png)
13
Date Submitted Mon. Oct. 23rd, 2006 10:19 PM
Revision 1
Helper jdenton
Tags Calendar | Date | days | PHP
Comments 0 comments
daysBeteenDates will calculate the number of days between 2 dates in the form of 'YYYY-MM-DD'.
6
Date Submitted Sun. Oct. 22nd, 2006 5:34 AM
Revision 1
Beginner kiefpiet
Tags PHP | upload
Comments 2 comments
Simple file upload script.
5
Date Submitted Sun. Oct. 22nd, 2006 5:21 AM
Revision 1
Beginner kiefpiet
Tags PHP
Comments 1 comments
Open a text file and format it (word wrap).
13
Date Submitted Sat. Oct. 21st, 2006 9:21 AM
Revision 1
Beginner hax
Tags mysql | PHP | phps
Comments 1 comments
Pagination Class , I think everyone knew now what's it does and means

NT: This class written by my friend have phun!
13
Date Submitted Fri. Oct. 20th, 2006 8:10 PM
Revision 1
Beginner stalfos
Tags PHP | Recursive | syntax
Comments 1 comments
Recursively checks for all *.php and *.tpl files in the directory specified (or the current directory if one is not specified) and runs `php -l $file`. Only outputs the errors.
8
Date Submitted Mon. Oct. 16th, 2006 9:59 AM
Revision 1
Beginner rdohms
Tags PHP
Comments 2 comments
A very simple yet very useful function to have around. Especially generating session codes, filenames or new passwords
-9
Date Submitted Sat. Oct. 14th, 2006 6:26 AM
Revision 1
Beginner hax
Tags PHP
Comments 2 comments
By this class you can make a RSS FEED page in your website.
5
Date Submitted Thu. Oct. 12th, 2006 3:34 PM
Revision 1
Beginner ammonkc
Tags PHP
Comments 0 comments
function that builds select boxes for the month,day,and year. It will default to mmddyyyy, current date, or specified date depending on the parameters.
12
Date Submitted Thu. Oct. 12th, 2006 3:32 PM
Revision 1
Beginner ammonkc
Tags mysql | Pager | PHP
Comments 2 comments
This is a mysql php pager class that I found online somewhere and modified.