Wednesday, 14 May 2014

Project Management Tips- Way to Successful project

Project Management Tips- Way to Successful project

Project Flow and Structure

Project Structure and flow must be clear to project manager, developer and client to avoid any problem in future. When basic flow will be clear to each of team then success rate of project will be increased. Use http://www.balsamiq.com/products/mockups to create the flow diagram and get approvel from client and make the aware of each member.

Keep communications: 
Keep the communication with client at-least weekly basis and  get the approvel of task done in whole week. Understanding must be good betweeen the team and client. If possible, each developer should be involved in communication.


Track of Project Status:
Track the current status of project by daily, weekly, to check that project in right direction.


Support to Developer:
Project manager must support and encourage his developer for each good work. So that team process in good way.




Zend_Filter_Input - Zend_Filter - Zend Framework

When user submit the data through Form, Developer need to filter the submitted data. because we can not trust on end user, he can be hacker. User can be add invalid data that cause, crash your page OR website. So Never trust on user and  always filter form data before saving in your database OR showing in website.

In Zend Framework, we can filter data differently with different field in single function. There is not need to use two different functions, one for filter and second for validator. There is zend_filter_input which can perform these two task. Lets take an example.

For Example 
In Age, We need to trim all Alphabets, only number is accepted
In Name, W need to trim all except alphabets
In DOB, We need to trim all except number and hyphen(-)

In Description, We need to removed all scripts tags because It can be XSS Attack.

We can add different filters on different fields. For Example in below code:
We add strip_tags and trim for Name and Address
We allow Alphanumeric and space for Address



Use following code to filter Form-Data in Zend Framework
  $formData = array(
            'name' => ' arun ..7809890809843 !@#$%%%',
            'address' => 'filter data *)(*)('
        );        
        $filters = array(
            '*' => array('StripTags', 'StringTrim'),
            'address' => array(array('Alnum', array('allowwhitespace' => true))),
        );

        $data = new Zend_Filter_Input($filters, null, $formData);
        $filterData = $data->getEscaped();        
        print_r($filterData);

5 Best Related Posts are Following:1. Web service - current time zone for a city- Free API
2. Zend Gdata Youtube API - Search Video - View Video Detail
3. Download the video from Amazon Simple Storage Service S3
4. How to set Cron in Zend Framework
5. Zend Cache Tutorial - Zend Framework 1.12