Skip to content
BlogTreat

BlogTreat

Web Programming & Tutorial

  • Home
  • About
  • PHP
  • Magento
  • Magento 2
  • Contact
Main Menu

PHP

PHP

How to Read / Write XML File in PHP

July 4, 2018November 4, 2018 BlogTreatLeave a Comment

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 more
PHP

How to Read / Write CSV File in PHP

June 20, 2018November 4, 2018 BlogTreatLeave a Comment

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 more
PHP

How to Read / Write a File and Scan a Directory in PHP

March 26, 2018November 4, 2018 BlogTreatLeave a Comment

In 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 more
PHP

How to Get Client IP Address in PHP?

February 25, 2018November 4, 2018 BlogTreat1 Comment

In 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 more
PHP

How to switch PHP version using ubuntu terminal?

February 6, 2018November 4, 2018 BlogTreat1 Comment

In 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 more
PHP

Reduce Image File Size While Uploading It Using PHP Code

January 26, 2018November 4, 2018 BlogTreatLeave a Comment

It 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 more
PHP

Get Latitude & Longitude From an Address Using PHP and Google Map API

December 23, 2017August 27, 2018 BlogTreatLeave a Comment

In 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

Recent Posts

  • Create New Admin User in Magento 2 via Command Line Interface February 14, 2019
  • Steps to Create New Admin User in Magento 2 February 1, 2019
  • Steps to Create New User Role in Magento 2 January 23, 2019
  • Magento 2: Get Base URL, Store URL and Current URL August 15, 2018
  • How to Copy, Move and Rename Files & Folders Using SSH August 11, 2018

Categories

  • Git (1)
  • How to (7)
  • JavaScript (2)
  • Magento (15)
  • Magento 2 (56)
  • MySQL (1)
  • PHP (7)
  • WordPress (1)

Archives

  • February 2019
  • January 2019
  • August 2018
  • July 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • December 2017
All rights reserved © 2019 BlogTreat.
Sitemap | Privacy Policy | Contact