This presentation is useful for PHP beginner, it contains PHP with Xampp.
Xampp download, installation,configure and basic level of program using PHP.
At the last page of presentation few links is provided might be that will help you for higher level of programming.
1. 1st step of programming with PHP
- Kanha Sahu
PHP Language
2. About PHP
PHP is an acronym for "PHP: Hypertext Preprocessor"
PHP is a widely-used, open source scripting language
PHP is free to download and use
PHP files can contain text, HTML, CSS, JavaScript, and PHP code
PHP code are executed on the server, and the result is returned to the browser as plain HTML
PHP files have extension ".php"
PHP
PHP is an amazing and popular language!
• It is powerful enough to be at the core of the biggest blogging system on the web (WordPress)!
• It is deep enough to run the largest social network (Facebook)!
• It is also easy enough to be a beginner's first server side language!
3. Software - to debug, compile and execute php code on server/your PC
Xampp (Mac Os, Linux, Windows)
Wamp (Windows)
Lamp (Linux)
PHP Editor – to write a program
Adobe Dreamweaver
Eclipse
Notepad++
Aptana
Sublime
Browser – to view output/result
Mozilla Firefox
Google Crome
Internet Explorer
Safari
Comodo Dragon
5. Software
• API Tools or
Compiler
SRS
• System
Requirement
Specifications
Install
• Installation &
Configuration
Experiments
• Write a
Program
References
• Books, Tutorials
and Other Links
PHP
8. About XAMPP
XAMPP is an AMP stack which lets you install Apache, MySQL and
PHP in your computer together with some other useful software. It
has been designed to provide you an easy installation experience.
It’s free and available for Windows, Mac OS and Linux.
XAMPP is the most popular PHP development environment
XAMPP is a completely free, easy to install Apache distribution
containing MariaDB, PHP, and Perl. The XAMPP open source
package has been set up to be incredibly easy to install and to use.
XAMPP
About
• About Tool
Download
• Download XAMPP
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
9. Download XAMPP
https://www.apachefriends.org/download.html
https://sourceforge.net/projects/xampp/
XAMPP
About
• About Tool
Download
• Download XAMPP
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
10. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
11. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
12. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
13. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
14. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
15. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
16. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
17. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
18. Installation About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
19. Configuration
To Start XAMP
start > All Programs > Xampp > Xampp Control Panel
Apache : click start to start apache, It is useful for PHP coding, execution
MySQL: click start to start MySQL, It is useful for MySQL connectivity with PHP
Where to write a Code
By default Xampp installed in C:xampp, if you change than you cam go to
you drive:folder
drive:folderxampphtdocs<yourProjectFolder>
Example : C;xampphtdocsbasics
Creating PHP File
Use any text editor and write a php code and save it into your project folder with
“.PHP” extension. Example “index.php”
How to Execute
First start xampp apache, write a basic PHP program and save it “<filename>.php”.
Open your browser and write in URL
“localhost/<yourProjectFolder>/<yourProjectFolder>/<filename>.php”
Example : Mozzila Firefox -> localhost/basics/index.php
Press Enter.
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
XAMPP
20. Experiment
By using notepad or any other text editor write a basic program of
PHP
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Source Code - Input
PHP
21. Experiment
By using browser we can execute our PHP program
Just like c & c++, “//.. ”, “/* … */” is a comment notation
About
• About Tool
Download
• Download MinGW
Install
• Installation & Configuration
Experiments
• Write a Program
References
• Books, Tutorials and Other Links
Result - Output
PHP
22. Development of software applications is always a complex and a time consuming process.
But thanks to those high-end PHP frameworks, that developing an agile application has now
become easier and faster.
PHP Frameworks :
When we use the terminology “Framework” we are more often talking about Web application
framework . A web application framework is simply based on coding. If you are a programmer or a web
developer that loves coding you often choose a Web application framework for your projects.
Content Management System(CMS):
A CMS is a “Content management framework” and it is based on the modules rather than code. Anyone
can handle a CMS as it doesn’t require any coding knowledge. Of course programmers can also choose
a CMS as they can do their job faster.
PHP
FRAMEWORK NAME MVC PHP4 PHP5 MULTIPLE DB'S TEMPLATES
Yii
ThinkPHP
CakePHP
Codeigniter