-
Continue reading →: Git First Time Setup and Basic Commands
Git is an essential tool for version control that helps developers manage and track code changes effectively. This blog will guide you through the initial setup of Git, how to create a new repository, push changes, merge branches, and use Git tags. Let’s get started! 1. First-Time Setup on Git…
-
Continue reading →: Is there a way to protect my global routes in laravel?
Understanding Middleware in Laravel Middleware acts as a bridge between a request and a response in a Laravel application. It provides a way to filter HTTP requests that enter your application. Middleware can be used for various purposes, including authentication, logging, rate-limiting, and more. In this case, we will create…
-
Continue reading →: How to increase memory limit for PHP over 2GB?
This PHP code snippet is used to modify the execution environment of a PHP script. Here’s what each line does: Overall, these settings are typically used in scripts that require a long execution time or heavy memory usage, such as data processing or import/export tasks. However, they should be used…
-
Continue reading →: Create text file using javascript
Create and Download Text Files with JavaScript In this blog post, we’ll explore a simple way to create and download text files directly from your web browser using JavaScript. This technique can be particularly useful for generating reports, saving user input, or exporting data in a text format without the…
-
Continue reading →: How to set time zone in codeigniter?
Placing this date_default_timezone_set(‘Asia/Kolkata’); on config.php above base url also works PHP List of Supported Time Zones application/config/config.php Another way I have found use full is if you wish to set a time zone for each user Create a MY_Controller.php create a column in your user table you can name it timezone or any…
-
Continue reading →: PHP basic introduction
PHP is an amazing and popular language! What is a PHP File? What Can PHP Do? With PHP you are not limited to output HTML. You can output images or PDF files. You can also output any text, such as XHTML and XML. Why PHP? What’s new in PHP 8?…
-
Continue reading →: History of PHP
PHP (Hypertext Preprocessor) is a popular open-source scripting language primarily used for web development. It allows developers to create dynamic and interactive websites by embedding PHP code within HTML. PHP is server-side, meaning it runs on the server and generates HTML that is sent to the client’s browser. Key features…