An intuitive brief note of the lecture content and the slides. I got 1.3 in the exam with this note and hope you will find it helpful for your review before the exam.
Ch1. The Internet
Ch2. The Internet protocol stack
Ch3. Web Servers
Ch4. HTML
Ch5. Apache and PHP
Ch6. Databases
Ch7. Databases and PHP
Ch8. Business Logic and JavaScript
Ch9. Security
Ch5. Apache and PHP
Previous chap.: simple web server using HTML + how HTTP request/response look like.
Main focus: Real web server in connection with PHP as server-side language.
Questions:
- PHP and what we can do with it
- Our booking page when: PHP + HTML pages created earlier.
3-Tier-Architecture: PHP can create both (1) Business Logic and (2) Frontend.
(In this course, we use XAMPP, a software package containing Apache, MariaDB/MySQL, PHP
and Perl).
I. Personal Home Page (PHP): server-side scripting language for web development
1. Is an interpreter language (different from comiler language)
Interpreter language vs compiler language:
Interpreters and compilers are very similar in structure.
The main difference is that an interpreter directly executes the instructions in the source
programming language while a compiler translates those instructions into efficient machine
code. An interpreter will typically generate an efficient intermediate representation and
immediately evaluate it.
What is a compiler?
The simplest definition of a compiler is a program that translates code written in a high-level
programming language (like JavaScript or Java) into low-level code (like Assembly) directly
executable by the computer or another program such as a virtual machine.
2. PHP file: PHP code is executed on the server, result: returned to the browser
PHP can:
- generate dynamic page content
- create, open, read, write, delete, and close files on server
- collect form data
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller sonphan. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $3.25. You're not tied to anything after your purchase.