expert guide for php

17
Expert Session On PHP

Upload: steve-fort

Post on 27-May-2015

173 views

Category:

Software


0 download

DESCRIPTION

Choosing PHP for website development is also integrates with a number of open source applications like Joomla, Drupal, WordPress etc..PHP along with MY SQL is being used to construct some of the most powerful database

TRANSCRIPT

Page 1: Expert guide for PHP

Expert Session On PHP

Page 2: Expert guide for PHP

Why PHP???• Fast Load Time.• Less Expensive Software.• Less Expensive Hosting.• Database Flexibility.• Increased Available Programming Talent

infobizzs.com

Page 3: Expert guide for PHP

Why HTML5???

Built-in audio and video support (without plug-in)

Enhanced form controls and attributes The Canvas (a way to draw directly on a

web page) Drag and Drop functionality Support for CSS3 (the newer and more

powerful version of CSS) More advanced features for web

developers, such as data storage and offline applications.

infobizzs.com

Page 4: Expert guide for PHP

Why CSS3???

• Animation

• Background

• Border and outline

• Box

• Color

• Content Paged Media

• Dimension

• Flexible Box

• Speech

• Table

• Text

• 2D/3D Transform

• Transition

• User-interface

• Font

• Generated content

• Grid

• Hyperlink

• Linebox

• List

• Margin

• Marquee

• Multi-column

• Padding

• Paged Media

• Positioning

• Print

• Ruby

infobizzs.com

Page 5: Expert guide for PHP

What As A Backend With PHP ???

infobizzs.com

Page 6: Expert guide for PHP

MySQLi Extension

• To correct the issues of MySQL extension, a new extension has been created for PHP5

• It supports all the latest features in MySQL server 4.1 or higher

• Features Like Maintainable, Similar Syntax, New Interface, Advanced Options, Speed , Security are supported

infobizzs.com

Page 7: Expert guide for PHP

Why JQuery???

• A library of JavaScript functions

• Features– Select and manipulate HTML– Manipulate CSS– JavaScript Effects and animations– HTML DOM traversal and modification– AJAX– Utilities

infobizzs.com

Page 8: Expert guide for PHP

Demo Example Content • jQuery

$ (‘body’) .css (‘background’, ‘#ccc’);

• JavaScript

Function changeBachground(color)

{

       Document.body.style.background = color;

}

Onload=”changeBackground (‘red’);”infobizzs.com

Page 9: Expert guide for PHP

Twitter Bootstrap

•A freely available design framework for websites and web applications•Based upon HTML5, CSS and JavaScript•Supports all major browsers (even IE7!)•Released on GitHub in August 2011

infobizzs.com

Page 10: Expert guide for PHP

Setting Templates And CSS

• Template of Bootstrap Can Be Downloaded From https://wrapbootstrap.com/

• Create Master Page For Whole Site and Then Create Sub Container Pages.

infobizzs.com

Page 11: Expert guide for PHP

Embedding Google Maps

1. Create A Simple HTML Document and save that document in root folder as per required.

2. Go to Google.co.in and search for gmaps

3. It will redirect to result link as https://www.google.co.in/maps/preview?source=tldso

4. Login using Your Google Id And Password

infobizzs.com

Page 12: Expert guide for PHP

…Google Maps

5. Search for Required Address as Per your requirement.

6. On the Down Right Corner of webpage is a setting button.

7. Enter embed Source code and paste the same in your browser. (I-Frame Source Code)

infobizzs.com

Page 13: Expert guide for PHP

Image Upload & Storing The Same On Servers

• Control To Upload A File on server is known as file upload control.

• <input type=“file” name=“f1” />

• For File Data to be transferred to server Compulsorily we need to transfer data using POST Method.

• A Encryption Type Should be given to transfers the file.

infobizzs.com

Page 14: Expert guide for PHP

…Image Upload…

• <form name=“frmup” method=“post” enctype="multipart/form-data“> </form>

• PHP Code to transfer the file on the servermove_uploaded_file($_FILES['f1']

['tmp_name'],'img/'.$_FILES['f1']['name']);Where move_uploaded_file is a System defined

function to move files on the server.$_FILES[‘f1’][‘tmp_name’] is temporary name of

file uploaded on the server.$_FILES[‘f1’][‘name’] is name of file uploaded by

the client stored in memory of the client browser.

infobizzs.com

Page 15: Expert guide for PHP

Email Verfication

• Normally Done To check Whether the user is Genuine or not.

1.Create database and table as per required.

2.Give Simple Registration Code(Email Id And Password)

infobizzs.com

Page 16: Expert guide for PHP

…Email Verification

3. Insert Data into table and Encrypt data using md5() and send to users in form of mail using mail() and base url Method.

4. When user click on the same link set status=1 to confirm activation of the user.

(Note :- Mail Can’t be send through localhost. It compulsory needs SMTP Server for the same.)

infobizzs.com

Page 17: Expert guide for PHP

Thank you

infobizzs.com