All Entries Tagged With: "php"
Search Twitter using PHP
Share This tutorial would help you to implement the simple search API provided by twitter and can be used in any web-projects . Its fast, effective and very simple to use . I have put together the code in a neat format for ease of use . The package contains 4 files : 1. index.php [...]
Capture Keystroke Using Jquery.js
Share Capture keystroke using jquery.js . Download and include jquery.js before you use the code . The code check the ASCII value of the key pressed . $(this).keydown(function(e) { if (e == null) { // for IE keycode = event.keyCode; } else { // for mozilla keycode = e.which; } if(keycode == 27){ // write [...]
A Function To Rotate Image using PHP
Share As you all know we use GD library in php for creating thumbnails of images . I found an interesting function that would help you to rotate image as you wish . function rotateImage($sourceFile,$destImageName,$degreeOfRotation) { $imageinfo=getimagesize($sourceFile); switch($imageinfo['mime']) { //create the image according to the content type case "image/jpg": case "image/jpeg": case "image/pjpeg": //for IE [...]
How to get Latest Tweet using php.
Share Integrating blogs with twitter was a daily routine for me . Thus i decided to write a function that would return you the last tweet of a particular twitter user . It is a simple self explanatory code . Note : Change $username to your account before you use . Usage echo "Latest Tweet [...]
Thumbnail Generation In Symfony Using jsThumbnailPlugin
Share Trying to generate thumbnail in symfony ? well there is a great plugin named jsThumbnailPlugin that would help you to do the same . The plugin create the thumbnails using GD library and uses the symfony cache system to cache the thumbnails . Its simple to configure and use . Step 1 : download [...]
Thumbnail Generation made easier using Image-Resize Class
Share The PHP class is meant to resize images keeping the aspect ratio using GD library . The class can handle jpg , jpeg , gif and png . Its simple to use , you just need to specify the image path and dimensions . Usage : include("resize-class.php"); $resizeObj = new resize(‘sample.jpg’); $resizeObj -> resizeImage(200, [...]






