Change PHP version for specific domains in cPanelCreate a .htaccess in the root of the directory and append this line anywhere in the file. AddHandler application/x-httpd-alt-php74___lsphp .php Here 74 represents PHP version 7.4. If we want 8.1, it would be 81.Jan 28, 2024·1 min read·8
FormBuilder for LaravelNever have to write the code for the form ever again.Feb 19, 2023·11 min read·111
Best Meta tags for SEOFull Social Media Tag Template: Article <!-- Update your html tag to include the itemscope and itemtype attributes. --> <!-- Place this data between the <head> tags of your website --> <title>Page Title. Maximum length 60-70 characters</title> <meta ...Sep 15, 2022·3 min read·37
Change default password of root user on aws ubuntu ec2 instanceFirst ssh into your server using the ssh key. ssh -i "Mysecretkey.pem" ubuntu@ec2-ip.compute-1.amazonaws.com Once you are logged in, switch to root user with the following command sudo su If successful, you will be switched to root. Optional: If yo...Jun 23, 2022·1 min read·81
Detect Desktop/Mobile with VanillaJSvar isMobile = false; //initiate as false // device detection if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in...Jun 10, 2022·1 min read·23
Time Ago Implementation in PHP/LARAVELOriginal Post Url : https://www.w3schools.in/php/examples/time-ago-function PHP Time Ago functionality is used to display time in a different format. Display the time format, which is easy to understand. Display the time format similar to different ...May 21, 2022·2 min read·55
Formatting the Current Date and Time in PHPOriginal Blog Link : https://code.tutsplus.com/tutorials/working-with-date-and-time-in-php--cms-31768 By Monty Shokeen on Feb 26, 2021 You'll often want to work with dates and times when developing websites. For example, you might need to show the la...May 21, 2022·5 min read·31