{"id":79568,"date":"2026-03-02T14:42:18","date_gmt":"2026-03-02T06:42:18","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79568.html"},"modified":"2026-03-02T14:42:18","modified_gmt":"2026-03-02T06:42:18","slug":"%e5%86%9b%e5%b7%a5%e7%a7%91%e7%a0%94%e5%b9%b3%e5%8f%b0%e5%a6%82%e4%bd%95%e7%94%a8htmlphp%e5%ae%9e%e7%8e%b0%e5%ae%9e%e9%aa%8c%e8%bf%87%e7%a8%8b%e8%a7%86%e9%a2%91%e7%9a%84%e5%88%86%e7%89%87%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79568.html","title":{"rendered":"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f"},"content":{"rendered":"<p>\u5f00\u53d1\u8005\u65e5\u8bb0 &#8211; \u5927\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u5f00\u53d1\u5b9e\u5f55 \u65e5\u671f&#xff1a;2023\u5e7411\u670815\u65e5 \u5929\u6c14&#xff1a;\u9634<\/p>\n<h4>\u9879\u76ee\u80cc\u666f\u4e0e\u9700\u6c42\u68b3\u7406<\/h4>\n<p>\u4f5c\u4e3a\u6c5f\u82cf\u7684\u4e00\u540d\u72ec\u7acb\u5f00\u53d1\u8005&#xff0c;\u8fd1\u671f\u627f\u63a5\u4e86\u4e00\u4e2a\u4f01\u4e1a\u7ea7\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u9879\u76ee&#xff0c;\u6838\u5fc3\u9700\u6c42\u5982\u4e0b&#xff1a;<\/p>\n<li>\u5927\u6587\u4ef6\u652f\u6301&#xff1a;\u5355\u6587\u4ef620GB&#xff0c;\u9700\u517c\u5bb9\u6587\u4ef6\u5939\u4e0a\u4f20&#xff08;\u4fdd\u7559\u5c42\u7ea7\u7ed3\u6784&#xff09;\u3002<\/li>\n<li>\u65ad\u70b9\u7eed\u4f20&#xff1a;\u8de8\u4f1a\u8bdd\u3001\u8de8\u8bbe\u5907&#xff08;\u91cd\u542f\u7535\u8111\u540e\u4ecd\u53ef\u6062\u590d&#xff09;\u3002<\/li>\n<li>\u5168\u5e73\u53f0\u517c\u5bb9&#xff1a;Windows\/macOS\/Linux&#xff0c;\u6d4f\u89c8\u5668\u8986\u76d6IE8\u5230Chrome\/Firefox\/Safari\u7b49\u3002<\/li>\n<li>\u6280\u672f\u6808&#xff1a;\n<ul>\n<li>\u524d\u7aef&#xff1a;Vue3 &#043; WebUploader&#xff08;\u6216H5 API&#xff09;<\/li>\n<li>\u540e\u7aef&#xff1a;PHP &#043; MySQL&#xff08;\u8bb0\u5f55\u5206\u7247\u4fe1\u606f&#xff09;<\/li>\n<li>\u5b58\u50a8&#xff1a;\u534e\u4e3a\u4e91OBS&#xff08;\u5bf9\u8c61\u5b58\u50a8&#xff09;<\/li>\n<\/ul>\n<\/li>\n<li>\u7279\u6b8a\u8981\u6c42&#xff1a;\u514d\u8d39\u5f00\u6e90\u4ee3\u7801\u30017\u00d724\u5c0f\u65f6\u6280\u672f\u652f\u6301&#xff08;\u901a\u8fc7QQ\u7fa4374992201&#xff09;\u3002<\/li>\n<h4>\u6280\u672f\u9009\u578b\u4e0e\u6311\u6218<\/h4>\n<h5>1. \u4e0a\u4f20\u7ec4\u4ef6\u9009\u62e9<\/h5>\n<ul>\n<li>WebUploader&#xff1a;\u517c\u5bb9IE8&#043;&#xff0c;\u652f\u6301\u5206\u7247\u3001\u65ad\u70b9\u7eed\u4f20&#xff0c;\u4f46\u9700\u624b\u52a8\u5c01\u88c5\u6587\u4ef6\u5939\u89e3\u6790\u903b\u8f91\u3002<\/li>\n<li>H5 File API&#xff1a;\u73b0\u4ee3\u6d4f\u89c8\u5668\u652f\u6301\u826f\u597d&#xff0c;\u4f46IE8\/9\u9700Polyfill&#xff0c;\u4e14\u6587\u4ef6\u5939\u4e0a\u4f20\u9700\u4f9d\u8d56webkitdirectory&#xff08;\u975e\u6807\u51c6&#xff09;\u3002 \u51b3\u7b56&#xff1a;\u4ee5WebUploader\u4e3a\u4e3b&#xff0c;H5\u4f5c\u4e3a\u964d\u7ea7\u65b9\u6848&#xff0c;\u901a\u8fc7User-Agent\u5224\u65ad\u6d4f\u89c8\u5668\u7c7b\u578b\u52a8\u6001\u5207\u6362\u3002<\/li>\n<\/ul>\n<h5>2. \u65ad\u70b9\u7eed\u4f20\u8bbe\u8ba1<\/h5>\n<ul>\n<li>\u5206\u7247\u5b58\u50a8&#xff1a;\u5c06\u5927\u6587\u4ef6\u5207\u5206\u4e3a5MB\u5206\u7247&#xff0c;\u4e0a\u4f20\u65f6\u8bb0\u5f55\u5df2\u5b8c\u6210\u7684\u5206\u7247\u5e8f\u53f7\u3002<\/li>\n<li>\u8fdb\u5ea6\u6301\u4e45\u5316&#xff1a;\n<ul>\n<li>\u524d\u7aef&#xff1a;\u4f7f\u7528localStorage\u6216IndexedDB\u5b58\u50a8\u4e34\u65f6\u8fdb\u5ea6&#xff08;\u8de8\u4f1a\u8bdd&#xff09;\u3002<\/li>\n<li>\u540e\u7aef&#xff1a;MySQL\u8868\u8bb0\u5f55\u6587\u4ef6\u552f\u4e00\u6807\u8bc6&#xff08;MD5&#xff09;\u3001\u603b\u5206\u7247\u6570\u3001\u5df2\u4e0a\u4f20\u5206\u7247\u5217\u8868\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8de8\u8bbe\u5907\u6062\u590d&#xff1a;\u901a\u8fc7\u6587\u4ef6MD5\u6821\u9a8c\u5339\u914d\u5386\u53f2\u8bb0\u5f55&#xff0c;\u4ece\u534e\u4e3a\u4e91OBS\u5408\u5e76\u5df2\u4e0a\u4f20\u5206\u7247\u3002<\/li>\n<\/ul>\n<h5>3. \u6587\u4ef6\u5939\u4e0a\u4f20\u5b9e\u73b0<\/h5>\n<ul>\n<li>WebUploader\u6269\u5c55&#xff1a;\u76d1\u542cdirectory\u4e8b\u4ef6&#xff0c;\u9012\u5f52\u89e3\u6790\u6587\u4ef6\u5939\u7ed3\u6784&#xff0c;\u751f\u6210\u6241\u5e73\u5316\u7684\u6587\u4ef6\u8def\u5f84\u5217\u8868&#xff08;\u5982\/parent\/child\/file.txt&#xff09;\u3002<\/li>\n<li>\u540e\u7aef\u5904\u7406&#xff1a;\u63a5\u6536\u8def\u5f84\u4fe1\u606f&#xff0c;\u5728\u534e\u4e3a\u4e91OBS\u4e2d\u6309\u539f\u8def\u5f84\u521b\u5efa\u7a7a\u6587\u4ef6\u5939&#xff08;\u901a\u8fc7putObject\u8bbe\u7f6eContent-Type: application\/directory&#xff09;\u3002<\/li>\n<\/ul>\n<h4>\u6838\u5fc3\u4ee3\u7801\u5b9e\u73b0<\/h4>\n<h5>\u524d\u7aef&#xff08;Vue3 &#043; WebUploader&#xff09;<\/h5>\n<p><span class=\"token comment\">\/\/ src\/components\/Uploader.vue<\/span><br \/>\n<span class=\"token keyword\">import<\/span> WebUploader <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;webuploader&#039;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token string\">&#039;webuploader\/dist\/webuploader.css&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token function\">mounted<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> uploader <span class=\"token operator\">&#061;<\/span> WebUploader<span class=\"token punctuation\">.<\/span><span class=\"token function\">create<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token literal-property property\">swf<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\/path\/to\/webuploader.swf&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ IE8\/9\u517c\u5bb9<\/span><br \/>\n      <span class=\"token literal-property property\">server<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;\/api\/upload&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token literal-property property\">chunked<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token literal-property property\">chunkSize<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">5<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">1024<\/span> <span class=\"token operator\">*<\/span> <span class=\"token number\">1024<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ 5MB\u5206\u7247<\/span><br \/>\n      <span class=\"token literal-property property\">formData<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token literal-property property\">fileMd5<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u901a\u8fc7\u540e\u7aef\u63a5\u53e3\u9884\u5148\u8ba1\u7b97<\/span><br \/>\n        <span class=\"token literal-property property\">isDir<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token comment\">\/\/ \u6807\u8bb0\u662f\u5426\u4e3a\u6587\u4ef6\u5939<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token literal-property property\">files<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token comment\">\/\/ \u5b58\u50a8\u6587\u4ef6\u5939\u7ed3\u6784<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u76d1\u542c\u6587\u4ef6\u5939\u9009\u62e9&#xff08;\u4ec5\u73b0\u4ee3\u6d4f\u89c8\u5668&#xff09;<\/span><br \/>\n    document<span class=\"token punctuation\">.<\/span><span class=\"token function\">getElementById<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;filePicker&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">addEventListener<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;change&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">e<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> files <span class=\"token operator\">&#061;<\/span> e<span class=\"token punctuation\">.<\/span>target<span class=\"token punctuation\">.<\/span>files<span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>files<span class=\"token punctuation\">.<\/span>length <span class=\"token operator\">&amp;&amp;<\/span> files<span class=\"token punctuation\">[<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>webkitRelativePath<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u9012\u5f52\u89e3\u6790\u6587\u4ef6\u5939<\/span><br \/>\n        <span class=\"token keyword\">const<\/span> parseDir <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>file<span class=\"token punctuation\">,<\/span> path <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token keyword\">const<\/span> fullPath <span class=\"token operator\">&#061;<\/span> path <span class=\"token operator\">&#043;<\/span> file<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">;<\/span><br \/>\n          <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>file<span class=\"token punctuation\">.<\/span>isDirectory<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token comment\">\/\/ \u6a21\u62df\u6587\u4ef6\u5939\u4e0a\u4f20&#xff08;\u5b9e\u9645\u9700\u540e\u7aef\u652f\u6301&#xff09;<\/span><br \/>\n            <span class=\"token keyword\">return<\/span><span class=\"token punctuation\">;<\/span><br \/>\n          <span class=\"token punctuation\">}<\/span><br \/>\n          uploader<span class=\"token punctuation\">.<\/span><span class=\"token function\">addFiles<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token literal-property property\">name<\/span><span class=\"token operator\">:<\/span> file<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token literal-property property\">relativePath<\/span><span class=\"token operator\">:<\/span> fullPath<span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token literal-property property\">size<\/span><span class=\"token operator\">:<\/span> file<span class=\"token punctuation\">.<\/span>size<span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token literal-property property\">type<\/span><span class=\"token operator\">:<\/span> file<span class=\"token punctuation\">.<\/span>type<br \/>\n          <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        Array<span class=\"token punctuation\">.<\/span><span class=\"token function\">from<\/span><span class=\"token punctuation\">(<\/span>files<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">forEach<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">file<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token function\">parseDir<\/span><span class=\"token punctuation\">(<\/span>file<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u65ad\u70b9\u7eed\u4f20&#xff1a;\u4ecelocalStorage\u52a0\u8f7d\u8fdb\u5ea6<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> resumeData <span class=\"token operator\">&#061;<\/span> localStorage<span class=\"token punctuation\">.<\/span><span class=\"token function\">getItem<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;upload_progress&#039;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>resumeData<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> <span class=\"token punctuation\">{<\/span> fileMd5<span class=\"token punctuation\">,<\/span> chunks <span class=\"token punctuation\">}<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token constant\">JSON<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">parse<\/span><span class=\"token punctuation\">(<\/span>resumeData<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      uploader<span class=\"token punctuation\">.<\/span><span class=\"token function\">option<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;formData&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span> fileMd5<span class=\"token punctuation\">,<\/span> <span class=\"token literal-property property\">isDir<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u8df3\u8fc7\u5df2\u4e0a\u4f20\u7684\u5206\u7247&#xff08;\u9700\u540e\u7aef\u914d\u5408\u6821\u9a8c&#xff09;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u4e0a\u4f20\u5b8c\u6210\u5408\u5e76\u5206\u7247<\/span><br \/>\n    uploader<span class=\"token punctuation\">.<\/span><span class=\"token function\">on<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;uploadSuccess&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">file<span class=\"token punctuation\">,<\/span> response<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>needMerge<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">fetch<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;\/api\/merge&#039;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n          <span class=\"token literal-property property\">method<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;POST&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n          <span class=\"token literal-property property\">body<\/span><span class=\"token operator\">:<\/span> <span class=\"token constant\">JSON<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">stringify<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span> <span class=\"token literal-property property\">fileMd5<\/span><span class=\"token operator\">:<\/span> response<span class=\"token punctuation\">.<\/span>fileMd5 <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h5>\u540e\u7aef&#xff08;PHP &#043; MySQL&#xff09;<\/h5>\n<p><span class=\"token comment\">\/\/ api\/upload.php<\/span><br \/>\n<span class=\"token function\">prepare<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string double-quoted-string\">&#034;INSERT INTO upload_chunks (file_md5, chunk_index, uploaded_at) VALUES (?, ?, NOW())<br \/>\n                      ON DUPLICATE KEY UPDATE updated_at &#061; NOW()&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token variable\">$stmt<\/span><span class=\"token operator\">-&gt;<\/span><span class=\"token function\">execute<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token variable\">$fileMd5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$chunkIndex<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u4e0a\u4f20\u5206\u7247\u5230\u534e\u4e3a\u4e91OBS<\/span><br \/>\n<span class=\"token variable\">$obsClient<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name class-name-fully-qualified\"><span class=\"token punctuation\">\\\\<\/span>OBS<span class=\"token punctuation\">\\\\<\/span>ObsClient<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token string single-quoted-string\">&#039;key&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token string single-quoted-string\">&#039;your-access-key&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string single-quoted-string\">&#039;secret&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token string single-quoted-string\">&#039;your-secret-key&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string single-quoted-string\">&#039;endpoint&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token string single-quoted-string\">&#039;obs.cn-east-3.myhuaweicloud.com&#039;<\/span><br \/>\n<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token variable\">$obsPath<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string double-quoted-string\">&#034;uploads\/<span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span><span class=\"token variable\">$fileMd5<\/span><span class=\"token punctuation\">}<\/span><\/span>\/chunk_<span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span><span class=\"token variable\">$chunkIndex<\/span><span class=\"token punctuation\">}<\/span><\/span>&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token variable\">$obsClient<\/span><span class=\"token operator\">-&gt;<\/span><span class=\"token function\">putObject<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token string single-quoted-string\">&#039;Bucket&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token string single-quoted-string\">&#039;your-bucket&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string single-quoted-string\">&#039;Key&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token variable\">$obsPath<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string single-quoted-string\">&#039;SourceFile&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token variable\">$_FILES<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string single-quoted-string\">&#039;file&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string single-quoted-string\">&#039;tmp_name&#039;<\/span><span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u68c0\u67e5\u662f\u5426\u6240\u6709\u5206\u7247\u5df2\u4e0a\u4f20<\/span><br \/>\n<span class=\"token variable\">$chunksCount<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token variable\">$pdo<\/span><span class=\"token operator\">-&gt;<\/span><span class=\"token function\">query<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string double-quoted-string\">&#034;SELECT COUNT(*) FROM upload_chunks WHERE file_md5 &#061; &#039;<span class=\"token interpolation\"><span class=\"token punctuation\">{<\/span><span class=\"token variable\">$fileMd5<\/span><span class=\"token punctuation\">}<\/span><\/span>&#039;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">-&gt;<\/span><span class=\"token function\">fetchColumn<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token variable\">$totalChunks<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token variable\">$_POST<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string single-quoted-string\">&#039;totalChunks&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u524d\u7aef\u4f20\u9012\u603b\u5206\u7247\u6570<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token variable\">$chunksCount<\/span> <span class=\"token operator\">&#061;&#061;&#061;<\/span> <span class=\"token variable\">$totalChunks<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">echo<\/span> <span class=\"token function\">json_encode<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string single-quoted-string\">&#039;needMerge&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token constant boolean\">true<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string single-quoted-string\">&#039;fileMd5&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token variable\">$fileMd5<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">else<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">echo<\/span> <span class=\"token function\">json_encode<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string single-quoted-string\">&#039;success&#039;<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token constant boolean\">true<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token operator\">?<\/span><span class=\"token operator\">&gt;<\/span><\/p>\n<h5>MySQL\u8868\u7ed3\u6784<\/h5>\n<p><span class=\"token keyword\">CREATE<\/span> <span class=\"token keyword\">TABLE<\/span> upload_chunks <span class=\"token punctuation\">(<\/span><br \/>\n    id <span class=\"token keyword\">INT<\/span> <span class=\"token keyword\">AUTO_INCREMENT<\/span> <span class=\"token keyword\">PRIMARY<\/span> <span class=\"token keyword\">KEY<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    file_md5 <span class=\"token keyword\">VARCHAR<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">32<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">NOT<\/span> <span class=\"token boolean\">NULL<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    chunk_index <span class=\"token keyword\">INT<\/span> <span class=\"token operator\">NOT<\/span> <span class=\"token boolean\">NULL<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    uploaded_at <span class=\"token keyword\">DATETIME<\/span> <span class=\"token keyword\">DEFAULT<\/span> <span class=\"token keyword\">CURRENT_TIMESTAMP<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token keyword\">UNIQUE<\/span> <span class=\"token keyword\">KEY<\/span> <span class=\"token punctuation\">(<\/span>file_md5<span class=\"token punctuation\">,<\/span> chunk_index<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<h4>\u6d4b\u8bd5\u4e0e\u4f18\u5316<\/h4>\n<li>\u517c\u5bb9\u6027\u6d4b\u8bd5&#xff1a;\n<ul>\n<li>IE8&#xff1a;\u9700\u5f15\u5165es5-shim\u548cjson2.js\u3002<\/li>\n<li>\u6587\u4ef6\u5939\u4e0a\u4f20&#xff1a;\u5728Chrome\u4e2d\u6d4b\u8bd5webkitRelativePath&#xff0c;IE\u4f7f\u7528ActiveX\u6a21\u62df&#xff08;\u9700\u7528\u6237\u6388\u6743&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6027\u80fd\u4f18\u5316&#xff1a;\n<ul>\n<li>\u5206\u7247\u5e76\u53d1\u4e0a\u4f20&#xff08;WebUploader\u9ed8\u8ba4\u652f\u63013\u4e2a\u5e76\u53d1&#xff09;\u3002<\/li>\n<li>\u534e\u4e3a\u4e91OBS\u542f\u7528CDN\u52a0\u901f\u4e0b\u8f7d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u65ad\u70b9\u7eed\u4f20\u9a8c\u8bc1&#xff1a;\n<ul>\n<li>\u624b\u52a8\u7ec8\u6b62\u8fdb\u7a0b\u540e&#xff0c;\u91cd\u542f\u4e0a\u4f20\u65f6\u8df3\u8fc7\u5df2\u5b8c\u6210\u7684\u5206\u7247\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>\u540e\u7eed\u8ba1\u5212<\/h4>\n<li>\u5b8c\u5584QQ\u7fa4\u6280\u672f\u652f\u6301\u6587\u6863&#xff0c;\u63d0\u4f9b\u5e38\u89c1\u95ee\u9898\u89e3\u7b54&#xff08;FAQ&#xff09;\u3002<\/li>\n<li>\u5f00\u6e90\u4ee3\u7801\u81f3GitHub&#xff0c;\u9644\u8be6\u7ec6\u90e8\u7f72\u8bf4\u660e\u3002<\/li>\n<li>\u8003\u8651\u589e\u52a0WebSocket\u5b9e\u65f6\u8fdb\u5ea6\u901a\u77e5\u529f\u80fd\u3002<\/li>\n<p>\u4eca\u65e5\u603b\u7ed3&#xff1a;\u6838\u5fc3\u529f\u80fd\u5df2\u8dd1\u901a&#xff0c;\u4f46IE\u517c\u5bb9\u6027\u548c\u6587\u4ef6\u5939\u89e3\u6790\u4ecd\u9700\u6253\u78e8\u3002\u6b22\u8fce\u5927\u795e\u52a0\u5165QQ\u7fa4\u4ea4\u6d41\u4f18\u5316\u65b9\u6848&#xff01;<\/p>\n<hr \/>\n<p>&#xff08;\u65e5\u8bb0\u7ed3\u675f&#xff09;<\/p>\n<p>\u6ce8&#xff1a;\u5b9e\u9645\u9879\u76ee\u4e2d\u9700\u8865\u5145\u5b89\u5168\u6821\u9a8c&#xff08;\u5982\u6587\u4ef6\u7c7b\u578b\u767d\u540d\u5355\u3001\u5206\u7247\u7b7e\u540d\u9632\u7be1\u6539&#xff09;&#xff0c;\u4ee3\u7801\u4ec5\u4e3a\u793a\u4f8b\u6846\u67b6&#xff0c;\u9700\u6839\u636e\u4e1a\u52a1\u9700\u6c42\u8c03\u6574\u3002<\/p>\n<h2>\u5b89\u88c5\u73af\u5883<\/h2>\n<p>PHP:7.2.14 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064215-69a5314768c50.png\" alt=\"Alt\" \/><\/p>\n<h2>\u8c03\u6574\u5757\u5927\u5c0f<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064215-69a53147945f6.png\" alt=\"Alt\" \/><\/p>\n<h2>NOSQL<\/h2>\n<p>NOSQL\u4e0d\u9700\u8981\u4efb\u4f55\u914d\u7f6e&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u6d4b\u8bd5 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064215-69a53147d9593.png\" alt=\"Alt\" \/><\/p>\n<h2>SQL<\/h2>\n<h3>\u521b\u5efa\u6570\u636e\u5e93<\/h3>\n<p>\u60a8\u53ef\u4ee5\u76f4\u63a5\u590d\u5236\u811a\u672c\u8fdb\u884c\u521b\u5efa <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064215-69a53147ebff4.png\" alt=\"Alt\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064216-69a5314809da8.png\" alt=\"Alt\" \/><\/p>\n<h3>\u914d\u7f6e\u6570\u636e\u5e93\u8fde\u63a5<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064216-69a5314817099.png\" alt=\"Alt\" \/><\/p>\n<h2>\u5b89\u88c5\u4f9d\u8d56<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064216-69a531483c880.png\" alt=\"Alt\" \/><\/p>\n<h2>\u8bbf\u95ee\u9875\u9762\u8fdb\u884c\u6d4b\u8bd5<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064216-69a531487a116.png\" alt=\"Alt\" \/><\/p>\n<h2>\u6570\u636e\u8868\u4e2d\u7684\u6570\u636e<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064216-69a531488c2b6.png\" alt=\"Alt\" \/><\/p>\n<h2>\u6548\u679c\u9884\u89c8<\/h2>\n<h3>\u6587\u4ef6\u4e0a\u4f20<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064216-69a53148bca40.gif\" alt=\"\u6587\u4ef6\u4e0a\u4f20\" \/><\/p>\n<h3>\u6587\u4ef6\u5237\u65b0\u7eed\u4f20<\/h3>\n<p>\u652f\u6301\u79bb\u7ebf\u4fdd\u5b58\u6587\u4ef6\u8fdb\u5ea6&#xff0c;\u5728\u5173\u95ed\u6d4f\u89c8\u5668&#xff0c;\u5237\u65b0\u6d4f\u89c8\u5668\u540e\u8fdb\u884c\u4e0d\u4e22\u5931&#xff0c;\u4ecd\u7136\u80fd\u591f\u7ee7\u7eed\u4e0a\u4f20 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064217-69a531491b878.gif\" alt=\"\u6587\u4ef6\u7eed\u4f20\" \/><\/p>\n<h3>\u6587\u4ef6\u5939\u4e0a\u4f20<\/h3>\n<p>\u652f\u6301\u4e0a\u4f20\u6587\u4ef6\u5939\u5e76\u4fdd\u7559\u5c42\u7ea7\u7ed3\u6784&#xff0c;\u540c\u6837\u652f\u6301\u8fdb\u5ea6\u4fe1\u606f\u79bb\u7ebf\u4fdd\u5b58&#xff0c;\u5237\u65b0\u9875\u9762&#xff0c;\u5173\u95ed\u9875\u9762&#xff0c;\u91cd\u542f\u7cfb\u7edf\u4e0d\u4e22\u5931\u4e0a\u4f20\u8fdb\u5ea6\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064217-69a531496e19a.gif\" alt=\"\u6587\u4ef6\u5939\u4e0a\u4f20\" \/><\/p>\n<h2>\u514d\u8d39\u4e0b\u8f7d\u793a\u4f8b<\/h2>\n<p>\u70b9\u51fb\u4e0b\u8f7d\u5b8c\u6574\u793a\u4f8b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f00\u53d1\u8005\u65e5\u8bb0 &#8211; \u5927\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u5f00\u53d1\u5b9e\u5f55 \u65e5\u671f&#xff1a;2023\u5e7411\u670815\u65e5 \u5929\u6c14&#xff1a;\u9634<br \/>\n\u9879\u76ee\u80cc\u666f\u4e0e\u9700\u6c42\u68b3\u7406<br \/>\n\u4f5c\u4e3a\u6c5f\u82cf\u7684\u4e00\u540d\u72ec\u7acb\u5f00\u53d1\u8005&#xff0c;\u8fd1\u671f\u627f\u63a5\u4e86\u4e00\u4e2a\u4f01\u4e1a\u7ea7\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u9879\u76ee&#xff0c;\u6838\u5fc3\u9700\u6c42\u5982\u4e0b&#xff1a;<br \/>\n\u5927\u6587\u4ef6\u652f\u6301&#xff1a;\u5355\u6587\u4ef620GB&#xff0c;\u9700\u517c\u5bb9\u6587\u4ef6\u5939\u4e0a\u4f20&#xff08;\u4fdd\u7559\u5c42\u7ea7\u7ed3\u6784&#xff09;\u3002\u65ad\u70b9\u7eed\u4f20&#xff1a;\u8de8\u4f1a\u8bdd\u3001\u8de8\u8bbe\u5907&#xff08;\u91cd\u542f\u7535\u8111\u540e\u4ecd\u53ef\u6062\u590d&#xff09;\u3002\u5168\u5e73\u53f0\u517c\u5bb9&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":79556,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8873,8872,8870,8871,567,230,214],"topic":[],"class_list":{"0":"post-79568","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-php","12":"tag-html","14":"tag-214"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f - \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\/79568.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5f00\u53d1\u8005\u65e5\u8bb0 - \u5927\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u5f00\u53d1\u5b9e\u5f55 \u65e5\u671f&#xff1a;2023\u5e7411\u670815\u65e5 \u5929\u6c14&#xff1a;\u9634 \u9879\u76ee\u80cc\u666f\u4e0e\u9700\u6c42\u68b3\u7406 \u4f5c\u4e3a\u6c5f\u82cf\u7684\u4e00\u540d\u72ec\u7acb\u5f00\u53d1\u8005&#xff0c;\u8fd1\u671f\u627f\u63a5\u4e86\u4e00\u4e2a\u4f01\u4e1a\u7ea7\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u9879\u76ee&#xff0c;\u6838\u5fc3\u9700\u6c42\u5982\u4e0b&#xff1a; \u5927\u6587\u4ef6\u652f\u6301&#xff1a;\u5355\u6587\u4ef620GB&#xff0c;\u9700\u517c\u5bb9\u6587\u4ef6\u5939\u4e0a\u4f20&#xff08;\u4fdd\u7559\u5c42\u7ea7\u7ed3\u6784&#xff09;\u3002\u65ad\u70b9\u7eed\u4f20&#xff1a;\u8de8\u4f1a\u8bdd\u3001\u8de8\u8bbe\u5907&#xff08;\u91cd\u542f\u7535\u8111\u540e\u4ecd\u53ef\u6062\u590d&#xff09;\u3002\u5168\u5e73\u53f0\u517c\u5bb9&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79568.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-02T06:42:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064215-69a5314768c50.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79568.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79568.html\",\"name\":\"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-02T06:42:18+00:00\",\"dateModified\":\"2026-03-02T06:42:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79568.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79568.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79568.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f\"}]},{\"@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":"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f - \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\/79568.html","og_locale":"zh_CN","og_type":"article","og_title":"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5f00\u53d1\u8005\u65e5\u8bb0 - \u5927\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u5f00\u53d1\u5b9e\u5f55 \u65e5\u671f&#xff1a;2023\u5e7411\u670815\u65e5 \u5929\u6c14&#xff1a;\u9634 \u9879\u76ee\u80cc\u666f\u4e0e\u9700\u6c42\u68b3\u7406 \u4f5c\u4e3a\u6c5f\u82cf\u7684\u4e00\u540d\u72ec\u7acb\u5f00\u53d1\u8005&#xff0c;\u8fd1\u671f\u627f\u63a5\u4e86\u4e00\u4e2a\u4f01\u4e1a\u7ea7\u6587\u4ef6\u4f20\u8f93\u7cfb\u7edf\u9879\u76ee&#xff0c;\u6838\u5fc3\u9700\u6c42\u5982\u4e0b&#xff1a; \u5927\u6587\u4ef6\u652f\u6301&#xff1a;\u5355\u6587\u4ef620GB&#xff0c;\u9700\u517c\u5bb9\u6587\u4ef6\u5939\u4e0a\u4f20&#xff08;\u4fdd\u7559\u5c42\u7ea7\u7ed3\u6784&#xff09;\u3002\u65ad\u70b9\u7eed\u4f20&#xff1a;\u8de8\u4f1a\u8bdd\u3001\u8de8\u8bbe\u5907&#xff08;\u91cd\u542f\u7535\u8111\u540e\u4ecd\u53ef\u6062\u590d&#xff09;\u3002\u5168\u5e73\u53f0\u517c\u5bb9&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/79568.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-02T06:42:18+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/03\/20260302064215-69a5314768c50.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79568.html","url":"https:\/\/www.wsisp.com\/helps\/79568.html","name":"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-02T06:42:18+00:00","dateModified":"2026-03-02T06:42:18+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79568.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79568.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79568.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u519b\u5de5\u79d1\u7814\u5e73\u53f0\u5982\u4f55\u7528HTML+PHP\u5b9e\u73b0\u5b9e\u9a8c\u8fc7\u7a0b\u89c6\u9891\u7684\u5206\u7247\u52a0\u5bc6\u56de\u6eaf\u4e0a\u4f20\uff1f"}]},{"@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\/79568","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=79568"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/79556"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79568"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}