Sometime we installed multiple version of php on our system so it will get difficult to find php.ini file location . Let’s start with easiest way. Steps to find the php ini file on dedicated, localhost and ssh based enabled server. Then run this file in browser. As we can…
Category: Softwares
3 Ways to Remove public from URL in Laravel
Laravel comes with default server for local environment and but if run the application in apache then we need to remove the public from URL because if we serve the application through the Apache then we need to call the URLs from public directory. It can be multiple way to…
Laravel artisan command to generate controllers, Model, Components and Migrations
Laravel is robust framework of php which provides rapid development and security for low and high level projects. It have many features like Laravel Components, Validation, eloquent, migrations, artisnan security etc. Let’s have look artisan commands of laravel artisan. There is a command which gives you list of all available…
Break and Continue statements
Break and continue statements are used to change the flow of program. lets see the difference and usage of both. Break as the name implies it terminate the current loop and execute the next line of code. Continue do not terminate the loop rather then it skip the current iteration…
What is Access Modifiers ?
In object oriented programming(oops) to set the visibility of classes, variables and methods we are using access modifiers. So Access modifiers are used the encapsulation of class properties. There are three types of access modifiers in any language (Php, java or c etc. ) Private Protected Public 1. Private Access…
Disable SSH or IP bounded on any ubuntu server?
Open SSH to everyone is a security risk. we can change these settings easily in 2 minutes. let’s have quick solution on this. Open file /etc/hosts.deny with using vi or nano editor. Command : sudo vi /etc/hosts.deny then add below line to the file. sshd,sshdfwd-X11 : ALL it will look…
How to disable automatic change detection strategy in angular component?
In angular all components by default take the changes as any event occur, but sometime we disable automatic change detection strategy in angular. Thus, to detach the two way binding in component we can use changeDetection strategy in component metadata. Angular Change Detection Strategy is simple to implement using the…
How to upload multiple files in angular 12 reactive form
How to upload multiple files in angular 12 reactive form Uploading multiple files with progress in angular is too easy, you can implement it in your website using the below guideline. i will suggest to read my last post Angular file upload with post form data and php $_FILES to…
What is a traits in PHP and how to use it ?
Before PHP 5.4, there was no way to implement multiple inheritance in PHP then PHP 5.4 introduce traits as a substitute of multiple inheritance in PHP. By using the traits PHP solve the problem of Multiple Inheritance. A class only extend one class what if we wanted to use multiple…
How to upload files with form data in angular 12?
in this tutorial we will learn to upload files with form data in angular. it’s not easy to upload the files along with form data in angular in compare to JQuery and other JavaScript framework. Angular upload a form in JSON and some time it get difficult to obtain the…