{"id":1685,"date":"2024-06-05T20:23:18","date_gmt":"2024-06-05T12:23:18","guid":{"rendered":"https:\/\/cn.raksmart.com\/blog\/host\/3920.html"},"modified":"2024-06-05T20:23:18","modified_gmt":"2024-06-05T12:23:18","slug":"%e5%85%b3%e4%ba%8ephpextension%e6%89%a9%e5%b1%95","status":"publish","type":"post","link":"https:\/\/cn.raksmart.com\/blog\/knowledge\/1685.html","title":{"rendered":"\u5173\u4e8ePHPExtension\u6269\u5c55"},"content":{"rendered":"<div class=\"entry-content e-content\" itemprop=\"description articleBody\">\n<p><strong><a href=\"https:\/\/cn.raksmart.com\/\" target=\"_blank\" rel=\"noopener\">PHP\u6269\u5c55<\/a><\/strong>\u662f\u4e00\u79cd\u7279\u6b8a\u5f62\u5f0f\u7684\u5e93\u6216\u63d2\u4ef6\uff0c\u5b83\u63d0\u4f9b\u529f\u80fd\u53ef\u4f9b\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u3000\u3000\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528PHPExtension?<\/span><\/p>\n<p>\u901a\u8fc7\u4f7f\u7528\u6269\u5c55\uff0c\u60a8\u53ef\u4ee5\u907f\u514d\u4e3a\u4f17\u591a\u5e94\u7528\u7a0b\u5e8f\u91cd\u65b0\u521b\u5efa\u76f8\u540c\u7684\u4ee3\u7801\u3002\u8981\u4f7f\u7528\u6269\u5c55\uff0c\u60a8\u53ea\u9700\u5c06\u5b83\u8fde\u63a5\u5230\u5e94\u7528\u7a0b\u5e8f\u7684PHP\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u63a8\u8350\u9605\u8bfb\uff1a<a href=\"https:\/\/cn.raksmart.com\/blog\/?s=PHP\" target=\"_blank\" rel=\"noopener\">\u300aPHP\u57fa\u7840\u5b66\u4e60\u4e4b\u6570\u7ec4\u4ecb\u7ecd\u300b<\/a><\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u516c\u5f00\u53ef\u7528\u7684\u6269\u5c55\u7a0b\u5e8f\u6216\u521b\u5efa\u81ea\u5df1\u7684\u6269\u5c55\u7a0b\u5e8f\uff1a<\/p>\n<p>\u63d0\u4f9b\u51fd\u6570\u548c\/\u6216\u7c7b\u6765\u5904\u7406\u5b57\u7b26\u4e32\u3001\u6570\u7ec4\u3001\u5bf9\u8c61\u3001\u5217\u8868\u548c\u56fe\u5f62\u7b49\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<p>\u5b9e\u73b0\u4e0e\u4e00\u4e9b\u5916\u90e8\u5e93\u7684\u7ed1\u5b9a\uff0c\u4f8b\u5982POSIX\u6b63\u5219\u8868\u8fbe\u5f0f\u6216simplexml\u3002<\/p>\n<p>\u8fde\u63a5\u5230\u6570\u636e\u5e93\uff0c\u4f8b\u5982<a href=\"https:\/\/www.raksmart.com\/cps\/7921\" target=\"_blank\" rel=\"noopener\">MySQL<\/a>\u6216<a href=\"https:\/\/www.<a href=\"https:\/\/www.raksmart.com\/cps\/7821\" target=\"_blank\" rel=\"noopener\">raksmart<\/a>.com\/cps\/7922\" target=\"_blank\" rel=\"noopener\">PostgreSQL<\/a>\u3002<\/p>\n<p>\u901a\u8fc7OpenSSL\u548c\u7b49\u6280\u672f\u4f7f\u7528\u6563\u5217\u6216\u6570\u636e\u52a0\u5bc6\u6765\u63d0\u9ad8\u5b89\u5168\u6027\u94a0\u3002<\/p>\n<p>\u901a\u8fc7XML-RPC\u548cSOAP\u7b49\u6280\u672f\u4fc3\u8fdb\u4f7f\u7528\u5916\u90e8\u670d\u52a1\u7684\u6d41\u7a0b\u3002<\/p>\n<p>\u4e3a\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u6dfb\u52a0\u65b0\u529f\u80fd\uff0c\u5305\u62ec\u7f13\u5b58\u3001\u8c03\u8bd5\u3001\u5206\u6790\u548c\u6d4b\u8bd5\u3002<\/p>\n<p>PHP\u6269\u5c55\u901a\u5e38\u7528C\u8bed\u8a00\u7f16\u5199\uff0c\u7136\u540e\u7f16\u8bd1\u4e3a\u672c\u5730\u673a\u5668\u4ee3\u7801\u3002\u4f46\u662f\uff0cPHP7.4\u5f15\u5165\u4e86\u5916\u90e8\u51fd\u6570\u63a5\u53e3(PHPFFI)\uff0c\u5b83\u4f7fPHP\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u5728PHP\u4e2d\u7f16\u5199\u6269\u5c55\u548c\u7ed1\u5b9a\u5230C\u8bed\u8a00\u5e93\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u3000\u3000\u4ec0\u4e48\u662f.PHP\u6587\u4ef6\u6269\u5c55\u540d?<\/span><\/p>\n<p>.php\u6587\u4ef6\u6269\u5c55\u540d\u662f\u6307\u5e26\u6709PHP\u811a\u672c\u6216\u6e90\u4ee3\u7801\u7684\u6587\u4ef6\u7684\u540d\u79f0\uff0c\u8be5\u6587\u4ef6\u7684\u672b\u5c3e\u5e26\u6709\u201c.PHP\u201d\u6269\u5c55\u540d\u3002\u5b83\u7c7b\u4f3c\u4e8e\u5e26\u6709.doc\u6587\u4ef6\u6269\u5c55\u540d\u7684Word\u6587\u4ef6\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u3000\u3000PHP\u6269\u5c55\u540d\u662f\u5426\u4e0e.PHP\u6587\u4ef6\u6269\u5c55\u540d\u76f8\u540c?<\/span><\/p>\n<p>PHP\u6269\u5c55\u540d\u4e0e.php\u6587\u4ef6\u6269\u5c55\u540d\u6216PHP\u7c7b\u6269\u5c55\u540d(\u7ee7\u627f\u7c7b)\u4e0d\u540c\u3002PHP\u6269\u5c55\u662f\u4e00\u79cd\u7279\u6b8a\u5f62\u5f0f\u7684\u5e93\u6216\u63d2\u4ef6\u3002\u4f46\u662f.PHP\u6587\u4ef6\u6269\u5c55\u540d\u662f\u6587\u4ef6\u7684\u540d\u79f0\u3002PHP\u7c7b\u6269\u5c55\u662f\u6307\u4e00\u4e2a\u7c7b\u6269\u5c55\u53e6\u4e00\u4e2a\u7c7b\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u5177\u6709.php\u6587\u4ef6\u6269\u5c55\u540d\u7684\u6587\u4ef6\u4e0ePHP\u5f00\u53d1\u4eba\u5458\u5728\u4ee3\u7801\u4e2d\u7528\u4e8e\u6269\u5c55\u529f\u80fd\u7684\u6269\u5c55\u540d\u4e0d\u540c\u3002<\/p>\n<p><span style=\"color: #ff0000;\">\u3000\u3000\u5728\u54ea\u91cc\u53ef\u4ee5\u627e\u5230\u5171\u4eab\u7684PHP\u6269\u5c55?<\/span><\/p>\n<p>\u5982\u679c\u60a8\u7528\u5f00\u53d1\u8fc7\u4efb\u4f55\u4ee3\u7801PHP\uff0c\u90a3\u4e48\u60a8\u5c31\u5df2\u7ecf\u4f7f\u7528\u4e86\u6269\u5c55\u3002PHP\u63d0\u4f9b\u7684\u51e0\u4e4e\u6240\u6709\u51fd\u6570\u548c\u7c7b\u90fd\u6765\u81ea\u4e0d\u540c\u7684\u6269\u5c55\u3002\u6700\u7b80\u5355\u7684\u4f8b\u5b50\u4e4b\u4e00\u662f\u5728\u201c\u6807\u51c6\u201d\u6269\u5c55\u4e2d\u5b9e\u73b0\u7684\u51fd\u6570strlen()\u3002\u53e6\u4e00\u4e2a\u4f8b\u5b50\u662f\u201c<a href=\"https:\/\/www.raksmart.com\/cps\/7921\" target=\"_blank\" rel=\"noopener\">mysql<\/a>i_connect\u201d\uff0c\u5b83\u5728\u201cmysqli\u201d\u6269\u5c55\u4e2d\u5b9e\u73b0\u3002\u5982\u679c\u60a8\u7684\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u4e00\u4e9b\u53ef\u80fd\u5bf9\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f\u6709\u7528\u7684\u65b0\u529f\u80fd\uff0c\u60a8\u5e94\u8be5\u8003\u8651\u4f7f\u7528\u53ef\u91cd\u7528\u5e93\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6dfb\u52a0\u5b83\uff1a<\/p>\n<p>\u901a\u8fc7\u7f16\u5199\u4e00\u4e2a\u6216\u591a\u4e2aPHP\u7c7b\uff0c\u5728\u7eafPHP\u4e2d\u5b9e\u73b0\u6b64\u529f\u80fd\u3002<\/p>\n<p>\u4f7f\u7528\u63d0\u4f9b\u8be5\u529f\u80fd\u7684\u73b0\u6210\u6269\u5c55\u3002<\/p>\n<p>\u81ea\u5df1\u7f16\u5199\u3002<\/p>\n<p>PHP\u9644\u5e26\u7684PHP\u6269\u5c55<\/p>\n<p>\u5982\u679c\u4f60\u5e78\u8fd0\u7684\u8bdd\uff0c\u4f60\u4f1a\u53d1\u73b0\u4e00\u4e2a\u5df2\u7ecf\u63d0\u4f9b\u8be5\u529f\u80fd\u7684\u6269\u5c55\u7a0b\u5e8f\u3002PHP\u7ef4\u62a4\u548c\u5206\u53d1\u4e86\u4e00\u7ec4\u4e30\u5bcc\u7684\u6269\u5c55\u3002\u4f8b\u5982\uff0cPHP7.4\u63d0\u4f9b\u4e86\u5927\u7ea670\u79cd\u4e0d\u540c\u7684\u6269\u5c55\u3002\u5176\u4e2d\u4e00\u4e9b\u603b\u662f\u88ab\u7f16\u8bd1\u5e76\u76f4\u63a5\u94fe\u63a5\u5230PHP\u4e8c\u8fdb\u5236\u6587\u4ef6\u4e2d\uff0c\u6bd4\u5982\u201cStandard\u201d\u3002\u5176\u4ed6\u6269\u5c55\u662f\u53ef\u9009\u7684\u3002\u901a\u5e38\uff0c\u8fd9\u4e9b\u4f5c\u4e3a\u52a8\u6001\u63d2\u4ef6\u5206\u53d1\uff0c\u5e94\u8be5\u901a\u8fc7php.ini\u6269\u5c55\u6307\u4ee4\u52a0\u8f7d\u4f8b\u5982\uff0cextension=mysqli.so\u3002\u63a8\u8350\u76f8\u5173\u9605\u8bfb\uff1a<a href=\"https:\/\/cn.raksmart.com\/blog\/knowledge\/jszc\/903.html\">\u300aPHP\u7b14\u8bb0\uff1a\u7c7b\u548c\u5bf9\u8c61\u4e4b\u91cd\u8f7d\u548c\u9b54\u672f\u65b9\u6cd5\u300b<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP\u6269\u5c55\u662f\u4e00\u79cd\u7279\u6b8a\u5f62\u5f0f\u7684\u5e93\u6216\u63d2\u4ef6\uff0c\u5b83\u63d0\u4f9b\u529f\u80fd\u53ef\u4f9b\u8bb8\u591a\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u3002 \u3000\u3000\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528PHPExte\u2026 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[899],"class_list":["post-1685","post","type-post","status-publish","format-standard","hentry","category-knowledge","tag-phpextension"],"_links":{"self":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/comments?post=1685"}],"version-history":[{"count":0,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/posts\/1685\/revisions"}],"wp:attachment":[{"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/media?parent=1685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/categories?post=1685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.raksmart.com\/blog\/wp-json\/wp\/v2\/tags?post=1685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}