Archive

Posts Tagged ‘source code’

Symfony Study Guide – Small Project Implementation

May 15th, 2010 R Arun Raj No comments

Download Symfony Sandbox 1.4

Source : www.symfony-project.org/installation
Requirement : Xampp or Wamp Package
PHP: 5.2 Above

Download Symfony and put this into your website root

Rename sf_sandbox to your project name. Here it is CRM

open config/properties.yml file and put below details

[symfony]
name=CRM
author=Arun Raj R
orm=Doctrine

Read more…

Image Resize Simple class

September 11th, 2009 R Arun Raj No comments

Here is a sample class file for image resize.image-resize-class

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 be the pathname of source file. Say “uploads/arun.jpg”.

$newFileName this should be the source File name with path.  Say “uploads/thumb/arun.jpg”.

Any Doubt ?

Categories: PHP Tags: , , ,

Videos, Slideshows and Podcasts by Cincopa Wordpress Plugin