Skip to content
Scratch Coding
  • WordPress
  • Laravel
  • PHP
  • Vue.js
  • JavaScript
  • Quick Links
    • Contact Us
    • Privacy Policy
    • About Us

PHP

How to get Domain Name From Subdomain in PHP

July 4, 2024July 4, 2024 by Coder Expert

PHP script to get domain name from sub domain. We implemented here 2 examples

Categories PHP

How to check the request type in Laravel and how to retrieve the requested path

June 19, 2024December 12, 2022 by Hadaya Qaiser
check the request type in Laravel

How to check the request type in Laravel. Also, how to retrieve the request method

Categories Laravel, PHP

How to check existence of a table in Laravel database?

May 29, 2024December 12, 2022 by Hadaya Qaiser
check existence of a table

Method, syntax and implementation for how to check existence of a table in Laravel database. Code snippets are added for proper explanation.

Categories Laravel, PHP

How to efficiently read and parse a big CSV file with few lines of code PHP

May 29, 2024November 16, 2022 by Hadaya Qaiser
read and parse a huge CSV file in few lines

Obviously, because of the logic that the project required, we couldn’t just simply import the file into the database through a tool like PHPMyAdmin, as every row in the CSV should be modificated to fit with our new database design.

Categories PHP

How to Convert Time to time ago in PHP – 30 minutes ago, 2 days ago, etc.

May 29, 2024October 26, 2022 by Sumaira Nasir

A tutorial on converting date time ago to an elapsed string like 30 minutes ago, 1 day ago, or 2 days ago using PHP.

Categories PHP

How to display time elapsed string (X days left) in Laravel – 2 hours ago

May 29, 2024September 12, 2022 by Hadaya Qaiser
time elapsed string

In this tutorial of Laravel, we will show you how to process time and display it in more user friendly format with code examples. e.g 2 days left format in Laravel

Categories Laravel, PHP

Recent Posts

  • How to manage multiple versions of Node.js on your computer?
  • How to get Domain Name From Subdomain in PHP
  • How to use srcset and sizes for Image Optimization?
  • How to Replace http with https in PhpMyAdmin (bulk WordPress URL update)
  • How to use the array map function with a condition in React?
  • CSS
  • Ionic Framework
  • JavaScript
  • JavaScript Framworks
  • Laravel
  • MySql
  • Node.js
  • PHP
  • React
  • Vue.js
  • Wordpress
© 2025 Scratch Coding • All Rights Reserved.