Category: PHP

Run Laravel project without artisan in WAMP server

How we can run Laravel projects normally with WAMP server without using artisan serve ? Just follow the below steps: 1. Create your Laravel project in “wamp\www\” 2. Uncomment following line in “\bin\apache\apache2.x.x\conf\httpd.conf”

...

Different types of errors in PHP

Different types of errors in PHP

Basically there are four types of runtime errors in PHP. The error message is sent to the browser with filename, line number and a message describing the error. Different type of errors are as...

Run PHP applications on IIS Server

Using FastCGI to Host PHP Applications on IIS Make sure you get the FastCGI extension for IIS 6.0 or IIS 7.0. It is the single most important thing you can have when running PHP...

Data Types in PHP

PHP has a total of eight data types which we use to construct our variables to store data of different types. PHP supports the following data types: String : are sequences of characters, like...

How to send an email using PHP

How to send an email using PHP

You can use PHP’s mail() function to send emails directly from a script. Remember mail function will not work in Local server. Syntax

Basic mail function

Send an email with extra headers...

MySql Connection using PHP

PHP provides mysql_connect() function to open a database connection. Syntax: resource mysql_connect(servername,username,password); servername : The host name running database server. If not specified, then default value is localhost. username : The username accessing the...

Get started with PHP

Get started with PHP

To write and test your PHP script you will need a server environment. PHP is a server-side scripting language, so you either have to get some web space from a hosting company that supports...

How to make an AJAX call?

What is AJAX? AJAX or Asynchronous JavaScript And XML allows web pages to ne updated asynchronously by exchanging data behind the scenes. Which means, its possible to update parts of a web page without...

PHP Arrays

What is an Array? An array is a special variable stores multiple values under a single name at a time.

Create an Array The function array() is used to create an array...