PHP viết tắt của Hypertext Preprocessor, là ngôn ngữ lập trình phía server dùng để tạo trang web động.
- Khi người dùng truy cập một trang PHP, server sẽ thực thi mã PHP rồi trả về HTML cho trình duyệt.
- Khác với JavaScript chạy trên trình duyệt, PHP chạy hoàn toàn trên server trước khi gửi kết quả về cho client.
- PHP là mã nguồn mở, đa nền tảng và tích hợp tốt với các cơ sở dữ liệu như MySQL, PostgreSQL.
PHP stands for Hypertext Preprocessor.
- It's a server-side scripting language used to create dynamic web pages.
- When a user requests a PHP page, the server executes the PHP code and sends the HTML output to the browser.
- Unlike JavaScript which runs in the browser, PHP runs on the server before sending results to the client.
- It's open-source, cross-platform, and integrates seamlessly with databases like MySQL and PostgreSQL.