1. What is php
PHP, or "Hypertext Preprocessor", is a widely used open source general scripting language, especially suitable for web development and can be embedded in HTML. Its syntax leverages C, Java, and Perl and is easy to learn. The main goal of the language is to allow web developers to quickly write dynamically generated web pages. For competitors like Microsoft ASP, PHP is undoubtedly another efficient option. For example, Baidu, Taobao, 163, and Sina are all using PHP.
What
2.php can do
2.1 server script. This is the most traditional and main target area of PHP. Three things are required to do this: a PHP parser (CGI or server module), a web server, and a web browser. You need to install and configure PHP when running the web server. Then, you can use a web browser to access the output of the PHP program, that is, browse the PHP page on the server.
2,2 Command line script. You can write a PHP script and don't need any server or browser to run it. This way, only the PHP parser is needed to execute. This usage is ideal for daily running scripts that rely on cron (Unix or Linux environments) or Task Scheduler (Windows environments). These scripts can also be used to process simple text.
2.3 Writing desktop software, PHP may not be the best language for desktop applications with graphical interfaces, but if the user is very proficient in PHP and wants to use some advanced features of PHP in client applications, These programs can be written using PHP-GTK. Using this approach, you can also write cross-platform applications.
3. What kind of person is suitable for learning php
php is a simple programming language, it is easy to get started, mainly because it is used for web development, and the application environment is relatively simple (less involving low-level operations, which is also related to the original design intention of PHP). As long as you have the ambition For website development, it’s fine if you don’t reject code. But as a programmer, it is inevitable to work overtime and stay up late, and you also have to bear a certain amount of work pressure. Of course, getting started is easy, but if you want to become a real expert, you still need to practice more and more.