Tag Archives: PHP

PHP: ImageHelper

ImageHelper is a simple PHP class that save, resize and/or crop photos. You can download the script in the links listed below. ImageHelper download link Gist Sample Usage : $image = new ImageHelper(); $imageThumb = ‘../images/thumb/’ . $imageID . ‘.jpg’; $image->saveImage( $url , $imageURL ); $image->resizeCrop( $imageThumb , $imageThumb , ‘1:1′ , ’75x’ ); $imagePreview … Continue reading PHP: ImageHelper

PHP: UPPEValidator

UPPEValidator is a simple PHP string validation class that will help validate email addresses, URLs, passwords, and phone numbers. You can download the script in the link listed below. UPPEValidator Download Link Gist Sample Usage : $validator = new UPPEValidator(); $string = ’09-088-909-8890′; // You can also use dots ( . ) instead of hyphens … Continue reading PHP: UPPEValidator

PHP: DBClass

DBClass is a simple PHP database class that will help ease database connection usage. You can download the script in the links listed below. DBClass Download links Gist Sample Usage : $dbClass = new DBClass(); $result = $dbClass->query( $dbQuery ); while ( $content = $dbClass->fetchAssoc( $result ) ) { echo $content[‘description’]; } Functions : query() … Continue reading PHP: DBClass