当前位置:网站首页>"PHP8 Beginner's Guide" A brief introduction to PHP
"PHP8 Beginner's Guide" A brief introduction to PHP
2022-08-05 05:11:00 【Sun Wenwen】
Id = "article_content" < td>< p data - track=1>< span style="letter - spacing: 1 px;">< strong> what is PHP < / strong>< / span>< / p>< p data - track=2>< span style="letter - spacing: 1 px;"> PHP (" PHP: Hypertext Preprocessor ", Hypertext Preprocessor acronym) is a kind of widely used open source multi-purpose scripting language, it can be embedded into HTML, especially suited for web development.< / span>< / p>< p data - track=4>< span style="letter - spacing: 1 px;"> here is a simple code examples: < / span>< / p>< pre>< code> & lt;!DOCTYPE html><html><head><title>Example</title></head><body><?PHP echo "Hi, I 'm a PHP script!";?></body></html>< / code>< / pre>< p data - track=6>< span style="letter - spacing: 1 px;"> please note that this example and other written in C or Perl language script - and use of the difference between a large number of commands to write a program to output HTML, PHP page's HTML, but in some embedded in the code to do something (in this case, output "Hi, I 'm a PHP script!").The PHP code is included at the start of a special character and terminators & lt;?PHP and?>Allows in and out of "PHP mode".< / span>< / p>< p data - track=7>< span style="letter - spacing: 1 px;"> and client-side JavaScript, PHP code is running on the server.If similar code in the example above is set up on the server, after running the script, the client can receive the result, but they don't know how the code behind the work.Even the web server can be set to make PHP to handle all HTML file, so that the user will not be able to know what did the service side.< / span>< / p>< p data - track=8>< span style="letter - spacing: 1 px;"> the biggest benefit of using PHP is that it is easy for beginners and also provide professional programmers with various advanced features.When he saw the PHP long feature list, please don't be afraid.Can quickly entry, just a few hours can write their own simple scripts.< / span>< / p>< p data - track=9>< span style="letter - spacing: 1 px;"> although the development of PHP is a server-side script for the purpose, but in fact its function far beyond this.< / span>< / p>< p data - track=10>< br>< / p>< p data - track=11>< span style="letter - spacing: 1 px;">< strong> PHP can do < / strong>< / span>< / p>< p data - track=12>< span style="letter - spacing: 1 px;"> PHP can do anything.PHP is mainly used in the server-side script, so you can use PHP to complete any other CGI program can do work, such as collect form data, generate dynamic web pages, or send/receive Cookies.But the PHP function far beyond this.< / span>< / p>< p data - track=14>< span style="letter - spacing: 1 px;">< strong> PHP script is mainly used in the following three areas: < / strong>< / span>< / p>
边栏推荐
- entry point injection
- Talk about 20 common problems in data governance
- upload upload pictures to Tencent cloud, how to upload pictures
- 【学生毕业设计】基于web学生信息管理系统网站的设计与实现(13个页面)
- 类的底层机制
- MySQL Foundation (1) - Basic Cognition and Operation
- App快速开发建设心得:小程序+自定义插件的重要性
- 浅析主流跨端技术方案
- server disk array
- Dephi reverse tool Dede exports function name MAP and imports it into IDA
猜你喜欢
随机推荐
upload upload pictures to Tencent cloud, how to upload pictures
2022牛客多校第四场C.Easy Counting Problem(EGF+NTT)
About the installation of sklearn library
请写出SparkSQL语句
Judgment statement _switch and case
jvm 三 之堆与栈
Detailed explanation of each module of ansible
[WeChat applet] WXML template syntax - conditional rendering
Analyses the mainstream across technology solutions
C#关于set()和get()方法的理解及使用
Shell(4) Conditional Control Statement
使用二维码解决固定资产管理的难题
8.04 Day35-----MVC three-tier architecture
upload上传图片到腾讯云,如何上传图片
Redis - 13. Development Specifications
结构光三维重建(二)线结构光三维重建
dedecms报错The each() function is deprecated
Analysis of Mvi Architecture
密码学系列之:PEM和PKCS7,PKCS8,PKCS12
【转】什么是etcd









