09 Oo Php Register

50 %
50 %
Information about 09 Oo Php Register
Technology

Published on June 27, 2009

Author: geshan

Source: slideshare.net

Description

Day 9 Simple Object oriented PHP concepts

PHP Day 09 Geshan Manandhar Developer, Young Innovations Private Limited www.geshanmanandhar.com http://www.php.net http://www.mysql.com

Classes and Objects Objects mirror real life objects. OO programming focuses on what and how of programming rather that just how. Classes are the blueprint and objects/instance are the implementation of the classes. They help us to code programs as we function in real life.

Objects mirror real life objects.

OO programming focuses on what and how of programming rather that just how.

Classes are the blueprint and objects/instance are the implementation of the classes.

They help us to code programs as we function in real life.

A simple person class <?php class person { public $name; //public by default public $height; private $pinn_number; function __construct($persons_name) { //constructor $this->name = $persons_name; } function set_name($new_name) { $this->name = $new_name; } //contd…

<?php

class person {

public $name; //public by default

public $height;

private $pinn_number;

function __construct($persons_name) {

//constructor

$this->name = $persons_name;

}

function set_name($new_name) {

$this->name = $new_name;

}

//contd…

Person Class contd. public function get_name() { return $this->name; } function set_pinn_number($new_pinn){ $this->pinn_number = $new_pinn; } function get_pinn_number(){ return $this->pinn_number; } } ?>

public function get_name() {

return $this->name;

}

function set_pinn_number($new_pinn){

$this->pinn_number = $new_pinn;

}

function get_pinn_number(){

return $this->pinn_number;

}

}

?>

Instance/object of person class <?php include(&quot;class_person.php&quot;); ?> <html> <head> <title>PHP Class Implementation</title> </head> <body> <?php $ram = new person(&quot;Ram Krishna Maharjan&quot;); $shyam = new person(&quot;Shayam Prashad Karki&quot;); $ram->set_name(&quot;Ram Kumar Maharjan&quot;); $shyam->set_name(&quot;Shyam Karki&quot;); print &quot;Ram's full name: &quot; . $ram->get_name(); print &quot;<br>Shyam's full name: &quot; . $shyam->get_name(); ?> More at http://www.killerphp.com/tutorials/object-oriented-php/

<?php include(&quot;class_person.php&quot;); ?>

<html>

<head>

<title>PHP Class Implementation</title>

</head>

<body>

<?php

$ram = new person(&quot;Ram Krishna Maharjan&quot;);

$shyam = new person(&quot;Shayam Prashad Karki&quot;);

$ram->set_name(&quot;Ram Kumar Maharjan&quot;);

$shyam->set_name(&quot;Shyam Karki&quot;);

print &quot;Ram's full name: &quot; . $ram->get_name();

print &quot;<br>Shyam's full name: &quot; . $shyam->get_name();

?> More at http://www.killerphp.com/tutorials/object-oriented-php/

Register at 000Webhost Register at 000webhost.com . Wait for the triggered email.

Register at 000webhost.com .

Wait for the triggered email.

Registration at 000Webhost

Cpanel at 000webshot

File Manger

Uploaded files form net2ftp

Or use a FTP Client Fireftp is a add on to Firefox, download at https://addons.mozilla.org/en-US/firefox/addon/684 FileZilla is a free FTP, download at http://filezilla-project.org/download.php?type=client There are other FTP clients as well I recommend above two as they are free.

Fireftp is a add on to Firefox, download at https://addons.mozilla.org/en-US/firefox/addon/684

FileZilla is a free FTP, download at http://filezilla-project.org/download.php?type=client

There are other FTP clients as well

I recommend above two as they are free.

FireFTP

Fire FTP In action

FileZilla

MYSQL Database creation

MYSQL database created

PHPMyAdmin of 000webhost

Now edit your connection file Edit your connection.php or conn_db.php file to suit the setting as provided in the registration.

Edit your connection.php or conn_db.php file to suit the setting as provided in the registration.

Access to your website http://your-registered-name.net23.net Or your .com.np.

http://your-registered-name.net23.net

Or your .com.np.

Questions

Get Started register Register at 000webhost.com Upload your files, test them on a live web server. Get Started register Register at 000webhost.com Upload your files, test them on a live web server.

Register at 000webhost.com

Upload your files, test them on a live web server.

Register at 000webhost.com

Upload your files, test them on a live web server.

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...

Related pages

PHP OOP Login Register System Part-09 (User Profile) - YouTube

PHP Object-Oriented Bangla login-register system tutorials:- In this Bangla tutorial, I discussed how to make a user profile using PHP OOP and ...
Read more

OOP Login/Register System - YouTube

PHP OOP Login/Register System: Directory Structure and Files (Part 3/23) by Codecourse. ... 09. Play next; Play now; PHP OOP Login/Register ...
Read more

REGISTER - Stainlesssupply.com

REGISTER. Email: (This will also be your Username) Confirm Email: Password: First Name: Last Name: Phone ...
Read more

PHP: spl_autoload_register - Manual

or in PHP > 5.3: > spl_autoload_register ( [ new MyNamespaceAutoloader, 'method'] ); On this way you dont have to create a variable, which is used once. up.
Read more

PHP: Classes and Objects - Manual

Using Register Globals User ... PHP 5 is very very flexible in accessing member ... specially when you work with SimpleXML classes and objects.
Read more

GitHub - panique/php-login-minimal: An extremely minimal ...

php-login-minimal - An extremely minimal login / register script in pure PHP.
Read more

Unterstütze den Club - Toooor24

Unterstütze den Club Um unser Fussball-Archiv weiter ausbauen zu können, benötigen wir Unterstützung...
Read more

Brass Band OÖ

Homepage der Brass Band Oberösterreich ... Die Register. Dirigent Ian Porthouse Soprankornett Christoph Kaindlstorfer
Read more

Register - Erklärung und Bedeutung von Redewendungen

Register Register der Redensarten; Register der Bedeutungen; Vorschlag; Links Redensarten und Redewendungen; Verwandte Themen Nachschlagewerke;
Read more