Home / PHP

PHP

How to upgrade PHP in Xampp for Windows?

Running PHP program using XAMPP

1) Backup your htdocs folder 2) export your databases (follow this tutorial) 3) uninstall xampp 4) install the new version of xampp 5) replace the htdocs folder that you have backed up 6) Import your databases you had exported before

Read More »

How to install and configure downloaded Laravel Project on localhost

Open command prompt go to project directory and update composer using this command : composer update . Rename .env.example file to .env Change database name, user name and password. Go to app/Providers/AppServiceProviders.php and add following code in boot function: Schema::defaultStringLength(191); Now migrate database using this command: php artisan migrate Run …

Read More »

How To Install Laravel Framework on Your Computer

install laravel using xampp

Install Laravel 5 on Your Computer using XAMPP Laravel is an open source and free PHP framework. Laravel is intended to develop web applications using MVC pattern. Laravel is created by Taylor Otwell . Laravel is one of the most popular PHP framework as of March 2015. Other PHP frameworks are …

Read More »

Program To Find Prime Number in PHP

Prime Number in PHP

A Program To Find Prime Number in PHP A Prime Number is a whole number greater than 1 , which can only be divided by itself and 1. Some prime numbers are : 3, 5, 7, 11 ,13,17, 19 ,23, and 111. These numbers can only be divided by 1 …

Read More »

PHP Variables and Data Types and Getting Output

PHP variables

PHP Variables In all programming languages variables are containers which store information or data. For example if you want to store a number you have to store it in a variable. If you are familiar with C or C++ language then In C++ variables are declared with data type before …

Read More »

Learn How to Connect PHP with MySQL Database and Create Database Table

Create MySQL Database using PHP

Connect PHP with MySQL Database and Create Database Table There are three steps to connect PHP with MySQL Database and Create Database Table Step 1: Establish Database Connection First of all you have to establish database connection. For this use this query: mysql_connect("Server name here ","user name","password"); If you have …

Read More »

Introduction and Installing PHP on Local Host

Running PHP program using XAMPP

PHP Introduction and Installation PHP is the most popular server scripting language. It was created by Rasmus Lardof in 1994. Initially it was designed for web development but now it is also used for general purpose programming language. PHP initially stands for Personal Home Page now it is acronym for …

Read More »