{"id":52843,"date":"2025-08-11T20:24:15","date_gmt":"2025-08-11T12:24:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/52843.html"},"modified":"2025-08-11T20:24:15","modified_gmt":"2025-08-11T12:24:15","slug":"%e5%be%8c%e7%ab%af%e9%96%8b%e7%99%bc%e6%8a%80%e8%a1%93%e6%95%99%e5%ad%b8%e5%9b%9b-%e6%95%b8%e6%93%9a%e4%ba%a4%e4%ba%92%e5%bb%b6%e4%bc%b8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/52843.html","title":{"rendered":"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38"},"content":{"rendered":"<p>\u66f8\u63a5\u4e0a\u56de&#xff1a;\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u4e09) \u8868\u55ae\u63d0\u4ea4\u3001\u6578\u64da\u8655\u7406-CSDN\u535a\u5ba2<\/p>\n<p>\u5fc5\u8981\u8cc7\u6e90&#xff1a;<\/p>\n<p>trae\u4e2d\u6587\u7248\u4e0b\u8f09\u7db2\u5740:\u00a0TRAE &#8211; The Real AI Engineer<\/p>\n<p>phpStudy 2018 :\u00a0phpStudy &#8211; Windows \u4e00\u952e\u90e8\u7f72 PHP \u5f00\u53d1\u73af\u5883 \u00b7 \u5c0f\u76ae\u51fa\u54c1<\/p>\n<hr \/>\n<h2 id=\"%E5%89%8D%E8%A8%80\">\u524d\u8a00<\/h2>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5927\u5bb6\u597d&#xff0c;\u6211\u662f\u5c0f\u6953\u3002\u66f8\u63a5\u4e0a\u671f\u8aaa\u5230\u7684\u5f8c\u7aef\u6578\u64da\u4ea4\u4e92&#xff0c;\u5206\u5225\u5f9e\u6578\u64da\u63a5\u6536\u3001\u6578\u64da\u8655\u7406\u4ee5\u53ca\u6578\u64da\u5b58\u5132&#xff13;\u65b9\u9762\u89e3\u8aaa\u3002\u4f46\u5728$_FILES(\u5373\u6587\u4ef6\u4e0a\u50b3)\u7684\u89e3\u8aaa\u4e0a\u53ea\u662f\u7565\u7565\u5e36\u904e\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u5176\u5be6<span style=\"color:#fe2c24\">$_FILES<\/span>\u8ddf<span style=\"color:#ffd900\">$_GET <\/span><span style=\"color:null\">\u548c <\/span><span style=\"color:#ffd900\">$_POST<\/span>\u7684\u904b\u4f5c\u6846\u67b6\u4e26\u4e0d\u6a23&#xff0c;\u5927\u5bb6\u6703\u767c\u73fe\u53ea\u6709\u9019\u4e9b\u597d\u50cf\u4e26\u4e0d\u80fd\u7d44\u6210\u4e00\u500b\u5b8c\u6574\u7684\u6587\u4ef6\u6578\u64da\u63a5\u6536\u7cfb\u7d71\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u6240\u4ee5\u4eca\u5929\u5c0f\u7de8\u6703\u8ddf\u5927\u5bb6\u5206\u4eab<span style=\"color:#956fe7\">\u5b8c\u6574\u7684\u6587\u4ef6\u6578\u64da\u63a5\u6536\u5340\u584a<\/span>\u662f\u600e\u9ebc\u5f62\u6210&#xff0c;\u6211\u5c07\u6703\u5f9e\u4ee3\u78bc\u610f\u7fa9\u3001\u904b\u4f5c\u908f\u8f2f\u4ee5\u53ca\u8f38\u51fa\u5be6\u4f8b3\u65b9\u9762\u7d66\u5927\u5bb6\u89e3\u8aaa\u3002<\/p>\n<hr \/>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"%E5%89%8D%E8%A8%80-toc\" style=\"margin-left:0px\">\u524d\u8a00<\/p>\n<p id=\"%E4%B8%80%E3%80%81%24_FILES%E8%88%87%24_GET%C2%A0%26%20%24_POST%E7%9A%84%E4%B8%8D%E5%90%8C-toc\" style=\"margin-left:0px\">\u4e00\u3001$_FILES\u8207$_GET\u00a0&amp; $_POST\u7684\u4e0d\u540c<\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.1%C2%A0%20%E7%B7%A8%E7%A2%BC%E6%A8%A1%E5%BC%8F-toc\" style=\"margin-left:80px\">\u00a0 \u00a0 \u00a0 \u00a0 1.1\u00a0 \u7de8\u78bc\u6a21\u5f0f<\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.2%C2%A0%20%E6%95%B8%E6%93%9A%E5%AD%98%E5%84%B2%E6%96%B9%E5%BC%8F-toc\" style=\"margin-left:80px\">\u00a0 \u00a0 \u00a0 \u00a0 1.2\u00a0 \u6578\u64da\u5b58\u5132\u65b9\u5f0f<\/p>\n<p id=\"%E4%BA%8C%E3%80%81%E5%AE%8C%E6%95%B4%E6%9E%B6%E6%A7%8B-toc\" style=\"margin-left:0px\">\u4e8c\u3001\u5b8c\u6574\u67b6\u69cb<\/p>\n<p id=\"%E4%B8%89%E3%80%81%E9%80%B2%E9%9A%8E%E8%99%95%E7%90%86-toc\" style=\"margin-left:0px\">\u4e09\u3001\u9032\u968e\u8655\u7406<\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.1%20%E5%AE%89%E5%85%A8%E9%81%8E%E6%BF%BE%C2%A0(%E9%98%B2XSS)-toc\" style=\"margin-left:80px\">\u00a0 \u00a0 \u00a0 \u00a0 3.1 \u5b89\u5168\u904e\u6ffe\u00a0(\u9632XSS)<\/p>\n<p id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.2%20%E6%95%B8%E6%93%9A%E9%A9%97%E8%AD%89-toc\" style=\"margin-left:80px\">\u00a0 \u00a0 \u00a0 \u00a0 3.2 \u6578\u64da\u9a57\u8b49<\/p>\n<p id=\"%E5%9B%9B%E3%80%81%E5%B0%8F%E7%B5%90-toc\" style=\"margin-left:0px\">\u56db\u3001\u5c0f\u7d50<\/p>\n<hr \/>\n<p style=\"text-align:center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"569\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811122414-6899e0ee0f20e.png\" width=\"779\" \/>\u200b<\/p>\n<\/p>\n<h2 id=\"%E4%B8%80%E3%80%81%24_FILES%E8%88%87%24_GET%C2%A0%26%20%24_POST%E7%9A%84%E4%B8%8D%E5%90%8C\">\u4e00\u3001<span style=\"color:#fe2c24\">$_FILES<\/span>\u8207<span style=\"color:#ffd900\">$_GET\u00a0<\/span>&amp; <span style=\"color:#ffd900\">$_POST<\/span>\u7684\u4e0d\u540c<\/h2>\n<p>\u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/p>\n<h4 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.1%C2%A0%20%E7%B7%A8%E7%A2%BC%E6%A8%A1%E5%BC%8F\">\u00a0 \u00a0 \u00a0 \u00a0 1.1\u00a0 \u7de8\u78bc\u6a21\u5f0f<\/h4>\n<p>$_POST &amp; $_GET\u00a0: \u63a5\u6536\u7684\u662f\u5b57\u7b26\u4e32\u6578\u64da<\/p>\n<p>$_FILES : \u63a5\u6536\u7684\u662f2\u9032\u5236\u6587\u4ef6\u6578\u64da<\/p>\n<\/p>\n<p>\/\/get &amp; post<br \/>\n&lt;form action&#061;&#034;&#034; method&#061;&#034;get\/post&#034;&gt;<br \/>\n    &lt;input type&#061;&#034;text\/password&#034;&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p>\/\/file<br \/>\n&lt;form action&#061;&#034;&#034; method&#061;&#034;post&#034; enctype&#061;&#034;multipart\/form-data&#034;&gt;    \/\/\u6578\u64da\u63a5\u6536\u5fc5\u5b9a\u8981\u7528post<br \/>\n    &lt;input type&#061;&#034;file&#034;&gt;                         \/\/type\u5fc5\u5b9a\u662ffile<br \/>\n&lt;\/form&gt; <\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u591a\u51fa\u7684enctype&#061;&#034;multipart\/form-data&#034;\u662f\u7528\u4f86\u8f49\u63db\u7de8\u78bc\u6a21\u5f0f\u7684&#xff0c;\u4ee5\u96322\u9032\u5236\u6587\u4ef6\u88ab\u8f49\u7fa9\u4e86\u3002<\/p>\n<\/p>\n<h4 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%201.2%C2%A0%20%E6%95%B8%E6%93%9A%E5%AD%98%E5%84%B2%E6%96%B9%E5%BC%8F\">\u00a0 \u00a0 \u00a0 \u00a0 1.2\u00a0 \u6578\u64da\u5b58\u5132\u65b9\u5f0f<\/h4>\n<p>$_POST &amp; $_GET : \u4ee5\u6578\u7d44\u7684\u65b9\u5f0f\u5b58\u5132&#xff0c;\u53ef\u66f4\u6539\u4e0b\u6a19\u3002<\/p>\n<p>$_FILES : \u4ee52\u7dad\u6578\u7d44\u7684\u65b9\u5f0f\u5b58\u5132&#xff0c;<span style=\"color:#fe2c24\">\u7b2c2\u7dad<\/span>\u7684\u4e0b\u6a19\u4e0d\u53ef\u66f4\u6539<\/p>\n<p>print_r($_FILES);<br \/>\n::\u8f38\u51fa:<br \/>\nArray{<br \/>\n    [file] &#061;&gt; Array{                    \/\/\u7b2c\u4e00\u7dad&#xff0c;\u4e0b\u6a19\u53ef\u66f4\u6539<br \/>\n        [name] &#061;&gt; &#039;\u6587\u4ef6\u539f\u59cb\u540d&#039;      \/\/\u4ee5\u4e0b\u5168\u90fd\u662f\u7b2c2\u7dad&#xff0c;\u4e0b\u6a19\u4e0d\u53ef\u66f4\u6539<br \/>\n        [type] &#061;&gt; &#039;MIME\u985e\u578b&#039;<br \/>\n        [tmp_name] &#061;&gt; &#039;\u81e8\u6642\u5b58\u5132\u8def\u5f91&#039;<br \/>\n        [error] &#061;&gt; &#039;\u6587\u4ef6\u662f\u5426\u4e0a\u50b3\u6210\u529f&#039;    \/\/\u986f\u793a1,2,3,4\u5373\u70ba\u63a5\u6536\u5931\u6557&#xff0c;0\u70ba\u6210\u529f<br \/>\n        [size] &#061;&gt; &#039;\u6587\u4ef6\u5927\u5c0f(\u5b57\u7bc0)&#039;<br \/>\n            }<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811122414-6899e0ee2eb68.png\" \/><\/p>\n<\/p>\n<h2 id=\"%E4%BA%8C%E3%80%81%E5%AE%8C%E6%95%B4%E6%9E%B6%E6%A7%8B\">\u4e8c\u3001\u5b8c\u6574\u67b6\u69cb<\/h2>\n<p>[name] &#061;&gt; 1.png<br \/>\n[type] &#061;&gt; image\/png<br \/>\n[tmp_name] &#061;&gt; C:\\\\Users\\\\Administrator\\\\AppData\\\\Local\\\\Temp\\\\phpCB1D.tmp<br \/>\n[error] &#061;&gt; 0<br \/>\n[size] &#061;&gt; 205401<\/p>\n<p>if($_POST){        \/\/if(\u5047\u689d\u4ef6)&#061;&gt;\u4e0d\u6703\u57f7\u884c\u6307\u4ee4&#xff0c;$_POST\u70ba\u7a7a&#061;\u5047\u689d\u4ef6<br \/>\n\u200b$name&#061;$_FILES[&#039;file&#039;][&#039;name&#039;];<br \/>\n\u200b$tmp_name&#061;$FILES[&#039;file&#039;][&#039;tmp_name&#039;];<\/p>\n<p>&#061;&#061;\u66f4\u6539\u6e90\u6587\u4ef6\u540d\u5b57<br \/>\n    ::\u53d6\u6587\u4ef6\u5f8c\u7db4\u540d(txt  php  html\u2026)<br \/>\n\u200b\/\/strrchr($name,&#034;.&#034;);&#061;&gt;  \u6a19\u8a18$name\u6700\u53f3\u908a\u7684&#034;.&#034;<br \/>\n\u200b\/\/substr((\u2026),1)    &#061;&gt;\u5f9e\u7b2c\u4e00\u500b\u5b57\u7b26\u958b\u59cb\u622a\u53d6<br \/>\n            \/\/substr((strrchr($name,&#034;.&#034;)),1) &#061;&gt; \u5f9e$name\u6700\u53f3\u908a\u7684&#034;.&#034;\u958b\u59cb\u622a\u53d6\u5b57\u7b26<\/p>\n<p>\u200b$ext&#061;substr(strrchr($name,&#034;.&#034;),1);\/\/\u5f9e&#034;.&#034;\u5f8c\u958b\u59cb\u53d6\u5f8c\u7db4\u540d<\/p>\n<p>    \/\/\u751f\u6210\u96a8\u6a5f\u6587\u4ef6\u540d<br \/>\n\u200b$file_name&#061;time().rand().&#034;.&#034;.$ext;    \/\/time()&#061;&gt;\u8f38\u5165\u73fe\u5728\u7684\u6642\u9593 | rand()&#061;&gt;\u96a8\u6a5f\u751f\u6210\u5b57\u7b26<br \/>\n    ::e.g 1234567890.1234567890.png<\/p>\n<p>&#061;&#061;\u8d81\u81e8\u6642\u6587\u4ef6\u5b58\u5728\u7684\u6642\u5019&#xff0c;\u5c07\u5176\u6c38\u4e45\u4fdd\u5b58\u4e0b\u4f86<\/p>\n<p>\u200b$dir&#061;&#034;upload&#034;;<\/p>\n<p>\u200bif(!is_dir($dir)){    \/\/\u5224\u65b7$dir\u662f\u4e0d\u662f\u4e00\u500b\u6587\u4ef6\u593e&#xff0c;\u4e0d\u662f\u7684\u8a71\u518d\u57f7\u884c\u4e0b\u9762\u7684\u547d\u4ee4<br \/>\n\u200bmkdir($dir,0777,true);\/\/\u82e5\u6587\u4ef6\u593e\u4e0d\u5b58\u5728&#xff0c;\u6703\u5275\u5efa\u4e00\u500b\u540d\u70ba$dir \u6b0a\u9650\u5168\u958b \u7684\u9012\u6b78\u6587\u4ef6\u593e<br \/>\n\u200b}<\/p>\n<p>    \/\/\u7de8\u5beb\u6587\u4ef6\u5b58\u5132\u8def\u5f91<br \/>\n\u200b$path&#061;$dir.&#034;\/&#034;.$file_name;  \/\/  upload\/1234567890.1234567890.txt (\u8ddfC D\u76e4\u5dee\u4e0d\u591a)<\/p>\n<p>\u200bif(!move_upload_file($tmp_name,$path)){    \/\/\u82e5\u6587\u4ef6\u6c92\u79fb\u52d5\u5230\u6307\u5b9a\u8def\u5f91&#xff0c;\u57f7\u884c\u4e0b\u9762\u547d\u4ee4<br \/>\n    \/\/move_upload_file(\u6587\u4ef6\u540d,\u8981\u79fb\u52d5\u5230\u7684\u8def\u5f91)&#061;&gt; \u79fb\u52d5\u6307\u5b9a\u6587\u4ef6\u5230\u6307\u5b9a\u8def\u5f91<br \/>\n\u200becho &#034;\u4e0a\u50b3\u5931\u6557&#034;;<br \/>\n\u200bexit;\/\/\u5f80\u5f8c\u547d\u4ee4\u4e0d\u518d\u904b\u884c&#xff0c;\u5373\u505c\u6b62\u904b\u884c\u8173\u672c<br \/>\n    }<br \/>\n\u200b} <\/p>\n<p>1. \u67e5\u770b$_FILES\u662f\u5426\u70ba\u7a7a&#xff0c;\u4e0d\u70ba\u7a7a\u624d\u53ef\u4ee5\u958b\u59cb\u57f7\u884c\u4ee5\u4e0b\u547d\u4ee4<\/p>\n<p>2. \u628a\u6587\u4ef6\u5f8c\u7db4\u53d6\u4e0b\u4f86 (png)<\/p>\n<p>3. \u96a8\u6a5f\u751f\u6210\u4ee5png\u70ba\u5f8c\u7db4\u7684\u6587\u4ef6\u540d(1234567890.png)<\/p>\n<p>4. \u67e5\u770b\u6307\u5b9a\u6587\u4ef6\u593e\u662f\u5426\u5b58\u5728&#xff0c;\u4e0d\u5b58\u5728\u5247\u5275\u5efa\u4e00\u500b<\/p>\n<p>5. \u7de8\u5beb\u6587\u4ef6\u5b58\u5132\u8def\u5f91(\u6587\u4ef6\u593e\u540d&#043; \/ &#043; \u96a8\u6a5f\u751f\u6210\u7684\u6587\u4ef6\u540d)<\/p>\n<p>6. \u67e5\u770b\u6587\u4ef6\u662f\u5426\u5df1\u88ab\u79fb\u81f3\u6307\u5b9a\u8def\u5f91\u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u7c21\u55ae\u4f86\u8aaa\u5c31\u662f&#xff0c;\u66f4\u6539\u6e90\u6587\u4ef6\u540d\u5b57&#xff0c;\u4e26\u8d81\u81e8\u6642\u6587\u4ef6\u5b58\u5728\u7684\u6642\u5019&#xff0c;\u628a\u4ed6\u6c38\u4e45\u4fdd\u5b58\u4e0b\u4f86\u3002<\/p>\n<\/p>\n<h2 id=\"%E4%B8%89%E3%80%81%E9%80%B2%E9%9A%8E%E8%99%95%E7%90%86\">\u4e09\u3001\u9032\u968e\u8655\u7406<\/h2>\n<\/p>\n<h4 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.1%20%E5%AE%89%E5%85%A8%E9%81%8E%E6%BF%BE%C2%A0(%E9%98%B2XSS)\">\u00a0 \u00a0 \u00a0 \u00a0 3.1 \u5b89\u5168\u904e\u6ffe\u00a0(\u9632XSS)<\/h4>\n<p>$username &#061; htmlspecialchars($username);<br \/>\n$email &#061; htmlspecialchars($email);<br \/>\n$gender &#061; htmlspecialchars($gender); <\/p>\n<p>htmlspecialchars() : \u5c07\u7279\u6b8a\u5b57\u7b26\u8f49\u70ba HTML \u5be6\u9ad4&#xff08;\u9632 XSS&#xff09;<\/p>\n<\/p>\n<h4 id=\"%C2%A0%20%C2%A0%20%C2%A0%20%C2%A0%203.2%20%E6%95%B8%E6%93%9A%E9%A9%97%E8%AD%89\">\u00a0 \u00a0 \u00a0 \u00a0 3.2 \u6578\u64da\u9a57\u8b49<\/h4>\n<p>filter_var($email, FILTER_VALIDATE_EMAIL)    \/\/\u9a57\u8b49\u90f5\u7bb1\u683c\u5f0f<\/p>\n<p>if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {    \/\/\u904e\u6ffe\u7121\u6548\u683c\u5f0f<br \/>\n        die(&#034;\u7121\u6548\u7684\u90f5\u7bb1\u683c\u5f0f&#xff01;&#034;);    \/\/\u7d42\u6b62\u8173\u672c\u4e26\u8fd4\u56de\u932f\u8aa4\u4fe1\u606f<br \/>\n    }<\/p>\n<p>\u5176\u4ed6\u904e\u6ffe\u5668:\u00a0\u00a0FILTER_SANITIZE_STRING&#xff08;\u6e05\u7406\u5b57\u7b26\u4e32&#xff09;<\/p>\n<\/p>\n<h2 id=\"%E5%9B%9B%E3%80%81%E5%B0%8F%E7%B5%90\">\u56db\u3001\u5c0f\u7d50<\/h2>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5927\u5bb6\u53ea\u9700\u8981\u8a18\u4f4f\u5b83\u5011\u7684\u529f\u80fd\u548c\u904b\u4f5c\u908f\u8f2f\u5c31\u53ef\u4ee5\u4e86&#xff0c;\u5be6\u64cd\u53ef\u4ee5\u8b93AI\u5e6b\u5fd9\u5beb\u4ee3\u78bc&#xff0c;\u5177\u9ad4\u7684\u4e4b\u524d\u5df2\u7d93\u8aaa\u904e\u4e86&#xff0c;\u9019\u88e1\u5c31\u4e0d\u591a\u8aaa\u4e86\u3002\u63a5\u6211\u5011\u6703\u958b\u59cb\u7814\u7a76\u5f8c\u7aefpython\u3001\u6578\u64da\u5eabmysql\u4ee5\u53ca\u5206\u6790\u6f0f\u6d1e\u54c8\u3002\u5927\u5bb6\u656c\u8acb\u671f\u5f85\u4e86\u3002<\/p>\n<hr \/>\n<p>trae AI\u5beb\u4ee3\u78bc&#xff1a;\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u4e00) [\u96442025\u6700\u65b0\u53ef\u7528 phpstudy2018\u4e0b\u8f09\u93c8\u63a5] -CSDN\u535a\u5ba2<\/p>\n<p>\u6587\u4ef6\u7ba1\u7406\u5408\u96c6&#xff1a;Linux\u57fa\u790e\u547d\u4ee4\u5408\u96c6\u2014\u2014\u6587\u4ef6\u7ba1\u7406\u7bc7&#xff08;\u4e00&#xff09;\u57fa\u790e\u6587\u4ef6\u64cd\u4f5c-CSDN\u535a\u5ba2<\/p>\n<p>\u6578\u7d44 &amp; if\u6307\u4ee4&#xff1a;\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u4e8c) \u689d\u4ef6\u6307\u4ee4\u3001\u5faa\u74b0\u7d50\u69cb\u3001\u5b9a\u7fa9\u51fd\u6578-CSDN\u535a\u5ba2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf23\u6b21\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e86PHP\u4e2d\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u7684\u5b8c\u6574\u5b9e\u73b0\u6d41\u7a0b\u3002\u9996\u5148\u6bd4\u8f83\u4e86$_FILES\u4e0e$_GET\/$_POST\u7684\u4e0d\u540c\uff0c\u6307\u51fa\u6587\u4ef6\u4e0a\u4f20\u5fc5\u987b\u4f7f\u7528post\u65b9\u6cd5\u5e76\u6dfb\u52a0enctype=&quot;multipart\/form-data&quot;\u5c5e\u6027\u3002\u63a5\u7740\u8be6\u7ec6\u8bf4\u660e\u4e86$_FILES\u6570\u7ec4\u7684\u7ed3\u6784\u7279\u70b9\uff0c\u5305\u62ecname\u3001type\u3001tmp_name\u7b49\u56fa\u5b9a\u4e0b\u6807\u3002\u7136\u540e\u7ed9\u51fa\u4e86\u5b8c\u6574\u7684\u6587\u4ef6\u4e0a\u4f20\u67b6\u6784\uff1a1\uff09\u68c0\u67e5$_FILES\u975e\u7a7a\uff1b2\uff09\u63d0\u53d6\u6587\u4ef6\u540e\u7f00\uff1b3\uff09\u751f\u6210\u968f\u673a\u6587\u4ef6\u540d\uff1b4\uff09\u521b\u5efa\u5b58\u50a8\u76ee\u5f55\uff1b5\uff09\u8bbe\u7f6e\u5b58\u50a8\u8def\u5f84\uff1b6\uff09\u4f7f\u7528move_uploaded_file()\u79fb\u52a8<\/p>\n","protected":false},"author":2,"featured_media":52841,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[230,5324,292,190],"topic":[],"class_list":["post-52843","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-php","tag-web","tag-292","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/52843.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf23\u6b21\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e86PHP\u4e2d\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u7684\u5b8c\u6574\u5b9e\u73b0\u6d41\u7a0b\u3002\u9996\u5148\u6bd4\u8f83\u4e86$_FILES\u4e0e$_GET\/$_POST\u7684\u4e0d\u540c\uff0c\u6307\u51fa\u6587\u4ef6\u4e0a\u4f20\u5fc5\u987b\u4f7f\u7528post\u65b9\u6cd5\u5e76\u6dfb\u52a0enctype=&quot;multipart\/form-data&quot;\u5c5e\u6027\u3002\u63a5\u7740\u8be6\u7ec6\u8bf4\u660e\u4e86$_FILES\u6570\u7ec4\u7684\u7ed3\u6784\u7279\u70b9\uff0c\u5305\u62ecname\u3001type\u3001tmp_name\u7b49\u56fa\u5b9a\u4e0b\u6807\u3002\u7136\u540e\u7ed9\u51fa\u4e86\u5b8c\u6574\u7684\u6587\u4ef6\u4e0a\u4f20\u67b6\u6784\uff1a1\uff09\u68c0\u67e5$_FILES\u975e\u7a7a\uff1b2\uff09\u63d0\u53d6\u6587\u4ef6\u540e\u7f00\uff1b3\uff09\u751f\u6210\u968f\u673a\u6587\u4ef6\u540d\uff1b4\uff09\u521b\u5efa\u5b58\u50a8\u76ee\u5f55\uff1b5\uff09\u8bbe\u7f6e\u5b58\u50a8\u8def\u5f84\uff1b6\uff09\u4f7f\u7528move_uploaded_file()\u79fb\u52a8\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/52843.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T12:24:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811122414-6899e0ee0f20e.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52843.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/52843.html\",\"name\":\"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T12:24:15+00:00\",\"dateModified\":\"2025-08-11T12:24:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/52843.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/52843.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/52843.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/52843.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e26\u6b21\uff0c\u6536\u85cf23\u6b21\u3002\u672c\u6587\u4e3b\u8981\u8bb2\u89e3\u4e86PHP\u4e2d\u6587\u4ef6\u4e0a\u4f20\u529f\u80fd\u7684\u5b8c\u6574\u5b9e\u73b0\u6d41\u7a0b\u3002\u9996\u5148\u6bd4\u8f83\u4e86$_FILES\u4e0e$_GET\/$_POST\u7684\u4e0d\u540c\uff0c\u6307\u51fa\u6587\u4ef6\u4e0a\u4f20\u5fc5\u987b\u4f7f\u7528post\u65b9\u6cd5\u5e76\u6dfb\u52a0enctype=&quot;multipart\/form-data&quot;\u5c5e\u6027\u3002\u63a5\u7740\u8be6\u7ec6\u8bf4\u660e\u4e86$_FILES\u6570\u7ec4\u7684\u7ed3\u6784\u7279\u70b9\uff0c\u5305\u62ecname\u3001type\u3001tmp_name\u7b49\u56fa\u5b9a\u4e0b\u6807\u3002\u7136\u540e\u7ed9\u51fa\u4e86\u5b8c\u6574\u7684\u6587\u4ef6\u4e0a\u4f20\u67b6\u6784\uff1a1\uff09\u68c0\u67e5$_FILES\u975e\u7a7a\uff1b2\uff09\u63d0\u53d6\u6587\u4ef6\u540e\u7f00\uff1b3\uff09\u751f\u6210\u968f\u673a\u6587\u4ef6\u540d\uff1b4\uff09\u521b\u5efa\u5b58\u50a8\u76ee\u5f55\uff1b5\uff09\u8bbe\u7f6e\u5b58\u50a8\u8def\u5f84\uff1b6\uff09\u4f7f\u7528move_uploaded_file()\u79fb\u52a8","og_url":"https:\/\/www.wsisp.com\/helps\/52843.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T12:24:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250811122414-6899e0ee0f20e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/52843.html","url":"https:\/\/www.wsisp.com\/helps\/52843.html","name":"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T12:24:15+00:00","dateModified":"2025-08-11T12:24:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/52843.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/52843.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/52843.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5f8c\u7aef\u958b\u767c\u6280\u8853\u6559\u5b78(\u56db) \u6578\u64da\u4ea4\u4e92\u5ef6\u4f38"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=52843"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/52843\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/52841"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=52843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=52843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=52843"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=52843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}