{"id":5904,"date":"2019-12-16T13:59:55","date_gmt":"2019-12-16T05:59:55","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=5904"},"modified":"2019-12-27T16:30:59","modified_gmt":"2019-12-27T08:30:59","slug":"php","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/php","title":{"rendered":"php\u547d\u4ee4 – PHP\u8bed\u8a00\u7684\u547d\u4ee4\u884c\u63a5\u53e3"},"content":{"rendered":"\n

php\u547d\u4ee4\u662f\u6d41\u884c\u7684Web\u5f00\u53d1\u8bed\u8a00PHP\u7684\u547d\u4ee4\u884c\u63a5\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528PHP\u8bed\u8a00\u5f00\u53d1\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u7cfb\u7edf\u7ba1\u7406\u811a\u672c\u7a0b\u5e8f\u3002 <\/p>\n\n\n\n

\u4f7f\u7528\u7684\u901a\u7528\u76ee\u7684\u811a\u672c\u8bed\u8a00\uff0c\u7279\u522b\u9002\u5408Web\u5f00\u53d1\uff0c\u53ef\u4ee5\u5d4c\u5165\u5230HTML\u4e2d\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f<\/strong>: php [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570<\/strong>:<\/p>\n\n\n\n

-q<\/td>\u5b89\u9759\u6a21\u5f0f\uff0cHTTP\u5934\u8f93\u51fa\uff08\u53ea\u6709CGI\uff09<\/td><\/tr>
-g<\u540d\u79f0><\/td>\u5728\u811a\u672c\u4e2d\u4f7f\u53d8\u91cf\u4e3a\u5168\u5c40\u53d8\u91cf<\/td><\/tr>
-f<\u6587\u4ef6><\/td>\u89e3\u6790\u548c\u6267\u884c\u6587\u4ef6<\/td><\/tr>
-a<\/td>\u8fd0\u884cPHP\u4ea4\u4e92\u65b9\u5f0f <\/td><\/tr>
-b<\u5730\u5740\uff1a\u7aef\u53e3> <\/td>\u4e3a\u5916\u90e8FASTCGI\u670d\u52a1\u5668\u6a21\u5f0f(CGI)\u7ed1\u5b9a\u8def\u5f84 <\/td><\/tr>
-r<\u4ee3\u7801> <\/td>\u8fd0\u884cPHP\u4ee3\u7801\uff0c\u800c\u65e0\u9700\u4f7f\u7528\u811a\u672c\u6807\u8bb0\u201c<?..?>\u201d <\/td><\/tr>
-e <\/td>\u4e3a\u8c03\u8bd5\u5668\/\u5206\u6790\u5668\u751f\u6210\u6269\u5c55\u4fe1\u606f <\/td><\/tr>
-n <\/td>\u6ca1\u6709php.ini\u6587\u4ef6\u5c06\u88ab\u4f7f\u7528 <\/td><\/tr>
-z<\u6587\u4ef6> <\/td>\u52a0\u8f7dZend\u6269\u5c55\u6587\u4ef6 <\/td><\/tr>
-H <\/td>\u4ece\u5916\u90e8\u5de5\u5177\u9690\u85cf\u811a\u672c\u540d\u79f0\uff08\u6587\u4ef6\uff09\u548c\u53c2\u6570 <\/td><\/tr>
--rf <\/td>\u663e\u793a\u6709\u5173\u51fd\u6570\u540d\u90fd\u4fe1\u606f <\/td><\/tr>
-l <\/td>\u53ea\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5 <\/td><\/tr>
--rc <\/td>\u663e\u793a\u6709\u5173\u7c7b\u540d\u7684\u4fe1\u606f <\/td><\/tr>
--re <\/td>\u663e\u793a\u6709\u5173\u6269\u5c55\u540d\u7684\u4fe1\u606f <\/td><\/tr>
--ri <\/td>\u540d\u5b57\u663e\u793a <\/td><\/tr>
--ini <\/td>\u663e\u793a\u914d\u7f6e\u6587\u4ef6\u540d <\/td><\/tr>
-C <\/td>\u4e0dchdir\u5230\u811a\u672c\u7684\u76ee\u5f55 <\/td><\/tr>
-c<\u8def\u5f84|\u6587\u4ef6> <\/td>\u5728\u6307\u5b9a\u76ee\u5f55\u8def\u5f84\u4e2d\u67e5\u627ephp.ini\u6587\u4ef6\uff0c\u6216\u4f7f\u7528\u6307\u5b9a\u7684\u6587\u4ef6 <\/td><\/tr>
-i <\/td>PHP\u4fe1\u606f\u548c\u914d\u7f6e <\/td><\/tr>
-T<\u603b\u6570> <\/td>\u6d4b\u91cf\u811a\u672c\u91cd\u590d\u6b21\u6570\u7684\u6267\u884c\u65f6\u95f4 <\/td><\/tr>
-m <\/td>\u5728\u6a21\u5757\u4e2d\u663e\u793a\u7f16\u8bd1 <\/td><\/tr>
-s <\/td>\u8f93\u51faHTML\u8bed\u6cd5\u9ad8\u4eae\u663e\u793a\u6e90\u4ee3\u7801 <\/td><\/tr>
-F<\u6587\u4ef6> <\/td>\u5bf9\u6bcf\u4e2a\u8f93\u5165\u884c\u89e3\u6790\u548c\u6267\u884c\u6587\u4ef6 <\/td><\/tr>
-E<\u4ee3\u7801> <\/td>\u5904\u7406\u6240\u6709\u7684\u8f93\u5165\u884c\u540e\u8fd0\u884cPHP\u4ee3\u7801 <\/td><\/tr>
-B<\u4ee3\u7801> <\/td>\u5904\u7406\u8f93\u5165\u884c\u4e4b\u524d\u8fd0\u884cPHP\u4ee3\u7801 <\/td><\/tr>
-w <\/td>\u8f93\u51fa\u6e90\uff0c\u6ce8\u91ca\u548c\u7a7a\u767d <\/td><\/tr>
-R<\u4ee3\u7801> <\/td>\u5bf9\u6bcf\u4e00\u4e2a\u8f93\u5165\u884c\u8fd0\u884cPHP\u4ee3\u7801 <\/td><\/tr>
-v <\/td>\u67e5\u770b\u7248\u672c <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u67e5\u770bPHP\u7248\u672c:<\/p>\n\n\n\n

[root@linuxcool ~]# php -v\nPHP 5.3.3 (cli) (built: Mar 22 2017 12:27:09)\nCopyright (c) 1997-2010 The PHP Group\nZend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies<\/pre>\n\n\n\n

\u5bf9\/root\/mm.php\u6587\u4ef6\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5: <\/p>\n\n\n\n

[root@linuxcool ~]# php -l \/root\/mm.php<\/pre>\n\n\n\n

\u663e\u793aPHP\u4fe1\u606f\u548c\u914d\u7f6e: <\/p>\n\n\n\n

[root@linuxcool ~]# php -i<\/pre>\n\n\n\n

\u5199\u5165\u6587\u672cHello Linux\u5230\u6807\u51c6\u8f93\u51fa: <\/p>\n\n\n\n

[root@linuxcool ~]# php -r 'echo \"Hello Linuxn\";'\nHello Linux<\/pre>\n","protected":false},"excerpt":{"rendered":"

php\u547d\u4ee4\u662f\u6d41\u884c\u7684Web\u5f00\u53d1\u8bed\u8a00PHP\u7684\u547d\u4ee4\u884c\u63a5\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528PHP\u8bed\u8a00\u5f00\u53d1\u57fa\u4e8e\u547d\u4ee4\u884c\u7684\u7cfb\u7edf\u7ba1\u7406\u811a\u672c\u7a0b\u5e8f\u3002 \u4f7f\u7528 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5904"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=5904"}],"version-history":[{"count":20,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5904\/revisions"}],"predecessor-version":[{"id":6144,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/5904\/revisions\/6144"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=5904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=5904"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=5904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}