Category: Programming

Image Resize Simple class

Here is a sample class file for image resize. imageResize.class Download the File  save it in web root and add .php extension to the file  . How to use ? <?php require_once(‘imageResize.class.php’); // Path to File imagejpeg(imageResize::Resize($fileSavePath,$width,$height),$newFileName); ?> $fileSavePath should

Tagged with: , , ,

Symfony 1.2 File Upload

class mymoduleActions extends sfActions { public function executeUpload($request) { if ($request->hasFiles()) { foreach ($request->getFileNames() as $uploadedFile) { $fileName = $request->getFileName($uploadedFile); $fileSize = $request->getFileSize($uploadedFile); $fileType = $request->getFileType($uploadedFile); $fileError = $request->hasFileError($uploadedFile); $uploadDir = sfConfig::get(‘sf_upload_dir’); $request->moveFile($uploadedFile, $uploadDir.’/’.$fileName); } } }

Tagged with:

Unexpected Error in new PHP 5.3

Syntax Error , Unexpected ‘]’ in C:\xampp\php\browscap\browscap.ini on line 297.

Tagged with:

What is PHP and its advantages and disadvantages..

Hypertext Preprocessor :: PHP some time  I used to call Personal Home Page PHP is an open source server side scripting language that mainly used for developing web applications and web services. The PHP is very simple for a beginner,

Comparison between various programming languages

Today onwards I am willing to write series of articles about various programming languages. As a programmer we should compare all the programming languages, study its advantage and disadvantages . By these we can consult a correct platform for our

Asterisk Callme Architecture with PHP AGI

Extensions Configuration extensions.conf [callme] exten => s,1,AGI(callme.php|${CNUM}) CNUM is the variable passed to callme AGI Script Callme.php Agi Script #!/usr/bin/php /** * Author Arun Raj R * @package phpAGI_for Call me * @version 1.0 */ set_time_limit(30); require_once(“phpagi/phpagi.php”); $agi = new

Tagged with: ,

PHP:: How to split a large array in small pieces :: or split array into chunks

Hello All, Yesterday i was searching for a solution to split large array into small pieces. Suddenly i noticed the that php have a built in function to split array into small pieces. It was very surprise to me ..

Tagged with: , ,

Debugg Your Javascript by using FireBug Plugin for Mozilla Firefox

Debugging Javascript was very hard and time consuming. Fire bug is very good tool for monitoring html, css javascript and Ajax request. Also we can use firebug as a reengineering tool for online applications

Tagged with: ,
Top