Upload
tessa-mero
View
422
Download
0
Embed Size (px)
Citation preview
What to learn first
in phpPresentation by Tessa Mero
Hello!I am Tessa Mero
What do I do?• College Instructor• Open Source Contributor• Developer• Mentor
You can find me at:@TessaMero
serverThe first step on learning PHP is setting up a
server
Set up your server - options
Set up a web server with apache.
✖ Hosting Server (apache)or✖ Local Development Server(WAMP, LAMP, XAMPP)…
✖ http://www.easyphp.org/
Create file called test.php
C:/wamp/wwwC:/xampp/htdocs
<?php phpinfo();
?>
How does the client/server/php work?
Your Computer
(Client)PHP
Interpretor
Web Server
Start writing phpThe second step to learning PHP is to
start writing it!
Displaying text
Commenting text
Creating variables
Variables and strings
Conditional statement – if / else
Basic syntax:If (condition) { //execute }
Conditional statement – switch
Comparison operators
Arrays, loops, & string handling
Php loopingPHP Looping (built in functions)✖ for✖ foreach✖ while✖ do while
For loops and while loop example
arrays
functions
Displays as:
Okay, that’s enough!
The next step of learning PHP is extending your knowledge!
Extend your learning✖ Object Oriented
Programming (OOP)
✖ Model View Controler (MVC) structure
✖ Learn PHP Frameworks (Laravel one of the easiest to learn)
✖ Be familiar with the php.ini file in your server
✖ Review lots of cool built in PHP functions
✖ Check out PHP date functions ( my favorite )
✖ Practicing Debugging and Look into using Error Reporting
Awesome resources✖ Read books✖ Watch and Read Tutorials✖ Learn how to use an Integrated
Development Environment (IDE) ex: PHPStorm
Interactive PHP Learning: http://www.learn-php.org/
Learn PHP in a FUN way!https://www.codecademy.com/tracks/php
Check out the PHP Documentation: http://php.net/docs.php
Reach beyond your goals
✖ Find a PHP Mentor (or be a mentor)https://phpmentoring.org/
✖ Contribute to the PHP community (or other PHP related projects, like Joomla!)
http://php.net/get-involved.php
Without contributors, none of this would exist!
You have come this far on learning. There’s no going back now. ;-)
Thanks!Any questions?
You can find me at:@tessamero
http://tessamero.com