Hashing Passwords in PHP - The Secure Way

    When you have to save user’s password in a database you should never store them in plain text for security precautions and privacy. If we do hashing the passwords before saving them to the …  read more

    PostgreSQL CRUD Operations in PHP

    PostgreSQL PostgreSQL is the advanced, open-source object-relational database management system (ORDBMS) built for extensibility and on standards-compliance. PostgreSQL provides complete support for …  read more

    What you should do before pushing php code to production git repository

    I assume that you are already using git as version control system for php projects. It is true that sometimes we make some spelling mistake in the code which may cause a warning or a fatal error, But …  read more

    Convert timestamp to relative time in php

    Sometimes users may find difficult to identify the activity date time. It may look weird when you display standard datetime like 2015-03-29 08:03:07. Instead of displaying the date timestamp raw, we …  read more

    How to disable comments on custom post type?

    A Custom post type in WordPress is used to create our own type of content like pages and posts with extra features. We can create a custom post type via the register_post_type() function. This …  read more