{"id":63,"date":"2013-12-03T02:58:31","date_gmt":"2013-12-02T18:58:31","guid":{"rendered":"http:\/\/www.yptk.cn\/index.php\/2013\/12\/03\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aphp%e4%b9%8b%e7%ac%ac%e4%b8%80%e5%a4%a9\/"},"modified":"2013-12-03T02:58:31","modified_gmt":"2013-12-02T18:58:31","slug":"%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aphp%e4%b9%8b%e7%ac%ac%e4%b8%80%e5%a4%a9","status":"publish","type":"post","link":"http:\/\/yptk.cn\/index.php\/2013\/12\/03\/%e5%8d%81%e5%a4%a9%e5%ad%a6%e4%bc%9aphp%e4%b9%8b%e7%ac%ac%e4%b8%80%e5%a4%a9\/","title":{"rendered":"\u5341\u5929\u5b66\u4f1aphp\u4e4b\u7b2c\u4e00\u5929"},"content":{"rendered":"<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t\u4ee5\u524d\u5199\u4e86\u5341\u5929\u5b66\u4f1aASP\uff0c\u5341\u5929\u5b66\u4f1aASP.NET\u4ec0\u4e48\u7684\uff0c\u73b0\u5728\u60f3\u60f3\u518d\u5199\u4e2aPHP\u5427\uff0c\u4e5f\u7b97\u6bd4\u8f83\u5168\u4e86\u3002 PHP\u7684\u8c03\u8bd5\u65b9\u6cd5\u6211\u8fd9\u91cc\u5c31\u4e0d\u8bf4\u4e86\uff0c\u5916\u9762\u5f88\u591a\u6587\u7ae0\u90fd\u6709\u4ecb\u7ecd\uff0c\u4e5f\u6709\u5f88\u591a\u4e0d\u540c\u7684\u7ec4\u5408\u3002\u6211\u8fd9\u91cc\u6682\u65f6\u662f\u4ee5 Apache web server \u548c MY SQL \u4f5c\u4e3aWEB\u670d\u52a1\u5668\u548c\u6570\u636e\u5e93\uff0c\u5728php-4.3.3\u4e0b\u7684\u73af\u5883\u505a\u7684\u7a0b\u5e8f\u3002\u5f53\u7136\u8981\u7b80\u5355\u7684\u6784\u5efa\u548c\u8bbf\u95ee\u67e5\u770b\u6570\u636e\u5e93 PHPMYADMIN \u4e0d\u53ef\u5c11\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u81f3\u4e8e\u8868\u5355\u8bbe\u8ba1\u4ec0\u4e48\u7684\uff0c\u6211\u8fd9\u91cc\u4e5f\u4e0d\u60f3\u591a\u8bf4\u4e86\uff0c\u5728\u300a\u5341\u5929\u5b66\u4f1aASP\u300b\u4e2d\u5df2\u7ecf\u6709\u4ecb\u7ecd\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp;&nbsp;<strong>\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bPHP\u7684\u8bed\u6cd5\u3002<\/strong>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; 1\u3001\u5d4c\u5165\u65b9\u6cd5\uff1a<\/strong>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u7c7b\u4f3cASP\u7684&lt;%\uff0cPHP\u53ef\u4ee5\u662f&lt;?php\u6216\u8005\u662f&lt;?\uff0c\u7ed3\u675f\u7b26\u53f7\u662f?&gt;\uff0c\u5f53\u7136\u60a8\u4e5f\u53ef\u4ee5\u81ea\u5df1\u6307\u5b9a\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; 2\u3001\u5f15\u7528\u6587\u4ef6\uff1a<\/strong>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u5f15\u7528\u6587\u4ef6\u7684\u65b9\u6cd5\u6709\u4e24\u79cd\uff1arequire \u53ca include\u3002<br \/>\n&nbsp; require \u7684\u4f7f\u7528\u65b9\u6cd5\u5982 require(&#8220;MyRequireFile.php&#8221;); \u3002\u8fd9\u4e2a\u51fd\u6570\u901a\u5e38\u653e\u5728 PHP \u7a0b\u5e8f\u7684\u6700\u524d\u9762\uff0cPHP \u7a0b\u5e8f\u5728\u6267\u884c\u524d\uff0c\u5c31\u4f1a\u5148\u8bfb\u5165 require \u6240\u6307\u5b9a\u5f15\u5165\u7684\u6587\u4ef6\uff0c\u4f7f\u5b83\u53d8\u6210 PHP \u7a0b\u5e8f\u7f51\u9875\u7684\u4e00\u90e8\u4efd\u3002\u5e38\u7528\u7684\u51fd\u6570\uff0c\u4ea6\u53ef\u4ee5\u8fd9\u4e2a\u65b9\u6cd5\u5c06\u5b83\u5f15\u5165\u7f51\u9875\u4e2d\u3002<br \/>\n&nbsp; include \u4f7f\u7528\u65b9\u6cd5\u5982 include(&#8220;MyIncludeFile.php&#8221;); \u3002\u8fd9\u4e2a\u51fd\u6570\u4e00\u822c\u662f\u653e\u5728\u6d41\u7a0b\u63a7\u5236\u7684\u5904\u7406\u90e8\u5206\u4e2d\u3002PHP \u7a0b\u5e8f\u7f51\u9875\u5728\u8bfb\u5230 include \u7684\u6587\u4ef6\u65f6\uff0c\u624d\u5c06\u5b83\u8bfb\u8fdb\u6765\u3002\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u628a\u7a0b\u5e8f\u6267\u884c\u65f6\u7684\u6d41\u7a0b\u7b80\u5355\u5316\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; 3\u3001\u6ce8\u91ca\u65b9\u6cd5<\/strong>\uff1a\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; &lt;?php&nbsp;<br \/>\n&nbsp; echo &#8220;\u8fd9\u662f\u7b2c\u4e00\u79cd\u4f8b\u5b50\u3002\\n&#8221; ; \/\/ \u672c\u4f8b\u662f C++ \u8bed\u6cd5\u7684\u6ce8\u91ca&nbsp;<br \/>\n&nbsp; \/* \u672c\u4f8b\u91c7\u7528\u591a\u884c\u7684&nbsp;<br \/>\n&nbsp; \u6ce8\u91ca\u65b9\u5f0f *\/&nbsp;<br \/>\n&nbsp; echo &#8220;\u8fd9\u662f\u7b2c\u4e8c\u79cd\u4f8b\u5b50\u3002\\n&#8221; ;&nbsp;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\techo &#8220;\u8fd9\u662f\u7b2c\u4e09\u79cd\u4f8b\u5b50\u3002\\n&#8221; ; # \u672c\u4f8b\u4f7f\u7528 UNIX Shell \u8bed\u6cd5\u6ce8\u91ca&nbsp;<br \/>\n&nbsp; ?&gt;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp;<strong>&nbsp;4\u3001\u53d8\u91cf\u7c7b\u578b\uff1a<\/strong>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; $mystring = &#8220;\u6211\u662f\u5b57\u7b26\u4e32&#8221; ;&nbsp;<br \/>\n&nbsp; $NewLine = &#8220;\u6362\u884c\u4e86\\n&#8221; ;&nbsp;<br \/>\n&nbsp; $int1 = 38 ;&nbsp;<br \/>\n&nbsp; $float1 = 1.732 ;&nbsp;<br \/>\n&nbsp; $float2 = 1.4E+2 ;&nbsp;<br \/>\n&nbsp; $MyArray1 = array( &#8220;\u5b50&#8221; , &#8220;\u4e11&#8221; , &#8220;\u5bc5&#8221; , &#8220;\u536f&#8221; );\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u8fd9\u91cc\u5f15\u51fa\u4e24\u4e2a\u95ee\u9898\uff0c\u9996\u5148PHP\u53d8\u91cf\u4ee5$\u5f00\u5934\uff0c\u7b2c\u4e8cPHP\u8bed\u53e5\u4ee5;\u7ed3\u5c3e\uff0c\u53ef\u80fdASP\u7a0b\u5e8f\u5458\u4f1a\u4e0d\u9002\u5e94\u3002\u8fd9\u4e24\u4e2a\u9057\u6f0f\u4e5f\u662f\u7a0b\u5e8f\u4e0a\u5927\u591a\u9519\u8bef\u6240\u5728\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp;<strong>&nbsp;5\u3001\u8fd0\u7b97\u7b26\u53f7\uff1a<\/strong>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u6570\u5b66\u8fd0\u7b97\uff1a \u7b26\u53f7 \u610f\u4e49&nbsp;&nbsp;<br \/>\n&nbsp; +&nbsp; \u52a0\u6cd5\u8fd0\u7b97&nbsp;&nbsp;<br \/>\n&nbsp; &#8211;&nbsp; \u51cf\u6cd5\u8fd0\u7b97&nbsp;&nbsp;<br \/>\n&nbsp; *&nbsp; \u4e58\u6cd5\u8fd0\u7b97&nbsp;&nbsp;<br \/>\n&nbsp; \/&nbsp; \u9664\u6cd5\u8fd0\u7b97&nbsp;&nbsp;<br \/>\n&nbsp; %&nbsp; \u53d6\u4f59\u6570&nbsp;&nbsp;<br \/>\n&nbsp; ++&nbsp; \u7d2f\u52a0&nbsp;&nbsp;<br \/>\n&nbsp; &#8212;&nbsp; \u9012\u51cf&nbsp;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t<strong>&nbsp; \u5b57\u7b26\u4e32\u8fd0\u7b97\uff1a<\/strong>\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u8fd0\u7b97\u7b26\u53f7\u53ea\u6709\u4e00\u4e2a\uff0c\u5c31\u662f\u82f1\u6587\u7684\u53e5\u53f7\u3002\u5b83\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8fde\u63a5\u8d77\u6765\uff0c\u53d8\u6210\u5408\u5e76\u7684\u65b0\u5b57\u7b26\u4e32\u3002\u7c7b\u4f3cASP\u4e2d\u7684&amp;<br \/>\n&nbsp; &lt;?\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; $a = &#8220;PHP 4&#8221; ;&nbsp;<br \/>\n&nbsp; $b = &#8220;\u529f\u80fd\u5f3a\u5927&#8221; ;&nbsp;<br \/>\n&nbsp; echo $a.$b;&nbsp;<br \/>\n&nbsp; ?&gt;&nbsp;<br \/>\n&nbsp; \u8fd9\u91cc\u4e5f\u5f15\u51fa\u4e24\u4e2a\u95ee\u9898\uff0c\u9996\u5148PHP\u4e2d\u8f93\u51fa\u8bed\u53e5\u662fecho\uff0c\u7b2c\u4e8c\u7c7b\u4f3cASP\u4e2d\u7684&lt;%=\u53d8\u91cf%&gt;\uff0cPHP\u4e2d\u4e5f\u53ef\u4ee5&lt;?=\u53d8\u91cf?&nbsp;&nbsp;&nbsp; &gt;\u3002\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp;&nbsp;<strong>\u903b\u8f91\u8fd0\u7b97\uff1a<br \/>\n<\/strong>&nbsp; \u7b26\u53f7 \u610f\u4e49&nbsp;&nbsp;<br \/>\n&nbsp; &lt;&nbsp; \u5c0f\u4e8e&nbsp;&nbsp;<br \/>\n&nbsp; &gt;&nbsp; \u5927\u4e8e&nbsp;&nbsp;<br \/>\n&nbsp; &lt;=&nbsp; \u5c0f\u4e8e\u6216\u7b49\u4e8e&nbsp;&nbsp;<br \/>\n&nbsp; &gt;=&nbsp; \u5927\u4e8e\u6216\u7b49\u4e8e&nbsp;&nbsp;<br \/>\n&nbsp; ==&nbsp; \u7b49\u4e8e&nbsp;&nbsp;<br \/>\n&nbsp; !=&nbsp; \u4e0d\u7b49\u4e8e&nbsp;&nbsp;<br \/>\n&nbsp; &amp;&amp;&nbsp; \u800c\u4e14 (And)&nbsp;&nbsp;<br \/>\n&nbsp; and&nbsp; \u800c\u4e14 (And)&nbsp;&nbsp;<br \/>\n&nbsp; ||&nbsp; \u6216\u8005 (Or)&nbsp;&nbsp;<br \/>\n&nbsp; or&nbsp; \u6216\u8005 (Or)&nbsp;&nbsp;<br \/>\n&nbsp; xor&nbsp; \u5f02\u6216 (Xor)&nbsp;&nbsp;<br \/>\n&nbsp; !&nbsp; \u4e0d (Not)&nbsp;\n<\/p>\n<p style=\"font-family:Simsun;font-size:14px;line-height:21.33333396911621px;white-space:normal;\">\n\t&nbsp; \u4eca\u5929\u5c31\u8bf4\u5230\u8fd9\u91cc\uff0c\u660e\u5929\u8bf4\u4e00\u4e0b\u6d41\u7a0b\u63a7\u5236\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u5199\u4e86\u5341\u5929\u5b66\u4f1aASP\uff0c\u5341\u5929\u5b66\u4f1aASP.NET\u4ec0\u4e48\u7684\uff0c\u73b0\u5728\u60f3\u60f3\u518d\u5199\u4e2aPHP\u5427\uff0c\u4e5f\u7b97\u6bd4\u8f83\u5168\u4e86\u3002 PHP\u7684\u8c03\u8bd5\u65b9\u6cd5\u6211\u8fd9\u91cc\u5c31\u4e0d\u8bf4\u4e86\uff0c\u5916\u9762\u5f88\u591a\u6587\u7ae0\u90fd\u6709\u4ecb\u7ecd\uff0c\u4e5f\u6709\u5f88\u591a\u4e0d\u540c\u7684\u7ec4\u5408\u3002\u6211\u8fd9\u91cc\u6682\u65f6\u662f\u4ee5 Apache web server \u548c MY SQL \u4f5c\u4e3aWEB\u670d\u52a1\u5668\u548c\u6570\u636e\u5e93\uff0c\u5728php-4.3.3\u4e0b\u7684\u73af\u5883\u505a\u7684\u7a0b\u5e8f\u3002\u5f53\u7136\u8981\u7b80\u5355\u7684\u6784\u5efa\u548c\u8bbf\u95ee\u67e5\u770b\u6570\u636e\u5e93 PHPMYADMIN \u4e0d\u53ef\u5c11\u3002 &nbsp; \u81f3\u4e8e\u8868\u5355\u8bbe\u8ba1\u4ec0\u4e48\u7684 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-15"],"_links":{"self":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":0,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yptk.cn\/index.php\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}