Start
Entdecken
Suche senden
Hochladen
Einloggen
Registrieren
Anzeige
Beginning PHP
Melden
Mohammed Safwat
Folgen
Student um Mansoura University
22. Jul 2009
•
0 gefällt mir
2 gefällt mir
×
Sei der Erste, dem dies gefällt
Mehr anzeigen
•
1,115 Aufrufe
Aufrufe
×
Aufrufe insgesamt
0
Auf Slideshare
0
Aus Einbettungen
0
Anzahl der Einbettungen
0
Check these out next
Ruby Insurgency
Vishnu Gopal
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
Bhavsingh Maloth
Mastering Regex in Perl
Edureka!
A Brief Introduction to Zend_Form
Jeremy Kendall
Programming language
kalasalingam university
PHP Frameworks Review - Mar 19 2015
kyphpug
Workin' on the Rails Road
Vishnu Gopal
Zero to Zend Framework in 10 minutes
Jeremy Kendall
1
von
24
Top clipped slide
Beginning PHP
22. Jul 2009
•
0 gefällt mir
2 gefällt mir
×
Sei der Erste, dem dies gefällt
Mehr anzeigen
•
1,115 Aufrufe
Aufrufe
×
Aufrufe insgesamt
0
Auf Slideshare
0
Aus Einbettungen
0
Anzahl der Einbettungen
0
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Melden
Technologie
Mohammed Safwat
Folgen
Student um Mansoura University
Anzeige
Anzeige
Anzeige
Recomendados
Php unit i
prakashvs7
38 Aufrufe
•
128 Folien
Php tutorial
Niit
7.3K Aufrufe
•
37 Folien
PHP LICTURES ..........
Rashid Ahmad
98 Aufrufe
•
20 Folien
Web programming UNIT II by Bhavsingh Maloth
Bhavsingh Maloth
787 Aufrufe
•
51 Folien
Programming paradigm and web programming
Mohammad Kamrul Hasan
2.2K Aufrufe
•
29 Folien
Php vs asp.net most valuable differences to learn and select the best one f...
Concetto Labs
15 Aufrufe
•
14 Folien
Más contenido relacionado
Presentaciones para ti
(15)
Ruby Insurgency
Vishnu Gopal
•
1.5K Aufrufe
WEB PROGRAMMING UNIT V BY BHAVSINGH MALOTH
Bhavsingh Maloth
•
2.3K Aufrufe
Mastering Regex in Perl
Edureka!
•
2K Aufrufe
A Brief Introduction to Zend_Form
Jeremy Kendall
•
987 Aufrufe
Programming language
kalasalingam university
•
451 Aufrufe
PHP Frameworks Review - Mar 19 2015
kyphpug
•
1.1K Aufrufe
Workin' on the Rails Road
Vishnu Gopal
•
1.5K Aufrufe
Zero to Zend Framework in 10 minutes
Jeremy Kendall
•
1.3K Aufrufe
Coldfusion
Ram
•
1.2K Aufrufe
php_tizag_tutorial
tutorialsruby
•
3.6K Aufrufe
C++ Restrictions for Game Programming.
Richard Taylor
•
1.3K Aufrufe
Intro to-php-19 jun10
Kathy Reid
•
1K Aufrufe
Ask the Experts: SDL Trados live Q+A webinar for freelance translators
Paul Filkin
•
1.3K Aufrufe
Advantages of golang development services & 10 most used go frameworks
Katy Slemon
•
109 Aufrufe
Php
Vineet Vats
•
1.6K Aufrufe
Similar a Beginning PHP
(20)
PHP Training In Chandigar1.docx
Excellence Academy
•
8 Aufrufe
PHP Training In Chandigarh.docx
Excellence Academy
•
14 Aufrufe
PHP Training In Chandigarh.docx
Excellence Academy
•
6 Aufrufe
unitI-Introduction to php.pptx
nehasahuji
•
4 Aufrufe
Php tutorial
sushil kumar
•
228 Aufrufe
Php tutorial
vigneswaran54
•
329 Aufrufe
Php tutorial
Nguyễn Hoà
•
1.5K Aufrufe
PHP Basics
Sasi Kumar
•
43 Aufrufe
Php ppt
Sasi Kumar
•
157 Aufrufe
PHP.docx
NithiyaNithi2
•
22 Aufrufe
Php intro
sana mateen
•
944 Aufrufe
.Net Development Services VS | PHP Development Services
Worth Studios Pvt. Ltd.
•
977 Aufrufe
Learn PHP Lacture1
ADARSH BHATT
•
1.1K Aufrufe
Applied+Web+Development+[Autosaved].pptx
voot1
•
1 Aufruf
PHP programmimg
Sharbani Bhattacharya
•
937 Aufrufe
PHP
Potter
•
252 Aufrufe
Enterprise PHP
John Coggeshall
•
2.5K Aufrufe
Phpbasics And Php Framework
shivas
•
578 Aufrufe
Federico Feroldi: PHP in Yahoo!
Francesco Fullone
•
2.7K Aufrufe
Federico Feroldi Php In Yahoo
Federico Feroldi
•
1.2K Aufrufe
Anzeige
Más de Mohammed Safwat
(6)
Why do start-ups fail?
Mohammed Safwat
•
776 Aufrufe
Unreal Technology
Mohammed Safwat
•
516 Aufrufe
Introduction to web development
Mohammed Safwat
•
3.5K Aufrufe
Web Services
Mohammed Safwat
•
836 Aufrufe
Introduction to Linux OS
Mohammed Safwat
•
10.1K Aufrufe
Asterisk ( The open source telephony )
Mohammed Safwat
•
1.1K Aufrufe
Último
(20)
University of Engineering and Technology.docx
MuhammadumairKhan74
•
0 Aufrufe
Stay Ahead of the Competition: The Advantages of Hiring a Digital Marketing E...
AlisonTaylor86
•
0 Aufrufe
在哪里可以办美国大学文凭《阿克伦大学毕业证成绩单仿制》
nukotk
•
0 Aufrufe
GAAD_EVENT_V3.pptx
SumanDamera1
•
0 Aufrufe
The Industrialist: Trends & Innovations - May 2023
accenture
•
0 Aufrufe
poweredge R7525 installation service manual.pdf
psyberdude1
•
0 Aufrufe
LangChain Intro by KeyMate.AI
OzgurOscarOzkan
•
0 Aufrufe
Chapter Three Motivation.pptx
YoomifTube
•
0 Aufrufe
Blockchain Net Zero Revolution: Transforming Heavy Industries Sustainability
Mobiloitte Technologies
•
0 Aufrufe
Akaike Pitch Deck
ShilpaRamaswamy3
•
0 Aufrufe
Delta Energy - Company Profile
bilalansari97
•
0 Aufrufe
Architecting a 35 PB distributed parallel file system for science
Speck&Tech
•
0 Aufrufe
Week_1_Intro_Internet_arch_Applications.ppt
home107
•
0 Aufrufe
IntroCommandLine.ppt
GowthamRaju15
•
0 Aufrufe
Nest.js Introduction
Takuya Tejima
•
0 Aufrufe
How Low-code is enabling Manufacturers to Reduce Costs and Drive Efficiency.pptx
RachanaJain20
•
0 Aufrufe
Cloud Computing
VICTOR MAESTRE RAMIREZ
•
0 Aufrufe
Wilab-NWDAF-datasheet.pdf
FabianToh2
•
0 Aufrufe
FME:23 for the Enterprise - A Deep Dive into Key New Features
Safe Software
•
0 Aufrufe
Feng_Gao_Presentation.pdf
FabianToh2
•
0 Aufrufe
Anzeige
Beginning PHP
Web Talk Series[2]
Beginning PHP
Contents Why PHP ? Coding. Limitations. Pros & Cons . Language constructors. OO Aspects. Fear of PHP.
Line of culture .
Why PHP ? PHP is an excellent choice for Web programming. It has many advantages over other languages, including other Weboriented languages. To get a very general understanding of how the common Web programming languages compare, let’s compare them.
PHP ASP Java Perl
Why PHP ? ASP Microsoft’s Web programming environment. It’s not a language itself because it allows the programmer to choose from a few actual languages, such as VBScript or Jscript. ASP is simple, but too simple for programs that use complex logic or algorithms. Many companies find it hard to budget for the expense of Microsoft licenses.
Why PHP ? Java Java is platform independent. It has serious downsides in development time, development cost, and execution speed. Java development is timeconsuming because projects in Java must follow strict rules (imposed by Java) that require extensive planning. Java developers are expensive to hire!
Why PHP ? Perl Perl has been around longer than PHP. Before PHP, Perl was generally accepted as the best Web programming language. You have to download separate modules to get the same functionality in Perl. This leads to problems when programs are transferred from one system to another .
Why PHP ? PHP’s primary use certainly isn’t to track résumés anymore. It has grown to be able to do that and just about anything else. PHP's common uses: • Feedback forms • Shopping carts and other types of ecommerce systems • User registration, access control, and management for online subscription services • Guest books • Discussion and message boards
Coding Creating a PHP program requires that you actually work with the source code of the file as opposed to a “what you see is what you get” (WYSIWYG) approach.
“Installing the environment and web scenario”
Coding The process you would use to create a PHP program is much the same: 1. Create your HTML file (containing text, tables, images, or sounds) and insert PHP code where desired. 2. Save your PHP file as filename.php. 3. Use an FTP program to upload your file to the Web server. 4. Point your browser to the address of the file on your Web server (suchas http://www.example.com/filename.php).
Coding <html> <head><title> Example 1/title></head> HTML <body bgcolor="white" text="black"> <h4>Chapter 1 :: Example 1</h4> <?php /* Display a text message */ echo "Hello, world! This is my first PHP program."; ?> </body> </html>
Save. Upload to web server . Test.
Coding
Coding The PHP interpreter (or parser) is the program that performs the processing mentioned previously. It reads the PHP program file and executes the commands it understands. If PHP happens to find a command it doesn’t understand, it stops parsing the file and sends an error message back to the browser. This is quite different from a compiled language, such as C or C++, which is only interpreted from a humanreadable form once.
Limitations The most important limitations are : Statement: must be correct commands. Syntax : ex: echo “Hi” > will not work. But
echo “Hi”; > will work.
Language Constructors Like the most of programming languages , but PHP has some tweaks: ● Variables & Constants. ● Program Input & Output. ●
Arithmetic and String manipulations. ● Control Structures. ● Functions. ● Classes and Objects. ● Creating dynamic contents with PHP & MySQL. ● Password protection. ● Uploading files. ● Cookies and Sessions.
Cons It's simple , so that there's no unified structure in writing code,like Java for example..! Hard to debug and maintain .. ! Hard for team oriented projects. But , developers made somethings called “Frameworks” , following some design patterns to unify the way all programmers work with.
Object Oriented Aspects PHP has the ability to “include” files within a web page. This reduces initial work and ongoing maintenance. Imagine a website contains a menu at the top of each web page, and this menu is identical throughout the site. You could cut and paste the appropriate code into every page, but this is both cumbersome and counterproductive. This is the simple OO aspect in PHP.But there's more.
Object Oriented Aspects You could summarize this approach as “include and reuse; don’t rewrite.” Objectoriented programming (OOP) is just an extension of this concept. Objects simplify web development by eliminating the need to cut,paste, and adapt existing code.
Arguments for OO PHP 1. It's just a scripting language. “Some scripting languages simply string together a series of commands and for this reason are sometimes referred to as glue”. An OO scripting language is a contradiction in terms; it’s a language that’s“getting above itself.” The limited OO capabilities of PHP 4 reinforced the view that a scripting language shouldn’t attempt to be object oriented.
Arguments for OO PHP 2.Object Orientation Is for Large Software Shops OOP is something best left to the large shops. If a number of programmers are involved in the same project, an OO approach is a necessary evil, but it’s not much use for the lone developer.
Replies OOP doesn’t replace procedural programming or make it obsolete. Nor is an OO approach always the right approach, as some OO enthusiasts might have you believe. However,some web problems require an OO solution. without a minimal understanding of the basics of OOP, you can’t make full use of the capabilities of PHP 5. Example: if you want to create a SOAP client, there is really no other way to do it than by using the SOAPClient class.
Fear of PHP Fear of PHP becoming overly complex is often a more subtly stated objection to an OO PHP. There’s no doubt that OOP can sometimes introduce unwanted complexity. This hasn’t happened with PHP, and there’s good reason to suspect that it won’t. PHP is first and foremost a web development language (which is probably why it has taken so long for PHP to adopt an OO approach).
Fear of PHP The point of object orientation in PHP is not to turn PHP into Java or something similar, but to provide the proper tools for web developers. Object orientation is another strategy for adapting to the current circumstances of “web development”.
A line of culture (KISS) : Keep IT Simple , Stupid ! There will be a learning curve for a procedural programmer adopting an OO approach to web development, In fact, you’ll probably find that some of the tasks you’re used to doing procedurally are more easily done in an OO manner.
Questions?!
Thanks!
Anzeige