Thursday, May 15, 2014

Step to create Yii framework project skeleton using command prompt on Windows

Step to create Yii framework project skeleton using command prompt on Windows:

  •  Set PHP path under environment variables path for e.g. C:\xampp\php.
  •  From command prompt locate yii framework directory for e.g. C:\xampp\htdocs\yiiframework 
  • Now execute command yiic with webapp parameter and application path with project name for e.g. C:\xampp\htdocs\yiiframework\yiic webapp ../myyiiproject

Friday, February 28, 2014

PHP - List of india cities in array


Sunday, December 15, 2013

CGridView is striping out the HTML tags : Solved

The solution is to specify the column type as "raw":


$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'columns'=>array(
        array(            
            'name'=>'column1',
            // call the method 'getLink' from a model.
            'value'=>array($model, 'getLink'), 
            'type'=>'raw',
        ),
    ),
));

Thursday, May 16, 2013

PHP - Delete all files from a folder excluding current date file name

Friday, March 29, 2013

How to save unchecked value of checkbox - HTML

Working with form check boxes can be a bit of a pain on sites with dynamic content. Saving the checked data is easy, but how do you easily save the unchecked value without manually adding it to an array from inside your code.
Read Full Article and solution here http://bit.ly/6laVc

Wednesday, March 6, 2013

In Magento, whenever you change the searchable attributes of product from admin panel, you need to re-index data




Magento Gyaan !

In Magento, whenever you change the searchable attributes of product from admin panel, you need to re-index data using following step system->index management otherwise it will not work.

Thursday, February 28, 2013

Best way to add Google Analytics code snippet placement in web page

The Google Analytics code snippet placement in web page.
The tracking code is designed to read data from your page after the content for the page has finished loading. For this reason, the snippet should be located just before the closing </body> tag for your web page. For more story read here http://bit.ly/Y3klGn

Thursday, September 6, 2012

Yii Framework: restrict loading jquery library again if you already included Jquery in case of using ajax button/link etc

Yii Framework: When already included Jquery and using Ajax button , Link creating conflicts


Monday, April 30, 2012

Awesome JQuery Plug-ins for website

Awesome JQuery Plug-ins for website
http://www.hotscripts.com/blog/jquery-plugins/

Parsing XML Using PHP

Monday, September 5, 2011

The Ultimate Jquery List of Plugins and examples

The Ultimate Jquery List of Plugins and examples

http://jquerylist.com/

Monday, August 22, 2011

PHP 5.3.7 upgrade warning

Due to unfortunate issues with 5.3.7 (see bug#55439) users should wait with upgrading until 5.3.8 will be released (expected in few days).

Monday, July 25, 2011

Download and Read Free E Book

Hi technologies lover, 

Very helpful link for eBook site download and read Free E Book


Saturday, January 15, 2011

Joomla CMS Launched its Latest Version1.6 with new features and capabilities

Joomla CMS launched its latest version1.6 with new features and capabilities

Joomla 1.6 version come with many features that will help both developer as well as administrator for further details please visit  joomla forum
http://www.joomla.org/component/content/article/5252.html

Thursday, December 16, 2010

PHP the fastest growing language or technology with Open Source Facility

 I think for new comer or fresher IT aspirants PHP is the greatest  platform to proof herself/himself. As we see there are lots of example in current scenario where php left behind all technologies the best example is open source CMS like Joomla , Drupal, Magento etc that make web developement easier and faster. Apart from these benefits any individual can  work and earn money using these technologies. So I'll suggest all the new comer come to become the part of PHP Development.

Best wishesh,
Mohammad Tabrez Ansari
Applicaiton Engineer

Wednesday, December 8, 2010

Using PHP simple script that parses XML to HTML code for anyone who needs to put weather forecast on their websites

Using PHP simple script that parses XML to HTML code for anyone who needs to put weather forecast on their websites
<?php
$xml = simplexml_load_file("http://www.google.com/ig/api?weather=milan");
$day=array();
$low=array();
$high=array();
$icon=array();
$condition =array();
$humidity=array();
$wind_condition=array();
$googlePath="http://www.google.com";

 foreach($xml->children() as $child)
 {
   
     foreach($child->children() as $schild)
          {
                 
                if($schild->getName()!=" ")
                {
                    if( $schild->getName()=="forecast_conditions")
                    {
               
                        foreach($schild->children() as $sschild)
                          {
                             
                                if( $sschild->getName()=="day_of_week")
                                {
                                    $day[]= $sschild['data'];
                                }
                                if( $sschild->getName()=="low")
                                {
                                    $low[]= $sschild['data'];
                                }
                                if( $sschild->getName()=="high")
                                {
                                    $high[]= $sschild['data'];
                                }
                                if( $sschild->getName()=="icon")
                                {
                                    $icon[]= $sschild['data'];
                                }
                                if( $sschild->getName()=="condition")
                                {
                                    $condition[]= $sschild['data'];
                                }
                               
                          }
                    }
                   
                    if( $schild->getName()=="current_conditions")
                    {
                        foreach($schild->children() as $sschild)
                          {
                              if( $sschild->getName()=="humidity")
                                {
                                    $humidity= $sschild['data'];
                                }
                               
                              if( $sschild->getName()=="wind_condition")
                                {
                                    $wind_condition = $sschild['data'];
                                }
                          }
                         
                    }
                   
                }

         
         
          }
   
 }



?>