PHP array of all US States

Posted by on Mar 7, 2014 in Php, Snippets | No comments yet

$usStates = array( ‘AL’ => ‘Alabama’, ‘AK’ => ‘Alaska’, ‘AZ’ => ‘Arizona’, ‘AR’ => ‘Arkansas’, ‘CA’ => ‘California’, ‘CO’ => ‘Colorado’, ‘CT’ => ‘Connecticut’, ‘DE’ => ‘Delaware’, ‘FL’ => ‘Florida’, ‘GA’ => ‘Georgia’, ‘HI’ => ‘Hawaii’, ‘ID’ => ‘Idaho’, ‘IL’ …

Show posts from a category magento AW BLog

Posted by on Mar 4, 2014 in Magento | 3 Comments

When using the AheadWorks Blog Magento Extensions sometimes necessary show blog category from block or cms page. Need to make small changes before use code Go to app/code/community/AW/Blog/Block/Cat.php and change to

Export MySQL data to csv using php

Posted by on Feb 21, 2014 in General | No comments yet
Export MySQL data to csv using php

A lot of clients requires to export the data from database to csv. So i decided to add an post related to this on export mysql data to csv using php Below is the code on how we can do …

Check if file is an image in php

Posted by on Feb 20, 2014 in Php | 2 Comments

We can use the php’s inbuilt function getimagesize to get the informations about an file, including its type. While checking for the type we can can also check the file is image or not. So by using getimagesize we can …

Load More