From 9c3341dc8689130f56de36fb6812d3c2deba6e71 Mon Sep 17 00:00:00 2001 From: pengshiyu <1940607002@qq.com> Date: Tue, 19 Apr 2022 09:48:45 +0800 Subject: [PATCH] fix --- blog/php-basic/function.md | 2 +- blog/php-basic/include.md | 4 ++-- blog/php-basic/index.md | 4 ++-- blog/websocket/index.html | 39 +++++++++++++++++++++++++++++++++++++ blog/websocket/package.json | 19 ++++++++++++++++++ blog/websocket/server.js | 21 ++++++++++++++++++++ 6 files changed, 84 insertions(+), 5 deletions(-) create mode 100644 blog/websocket/index.html create mode 100644 blog/websocket/package.json create mode 100644 blog/websocket/server.js diff --git a/blog/php-basic/function.md b/blog/php-basic/function.md index 0bba9bd..70ee8bb 100644 --- a/blog/php-basic/function.md +++ b/blog/php-basic/function.md @@ -182,7 +182,7 @@ echo $hello; 1、作用域分类: -- 超全局变量:系统定义的变量(预定义变量:$\_POST) +- 超全局变量:系统定义的变量(预定义变量:`$_POST`) - 没有访问限制 - 全局变量:函数外部定义的变量 - 只允许在全局空间中使用,理论上函数内部不可用 diff --git a/blog/php-basic/include.md b/blog/php-basic/include.md index 6e0bbe5..8decfc5 100644 --- a/blog/php-basic/include.md +++ b/blog/php-basic/include.md @@ -1,4 +1,4 @@ -# PHP 文件包含 +# PHP 文件包含include/require 在一个 PHP 脚本中,去将另一个文件包含进来 @@ -19,7 +19,7 @@ 语法 -``` +```php include '文件路径'; include('文件路径'); ``` diff --git a/blog/php-basic/index.md b/blog/php-basic/index.md index 390745d..d60de13 100644 --- a/blog/php-basic/index.md +++ b/blog/php-basic/index.md @@ -16,9 +16,9 @@ 7. [PHP 常用的系统函数](blog/php-basic/system.md) -[PHP 文件包含](blog/php-basic/include.md) +8. [PHP 文件包含include/require](blog/php-basic/include.md) -[PHP 函数 function](blog/php-basic/function.md) +9. [PHP 函数 function](blog/php-basic/function.md) [PHP 错误处理 error](blog/php-basic/error.md) diff --git a/blog/websocket/index.html b/blog/websocket/index.html new file mode 100644 index 0000000..f902573 --- /dev/null +++ b/blog/websocket/index.html @@ -0,0 +1,39 @@ + + + + +
+ + + +