Tag: PHP

  • WPML URL override on archive page

    WPML URL override on archive page

    Last week I ran into an issue with WPML URLs on post type archive page. When the permalink is set to %post_name%, we can access the archive page following //site_url/post_type_slug. And the posts can be filtered by taxonomy using //site_url/post_type_slug?taxonomy_name=taxonomy parameter in the URL. With WPML language switcher things become a bit tricky. The issue When I […]

  • Useful extensions for Laravel

    Useful extensions for Laravel

    I’m starting to love Laravel. And while starting new project, there are few extensions I like to use which saves a lot of time. Maybe someone else will find these useful as well. 1. Laravel 4 Generators A really awesome extension from Jeffrey Way. This makes life easier by creating all the controllers and models […]

  • CodeIgniter template library

    CodeIgniter template library

    The thing I hate most about CodeIgniter is that the views folder become messed up after a while. So many files and so difficult to track down a view for a certain area of an application. So, to solve that I figured I should create a library to override the ways of managing views. I wrote this […]

  • File upload/download on MySQL database

    Well… It is already a well discussed topic. But when I was first trying to find out how to do this, I really got stuck. Actully it took me a lot of time to find out the key code segment for the purpose. So, here is what I’ve learned: The table: Suppose the structure of […]

  • Basic PHP – Part 1

    This article is about very basic of PHP coding, creating functions and database connection using PHP. Later posts may contain detail about other features. Target viewers are assumed as familiar with C/JAVA or other similar programming language. So I didn’t bother to clarify basic syntax. Writing PHP code: All your PHP content should be inside […]