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.
Koding is an online development environment. Using koding we can develop a applications of C, C++, PHP, Ruby, Go, Java, Python and many more languages. Koding allows us to create application based on cloud means your code is available when you want. Koding provide one Virtual Machine to each free users (more for premium users)…. | 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.
<Meta> tag is used to describe more details about web page. Using <meta> tag we can specify description, author, keywords etc. Search engines are usually use this details. Description When you search something in search engine you may notice that each link contains 2-3 line description about webpage. This description is specified by below snippet…. | 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.
If you are using any theme based on framework which provide responsive UI then it became difficult to test it’s responsiveness. Many developers are resize browser to size of mobile/tablet and test it’s UI due to which it became very tedious job. Some developers do a different thing, they are creating a iframe and load… | Click here to read more.
If you want to create different users for your different database due to security reasons then this article is for you. In MySQL we can grant access/privileges of database to user as well as revoke or even delete user too. We can also assign full access to any user for any database by using below… | 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.
Some times you got files which are Minified such as jquery.min.js or bootstrap.min.css. Here this .min refer minified version of file. If you are opened minified files then you may notice that minified files does not have any spaces, new lines, and even some time comments! It also replaces name of variables in case of… | Click here to read more.
Certain time it’s really boring to update file through text editor and switch to browser reload page if not get proper output then switch back to editor! Instead of this you can use own custom HTML Try It like w3school’s. It’s pretty simple technique. You need to create one large textarea which contains your html… | Click here to read more.
In many situations you want to show loader to users while page is loading. After loading this page this loading icon/image should be gone away. You can use below snippet for this, in which i am using css animation for producing look of progress ring of windows 8. However you can use any image/icon. Add… | 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.