Introduction to PHP
What is PHP?
- PHP stands for PHP: Hypertext Preprocessor.
- PHP is a server-side scripting language, which means PHP is used to communicate with the server and carry out various tasks the code and scripts tells it to do.
- PHP is very useful for making dynamic and interactive websites.
- PHP is the most widely used server-side language being used today on more than 80% of all server-side websites.
- PHP is free to download and use:
- Note: downloading and installing PHP is primarily used if you plan to host yourself, such as using your own Apache servers. If you use a 3rd party host (GoDaddy, etc.), PHP is readily available – no downloading or installing necessary.
What is an example of what PHP can do?
- When you write a post on social media, PHP communicates with the database and several things are usually done (depending on the website):
- Your post is inserted into the database with a lot of different data (post title, post, timestamp, your user id, privacy setting, styling / html (if unique to the post, such as bold text), tracking information (wrote post +1, tags, categories, user id, ip address, url post was posted on), emoticon, and often times, much more information than that.
- Writing a post (for example) will often insert into multiple tables. These tables should be joined together through relationships. You’ll learn more about that in a later lesson.
PHP.net is the official authority on documentation. Visit them for any additional clarity. Remember, they can be a little tricky to understand, so… you’ll learn how to read the documentation in a later lesson.
You will be tested on your progress. Some of these quizzes may be optional; however, highly recommended to complete all quizzes because you will be required to get a 70% or higher on the final exam (timed test) to earn your certificate. Failed final exams will require you to RETAKE THE COURSE to retake the exam.
We encourage engagement among all students and instructors. Feel free to ask questions, provide answers, suggest corrections / errors / bug fixes (hopefully there aren’t any), recommendations for style / css changes, or… just to say hi and meet other students and instructors. We encourage you to introduce yourself on the first lesson of each course. This is the first page, so… introduce yourself below ⇓