Some time you need to import bulk data to application, for that CSV is preferred format. You can also use PHPMyAdmin to import CSV file, however it’s cool to use PHPMyAdmin as a developer but you may not want to allow Client/User to import via it, because there are large no. of operations can perform… | Click here to read more.
In some case if you want to retrieve data from another user i am normally using file_get_contents($link); But some sites disabled file access by using file_get_content(), in that situation we can use Curl functions of PHP. For this you must need to enable CURL in your PHP server. API_URL contains a URL of API that you… | Click here to read more.
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.