Want to lớn build a trang web but don"t know where to start? Creating a basic PHP.. website will put you on the road khổng lồ web development.

Bạn đang xem: What is php?

Want to learn how lớn build a basic website? Once you might have sầu started off with HTML, but these days the best solution is PHP. While you"ll need some knowledge of HTML lớn get started, PHPhường has become the optimum choice for building websites, both static & dynamic.

To learn PHP, the best way khổng lồ start is with a simple PHPhường. trang web.

Why Choose PHP for Website Development?

Various options have been available for web development over the years. It started with plain HTML, then HTML with CSS embedded or a CSS file reference. When dynamic websites came along, there were two main choices: ASP (later ASP.NET) và PHP.

According khổng lồ figures (such as this W3Techs survey) PHPhường. is far more popular, with almost 82 percent of websites using it as a server-side programming language. Compare this with just under 16 percent using ASP.

ASP.. is supported until 2022. It seems unlikely to exist beyond that in any official capađô thị, at least not as a web giải pháp công nghệ. PHPhường. (a recursive sầu acronym for PHP. Hypertext Preprocessor) has proven more successful, mainly thanks to easier integration with Linux.


Xem thêm: Phần Mềm Easeus Partition Master Technician 15, Download Easeus Partition Master 12

What You"ll Need to lớn Build a PHPhường Website

Before you get started, be sure you have a plain text editor or PHP-ready development environment installed. You can start coding PHP. with a tool as simple as Windows Notepad. Examples found in this tutorial have been written in Notepad++.

You should also have sầu a PHPhường website VPS to upload your files to lớn. This might be a remote server, or a local computer with a LAMPhường (Linux, Apabít, MySQL, PHP) or WAMP (Windows, Apabịt, MySQL, PHP) environment installed. If you"re using Windows, follow this WAMP. installation guide to get started.

Finally, you"ll need an FTPhường program lớn upload your files khổng lồ your website server. Using Windows? Try one of these free Windows FTP clients.


Whatever code you"re writing your website with, you will need to know the structure of the site before proceeding. This tutorial will show you how khổng lồ create a single page from reusable PHP. files. These might be used to lớn make additional pages, or you may choose a different approach.

Whatever shape you foresee the site developing, take the time to jot a quiông chồng plan on a piece of paper. You can then refer lớn this, perhaps khổng lồ kiểm tra the intended nội dung, or see what page khổng lồ link it to lớn.