Breaking

Code Gripper

Code Gripper

Responsive Advertisement
  • Home
php
date

PHP how to get last 6 months first date

byMahabubur Rahman -October 24, 2022

You can try following way -  for ( $i = 1 ; $i < 7 ; $i ++) { echo date ( ', Y-m-01' , strtotime ( "- $i month" )); }

Laravel

What is throttling and how to implement it in Laravel?

byMahabubur Rahman -October 16, 2022

Throttling is a process to rate-limit requests from a particular IP. This can be used to prevent DDOS attacks as well. For throttling, Laravel provides a middleware that can be applied to…

date

How can I find out the date of the day before a date?

byMahabubur Rahman -September 02, 2022

Here is different way to get the date of a selected day ago in PHP . The ways are as bellow -  Way - 1: strtotime() will do the trick. Convert your previous date to a Unix timestamp using …

php

PHP Error : Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`

byMahabubur Rahman -January 27, 2022

You need to add parentheses around your code: Before: $reference ->frotel_vitrine = empty ( $item ->special) ? null : $item ->special == 2 || $item ->special == 3 ? 'ac…

Laravel

How to fix Error: laravel.log could not be opened?

byMahabubur Rahman -January 11, 2022

Error in exception handler: The stream or file "/var/www/laravel/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied Disable S…

php

Fatal error: Uncaught Error: Class "SoapClient" not found

byMahabubur Rahman -October 02, 2021

If this happened first of all lookup phpinfo by   phpinfo();. If you not find soap in php info you have to enable soap. To enable soap follow bellow steps -  Step 1:   Locate   php.ini   in…

date

How to get previous day of date in php

byMahabubur Rahman -August 09, 2021

Method 1 : Use DateTime class as bellow  $date = new DateTime(); $date->modify('-1 days')->format('Y-m-d'); Method 2: Use strtotime function in date function as bell…

date

How to get next day of date in php

byMahabubur Rahman -August 09, 2021

Method 1 : Use DateTime class as bellow  $date = new DateTime(); $date->modify('+1 days')->format('Y-m-d'); Method 2: Use strtotime function in date function as bello…

That is All

Follow Us

Popular Posts

Subscribe Us

Facebook

Categories

Main Tags

Code Gripper

September 30, 2023

Total Pageviews

Search This Blog

CODE GRIPPER

Code Gripper
CODE GRIPPER

  • Home
  • Python
  • PHP

Menu Footer Widget

  • Home
  • About
  • Contact Us
Code Gripper

About Us

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's.

Categories

Main Tags

Latest Posts

Most Popular

Design by Blogger | Distributed by Gooyaabi
  • Home
  • About Us
  • Contact Us
  • RTL Version