Skip to main content

Introduction of PHP

Introduuction about PHP...

PHP is a server side scripting language commonly used for web applications which is created by Rasmus Lerdorf in 1994. Many famous applications like facebook, Yahoo, Flickr etc developed in PHP.PHP has many frameworks like laravel, codeingniter, Cakephp etc and CMS like wordpress, joomla etc.


If we create any kind of software of website below rules is very useful.

Software Development Life Cycle
  • Requirement Gathering
  • Analysis & SRS(Software Requirement Specification)
  • Designing.
  • Implementation.
  • Testing.
  • Maintenance.

About PHP
      PHP (recursive acronym for PHP : Hypertext Preprocessor ) is widely used open source general-purpose scripting language is especially for web development and can be embedded into HTML.


Basic OOPS Concept
  • Class : class is a group of data members & member function.
  • Object :Access to data & member function can be done using object object only 
Syntax :

class ClassName extends AnotherClass
{
function __construct(argument)
{
# code...
}
}
Example :

<?php
//Created class
class abc
{
public function getData(){
echo "Hello word";
}

//Create object of a class
$obj = new abc();

//Call class function
$obj->getData();
?> 

Output :

Hello word



Comments

Popular posts from this blog

How to change Dynamic URL to Static URL in php ?

The purpose of this post is How can change dynamic URL to Static URL in PHP with Example. Below Screenshot there are dynamic URL  Step 1  Create Example.php file in project folder Example.php Hiii this is Example for How to change dynamic URL to static URL in PHP Step 2 Create .htaccess file and put below content in this file RewriteEngine On RewriteRule ^test?$ Example.php After changes and refresh the page and check below result displayed

Login, Logout and Dashboard Using PHP and with MySQL database

Login, Logout and Dashboard Using PHP and with MySQL database Steps :            1.  Create database and insert (database.php) CREATE   TABLE  IF  NOT   EXISTS   ` users `  ( ` id `   int ( 11 )  NOT   NULL ,    ` first_name `   varchar ( 200 )  NOT   NULL ,    ` last_name `   varchar ( 200 )  NOT   NULL ,    ` email `   varchar ( 100 )  NOT   NULL ,    ` password `   varchar ( 100 )  NOT   NULL ,    ` status `   varchar ( 50 )  NOT   NULL ,    ` created_at `  datetime  NOT   NULL ,    ` updated_at `  datetime  NOT   NULL ) ENGINE = InnoDB AUTO_INCREMENT =2   DEFAULT  CHARSET = latin1; -- -- Dumping data for table `users` -- INSERT   INTO   ` users `  ( ` id ` ,  ` ...

How to register in php(Sign up form in php)

How to register in php(Sign up form in php) Basically in register form is register by email, mobile number, username etc. The purpose of register(sign up) to add the user in system who get the benefits of system(Application).The logic of register(sign up) is no duplicate users allowed in application with form validation.Password and Confirm password input must be same.below are steps to develop sign up (register) in the Application. Steps: 1. Create Database CREATE   TABLE  IF  NOT   EXISTS   ` users `  ( ` id `   int ( 11 )  NOT   NULL ,    ` first_name `   varchar ( 200 )  NOT   NULL ,    ` last_name `   varchar ( 200 )  NOT   NULL ,    ` email `   varchar ( 100 )  NOT   NULL ,    ` password `   varchar ( 100 )  NOT   NULL ,    ` status `   varchar ( 50 )  NOT   NULL , ...