In this code snippet, we will see how to read / write XML file using PHP. What is XML? XML stands for Extensible Markup Language. Which is used to structure, store and transfer data from one system to another. XML is similar to HTML, except that XML allows users to …
Read morePHP
In this quick article, I am going to show you how to read/write CSV file using PHP. What is CSV? CSV stands for Comma Separated Values, CSV is a simple file format used to store tabular data (with .csv extension), such as a spreadsheet. In CSV file, all the values …
Read moreIn this blog, I am going to show you how to Read / Scan any directory Read a file Write to a file Read / Scan any Directory: Here the code to get all the files and folders inside the directory. We can use the following three ways to read …
Read moreIn the website, many times we may need to get the visitor’s IP address. Because it is very important for validation, security, spam prevention, etc. Getting the visitor’s IP address is very easy in PHP. In this blog, I am going to show you how to get the client IP …
Read moreIn this article, we will see how to switch the PHP version for Apache and CLI using ubuntu terminal. For example, you have installed PHP 5.6 and PHP 7.1 on your server. By default, PHP 7.1 is running for Apache and CLI. For any requirement, you need to use PHP …
Read moreIt is a very common process to upload images dynamically to the server or website by the users and admins. However, while we upload the image with a large file size on the website, it is likely to take more time to load and effects website ranking. So the developer …
Read moreIn this tutorial, I am going to show you how to get latitude and longitude of any given address and how to get the address of any given latitude and longitude using Google Map API. By using the below Google Map API, we can do it very easily, http://maps.google.com/maps/api/geocode/json For …
Read more