Now a day almost APIs and web services are using JSON format for transfer and represent data instead of XML. Due to JSON is easy to understood and faster then XML. JSON is language independent there for used by many languages, PHP is one of them. For using JSON in PHP we need to use… | Click here to read more.
With newer version PHP5.5 mysql_*() methods are deprecated. Normally most of developers are using this method for database operations. After PHP5.5 there are two options for performing database operations: Use MySQLi Use PDO PDO stands for PHP Data Objects. PDO allow us to use various different types of database with same syntax. PDO is suggested… | Click here to read more.
I am noticed that in some sites of you click on download button and file is type of image/music/video/pdf then in most of cases it play/open with in browser instead of downloading on client. In this article i am writing certain snippet for how to force browser to download file rather then open in browser…. | Click here to read more.
Many people are store password directly on database. Due to which risk of misusing is increased. We mist need to perform certain operations on password before storing it, which is know as hashing or encryption of password. There are various range of hashing functions are available such as md5(), sha1(), crtyp(), hash(). In this article… | Click here to read more.
Many time you need to send mail through php in your site. For this we can use mail() function of php. However it’s mails are send to junk/spam if you are not make proper setting. If you want to send mail through SMTP then you must need to use external library. PHPMailer is one of… | Click here to read more.
In certain situation we need to create a variable with name based on value of other variables. In many programming language it is not possible but with PHP it’s possible Even we can use this in OOPS, such as field(property) name.