Remove File Extention From URLs In .htaccess

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

# Method 1: RewriteRule ^about$ about.php [L] # Method 2: RewriteCond /%{REQUEST_FILENAME}.php -f RewriteRule ^([a-zA-Z0-9_-\s]+)/$ /$1.php

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 …

Load More