文章简介:如何用PHP实现CMS系统的页面模板功能随着互联网的发展,内容管理系统(CMS)在网站开发中扮演着重要的角色。CMS系统通过模板功能将页面内容与设计样式分离,方便网站管理员对页面进行管理和修改。本文将介绍如何使用PHP实现CMS系统的页面模板功能,并提供相应的代码示例。一、创建文件结构首先,我们需要创建一个基本的文件结构来存储CMS系统的页面模板和相关文件。
2023-08-04 评论 0 782
文章简介:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>System Error</title> <meta name="robots" content="noindex,nofollow" /> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <style> /* Base */ body { color: #333; font: 14px Verdana, "Helvetica Neue", helvetica, Arial, 'Microsoft YaHei', sans-serif; margin: 0; padding: 0 20px 20px; word-break: break-word; } h1{ margin: 10px 0 0; font-size: 28px; font-weight: 500; line-height: 32px; } h2{ color: #4288ce; font-weight: 400; padding: 6px 0; margin: 6px 0 0; font-size: 18px; border-bottom: 1px solid #eee; } h3.subheading { color: #4288ce; margin: 6px 0 0; font-weight: 400; } h3{ margin: 12px; font-size: 16px; font-weight: bold; } abbr{ cursor: help; text-decoration: underline; text-decoration-style: dotted; } a{ color: #868686; cursor: pointer; } a:hover{ text-decoration: underline; } .line-error{ background: #f8cbcb; } .echo table { width: 100%; } .echo pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f7f7f7; border: 0; border-radius: 3px; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; } .echo pre > pre { padding: 0; margin: 0; } /* Layout */ .col-md-3 { width: 25%; } .col-md-9 { width: 75%; } [class^="col-md-"] { float: left; } .clearfix { clear:both; } @media only screen and (min-device-width : 375px) and (max-device-width : 667px) { .col-md-3, .col-md-9 { width: 100%; } } /* Exception Info */ .exception { margin-top: 20px; } .exception .message{ padding: 12px; border: 1px solid #ddd; border-bottom: 0 none; line-height: 18px; font-size:16px; border-top-left-radius: 4px; border-top-right-radius: 4px; font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑"; } .exception .code{ float: left; text-align: center; color: #fff; margin-right: 12px; padding: 16px; border-radius: 4px; background: #999; } .exception .source-code{ padding: 6px; border: 1px solid #ddd; background: #f9f9f9; overflow-x: auto; } .exception .source-code pre{ margin: 0; } .exception .source-code pre ol{ margin: 0; color: #4288ce; display: inline-block; min-width: 100%; box-sizing: border-box; font-size:14px; font-family: "Century Gothic",Consolas,"Liberation Mono",Courier,Verdana; padding-left: 56px; } .exception .source-code pre li{ border-left: 1px solid #ddd; height: 18px; line-height: 18px; } .exception .source-code pre code{ color: #333; height: 100%; display: inline-block; border-left: 1px solid #fff; font-size:14px; font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑"; } .exception .trace{ padding: 6px; border: 1px solid #ddd; border-top: 0 none; line-height: 16px; font-size:14px; font-family: Consolas,"Liberation Mono",Courier,Verdana,"微软雅黑"; } .exception .trace ol{ margin: 12px; } .exception .trace ol li{ padding: 2px 4px; } .exception div:last-child{ border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; } /* Exception Variables */ .exception-var table{ width: 100%; margin: 12px 0; box-sizing: border-box; table-layout:fixed; word-wrap:break-word; } .exception-var table caption{ text-align: left; font-size: 16px; font-weight: bold; padding: 6px 0; } .exception-var table caption small{ font-weight: 300; display: inline-block; margin-left: 10px; color: #ccc; } .exception-var table tbody{ font-size: 13px; font-family: Consolas,"Liberation Mono",Courier,"微软雅黑"; } .exception-var table td{ padding: 0 6px; vertical-align: top; word-break: break-all; } .exception-var table td:first-child{ width: 28%; font-weight: bold; white-space: nowrap; } .exception-var table td pre{ margin: 0; } /* Copyright Info */ .copyright{ margin-top: 24px; padding: 12px 0; border-top: 1px solid #eee; } /* SPAN elements with the classes below are added by prettyprint. */ pre.prettyprint .pln { color: #000 } /* plain text */ pre.prettyprint .str { color: #080 } /* string content */ pre.prettyprint .kwd { color: #008 } /* a keyword */ pre.prettyprint .com { color: #800 } /* a comment */ pre.prettyprint .typ { color: #606 } /* a type name */ pre.prettyprint .lit { color: #066 } /* a literal value */ /* punctuation, lisp open bracket, lisp close bracket */ pre.prettyprint .pun, pre.prettyprint .opn, pre.prettyprint .clo { color: #660 } pre.prettyprint .tag { color: #008 } /* a markup tag name */ pre.prettyprint .atn { color: #606 } /* a markup attribute name */ pre.prettyprint .atv { color: #080 } /* a markup attribute value */ pre.prettyprint .dec, pre.prettyprint .var { color: #606 } /* a declaration; a variable name */ pre.prettyprint .fun { color: red } /* a function name */ </style> </head> <body> <div class="echo"> </div> <div class="exception"> <div class="message"> <div class="info"> <div> <h2>[10501] <abbr title="think\exception\PDOException">PDOException</abbr> in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/db/Connection.php line 385">Connection.php line 385</a></h2> </div> <div><h1>SQLSTATE[42000]: Syntax error or access violation: 1064 syntax error, unexpected $end, expecting FTS_TERM or FTS_NUMB or '*'</h1></div> </div> </div> <div class="source-code"> <pre class="prettyprint lang-php"><ol start="376"><li class="line-376"><code> $this->PDOStatement->execute(); </code></li><li class="line-377"><code> // 调试结束 </code></li><li class="line-378"><code> $this->debug(false, '', $master); </code></li><li class="line-379"><code> // 返回结果集 </code></li><li class="line-380"><code> return $this->getResult($pdo, $procedure); </code></li><li class="line-381"><code> } catch (\PDOException $e) { </code></li><li class="line-382"><code> if ($this->isBreak($e)) { </code></li><li class="line-383"><code> return $this->close()->query($sql, $bind, $master, $pdo); </code></li><li class="line-384"><code> } </code></li><li class="line-385"><code> throw new PDOException($e, $this->config, $this->getLastsql()); </code></li><li class="line-386"><code> } catch (\Throwable $e) { </code></li><li class="line-387"><code> if ($this->isBreak($e)) { </code></li><li class="line-388"><code> return $this->close()->query($sql, $bind, $master, $pdo); </code></li><li class="line-389"><code> } </code></li><li class="line-390"><code> throw $e; </code></li><li class="line-391"><code> } catch (\Exception $e) { </code></li><li class="line-392"><code> if ($this->isBreak($e)) { </code></li><li class="line-393"><code> return $this->close()->query($sql, $bind, $master, $pdo); </code></li><li class="line-394"><code> } </code></li></ol></pre> </div> <div class="trace"> <h2>Call Stack</h2> <ol> <li>in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/db/Connection.php line 385">Connection.php line 385</a></li> <li> at <abbr title="think\db\Connection">Connection</abbr>->query() </li> <li> at call_user_func_array() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/Db.php line 178">Db.php line 178</a> </li> <li> at <abbr title="think\Db">Db</abbr>::__callStatic() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/application/api/controller/Index.php line 67">Index.php line 67</a> </li> <li> at <abbr title="app\api\controller\Index">Index</abbr>->fanyi_article_title() </li> <li> at <abbr title="ReflectionMethod">ReflectionMethod</abbr>->invokeArgs() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/App.php line 343">App.php line 343</a> </li> <li> at <abbr title="think\App">App</abbr>::invokeMethod() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/App.php line 611">App.php line 611</a> </li> <li> at <abbr title="think\App">App</abbr>::module() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/App.php line 456">App.php line 456</a> </li> <li> at <abbr title="think\App">App</abbr>::exec() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/library/think/App.php line 139">App.php line 139</a> </li> <li> at <abbr title="think\App">App</abbr>::run() in <a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/start.php line 19">start.php line 19</a> </li> <li> at require('<a class="toggle" title="/data/wwwroot/td.880772.xyz/thinkphp/start.php">/data/wwwroot/td.880...</a>') in <a class="toggle" title="/data/wwwroot/td.880772.xyz/public/index.php line 23">index.php line 23</a> </li> </ol> </div> </div> <div class="exception-var"> <h2>Exception Datas</h2> <table> <caption>PDO Error Info</caption> <tbody> <tr> <td>SQLSTATE</td> <td> 42000 </td> </tr> <tr> <td>Driver Error Code</td> <td> 1064 </td> </tr> <tr> <td>Driver Error Message</td> <td> syntax error, unexpected $end, expecting FTS_TERM or FTS_NUMB or '*' </td> </tr> </tbody> </table> <table> <caption>Database Status</caption> <tbody> <tr> <td>Error Code</td> <td> 10501 </td> </tr> <tr> <td>Error Message</td> <td> SQLSTATE[42000]: Syntax error or access violation: 1064 syntax error, unexpected $end, expecting FTS_TERM or FTS_NUMB or '*' </td> </tr> <tr> <td>Error SQL</td> <td> SELECT name, MATCH(pinyin) AGAINST('bu luo da zuo zhan shi yi kuan rong he le duo zhong you xi yuan su de shou you , ta zhu yao bao han le ka pai shou ji 、 ce lve zhan dou 、 jiao se ban yan yi ji mo shou ti cai de mao xian 。 xia mian shi xiao bian gei da jia dai lai de 《 bu luo da zuo zhan 》 ke jin gong lve , gan xing qu de xiao huo ban men yi qi lai kan kan ba 。 《 bu luo da zuo zhan 》 ke jin gong lve dui yu xin shou huo ling ke wan jia er yan , shou ji ge zhong li bao zhi guan zhong yao 。 zhe xie li bao bao kuo : * xin shou li bao * ru qun li bao * qian dao li bao * B L 1 1 1 、 B L 2 2 2 、 B L 3 3 3 、 B L 4 4 4 li bao qie wu cuo guo ren he ke huo qu de li bao ji hui , yin wei ta men ke wei nin de you xi lv cheng ti gong bao gui de zi yuan he zhu li 。 ( yi ) ran hou jiu shi le jie kai fu huo dong de ji zhi : * * tui guan ka jing su * *' IN NATURAL LANGUAGE MODE) AS similarity FROM ad_download_lang WHERE MATCH(pinyin) AGAINST('bu luo da zuo zhan shi yi kuan rong he le duo zhong you xi yuan su de shou you , ta zhu yao bao han le ka pai shou ji 、 ce lve zhan dou 、 jiao se ban yan yi ji mo shou ti cai de mao xian 。 xia mian shi xiao bian gei da jia dai lai de 《 bu luo da zuo zhan 》 ke jin gong lve , gan xing qu de xiao huo ban men yi qi lai kan kan ba 。 《 bu luo da zuo zhan 》 ke jin gong lve dui yu xin shou huo ling ke wan jia er yan , shou ji ge zhong li bao zhi guan zhong yao 。 zhe xie li bao bao kuo : * xin shou li bao * ru qun li bao * qian dao li bao * B L 1 1 1 、 B L 2 2 2 、 B L 3 3 3 、 B L 4 4 4 li bao qie wu cuo guo ren he ke huo qu de li bao ji hui , yin wei ta men ke wei nin de you xi lv cheng ti gong bao gui de zi yuan he zhu li 。 ( yi ) ran hou jiu shi le jie kai fu huo dong de ji zhi : * * tui guan ka jing su * *' IN NATURAL LANGUAGE MODE) ORDER BY similarity DESC LIMIT 150 </td> </tr> </tbody> </table> <table> <caption>Database Config</caption> <tbody> <tr> <td>type</td> <td> mysql </td> </tr> <tr> <td>hostname</td> <td> localhost </td> </tr> <tr> <td>database</td> <td> td.880772.xyz </td> </tr> <tr> <td>hostport</td> <td> </td> </tr> <tr> <td>dsn</td> <td> </td> </tr> <tr> <td>params</td> <td> [] </td> </tr> <tr> <td>charset</td> <td> utf8mb4 </td> </tr> <tr> <td>prefix</td> <td> ad_ </td> </tr> <tr> <td>debug</td> <td> false </td> </tr> <tr> <td>deploy</td> <td> 0 </td> </tr> <tr> <td>rw_separate</td> <td> false </td> </tr> <tr> <td>master_num</td> <td> 1 </td> </tr> <tr> <td>slave_no</td> <td> </td> </tr> <tr> <td>read_master</td> <td> false </td> </tr> <tr> <td>fields_strict</td> <td> true </td> </tr> <tr> <td>result_type</td> <td> 2 </td> </tr> <tr> <td>resultset_type</td> <td> array </td> </tr> <tr> <td>auto_timestamp</td> <td> false </td> </tr> <tr> <td>datetime_format</td> <td> false </td> </tr> <tr> <td>sql_explain</td> <td> false </td> </tr> <tr> <td>builder</td> <td> </td> </tr> <tr> <td>query</td> <td> \think\db\Query </td> </tr> <tr> <td>break_reconnect</td> <td> false </td> </tr> </tbody> </table> </div> <div class="exception-var"> <h2>Environment Variables</h2> <div> <h3 class="subheading">GET Data</h3> <div> <div class="clearfix"> <div class="col-md-3"><strong>content</strong></div> <div class="col-md-9"><small> 部落大作战是一款融合了多种游戏元素的手游,它主要包含了卡牌收集、策略战斗、角色扮演以及魔兽题材的冒险。下面是小编给大家带来的《部落大作战》氪金攻略,感兴趣的小伙伴们一起来看看吧。 《部落大作战》氪金攻略对于新手或零氪玩家而言,收集各种礼包至关重要。这些礼包包括: * 新手礼包 * 入群礼包 * 签到礼包 * BL111、BL222、BL333、BL444 礼包 切勿错过任何可获取的礼包机会,因为它们可为您的游戏旅程提供宝贵的资源和助力。(一)然后就是了解开服活动的机制:**推关卡竞速** </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>to</strong></div> <div class="col-md-9"><small> zh-cn </small></div> </div> </div> </div> <div> <div class="clearfix"> <div class="col-md-3"><strong>POST Data</strong></div> <div class="col-md-9"><small>empty</small></div> </div> </div> <div> <div class="clearfix"> <div class="col-md-3"><strong>Files</strong></div> <div class="col-md-9"><small>empty</small></div> </div> </div> <div> <h3 class="subheading">Cookies</h3> <div> <div class="clearfix"> <div class="col-md-3"><strong>myip</strong></div> <div class="col-md-9"><small> 65.21.47.162 </small></div> </div> </div> </div> <div> <div class="clearfix"> <div class="col-md-3"><strong>Session</strong></div> <div class="col-md-9"><small>empty</small></div> </div> </div> <div> <h3 class="subheading">Server/Request Data</h3> <div> <div class="clearfix"> <div class="col-md-3"><strong>TEMP</strong></div> <div class="col-md-9"><small> /tmp </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>TMPDIR</strong></div> <div class="col-md-9"><small> /tmp </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>TMP</strong></div> <div class="col-md-9"><small> /tmp </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>PATH</strong></div> <div class="col-md-9"><small> /usr/local/bin:/usr/bin:/bin </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>USER</strong></div> <div class="col-md-9"><small> www </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HOME</strong></div> <div class="col-md-9"><small> /home/www </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_CONTENT_TYPE</strong></div> <div class="col-md-9"><small> application/x-www-form-urlencoded;charset=UTF-8 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_CONNECTION</strong></div> <div class="col-md-9"><small> Keep-Alive </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_COOKIE</strong></div> <div class="col-md-9"><small> myip=65.21.47.162 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_ACCEPT_ENCODING</strong></div> <div class="col-md-9"><small> gzip </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_ACCEPT</strong></div> <div class="col-md-9"><small> */* </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_USER_AGENT</strong></div> <div class="col-md-9"><small> Mozilla/5.0 (Linux; Android 6.0.1; OPPO A57 Build/MMB29M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/63.0.3239.83 Mobile Safari/537.36 T7/10.13 baiduboxapp/10.13.0.10 (Baidu; P1 6.0.1) </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTP_HOST</strong></div> <div class="col-md-9"><small> td.880772.xyz </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>PHP_VALUE</strong></div> <div class="col-md-9"><small> open_basedir=/data/wwwroot/td.880772.xyz/public:/tmp/:/proc/:/data/wwwroot/td.880772.xyz/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>PATH_INFO</strong></div> <div class="col-md-9"><small> /api/index/fanyi_article_title </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REDIRECT_STATUS</strong></div> <div class="col-md-9"><small> 200 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SERVER_NAME</strong></div> <div class="col-md-9"><small> td.880772.xyz </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SERVER_PORT</strong></div> <div class="col-md-9"><small> 443 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SERVER_ADDR</strong></div> <div class="col-md-9"><small> 188.165.242.95 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REMOTE_PORT</strong></div> <div class="col-md-9"><small> 36006 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REMOTE_ADDR</strong></div> <div class="col-md-9"><small> 65.21.47.162 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SERVER_SOFTWARE</strong></div> <div class="col-md-9"><small> nginx/1.20.2 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>GATEWAY_INTERFACE</strong></div> <div class="col-md-9"><small> CGI/1.1 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>HTTPS</strong></div> <div class="col-md-9"><small> on </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_SCHEME</strong></div> <div class="col-md-9"><small> https </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SERVER_PROTOCOL</strong></div> <div class="col-md-9"><small> HTTP/1.1 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>DOCUMENT_ROOT</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/public </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>DOCUMENT_URI</strong></div> <div class="col-md-9"><small> /index.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_URI</strong></div> <div class="col-md-9"><small> /api/index/fanyi_article_title?content=%E9%83%A8%E8%90%BD%E5%A4%A7%E4%BD%9C%E6%88%98%E6%98%AF%E4%B8%80%E6%AC%BE%E8%9E%8D%E5%90%88%E4%BA%86%E5%A4%9A%E7%A7%8D%E6%B8%B8%E6%88%8F%E5%85%83%E7%B4%A0%E7%9A%84%E6%89%8B%E6%B8%B8%EF%BC%8C%E5%AE%83%E4%B8%BB%E8%A6%81%E5%8C%85%E5%90%AB%E4%BA%86%E5%8D%A1%E7%89%8C%E6%94%B6%E9%9B%86%E3%80%81%E7%AD%96%E7%95%A5%E6%88%98%E6%96%97%E3%80%81%E8%A7%92%E8%89%B2%E6%89%AE%E6%BC%94%E4%BB%A5%E5%8F%8A%E9%AD%94%E5%85%BD%E9%A2%98%E6%9D%90%E7%9A%84%E5%86%92%E9%99%A9%E3%80%82%E4%B8%8B%E9%9D%A2%E6%98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%B8%B8%E6%88%8F%E6%97%85%E7%A8%8B%E6%8F%90%E4%BE%9B%E5%AE%9D%E8%B4%B5%E7%9A%84%E8%B5%84%E6%BA%90%E5%92%8C%E5%8A%A9%E5%8A%9B%E3%80%82%EF%BC%88%E4%B8%80%EF%BC%89%E7%84%B6%E5%90%8E%E5%B0%B1%E6%98%AF%E4%BA%86%E8%A7%A3%E5%BC%80%E6%9C%8D%E6%B4%BB%E5%8A%A8%E7%9A%84%E6%9C%BA%E5%88%B6%EF%BC%9A%2A%2A%E6%8E%A8%E5%85%B3%E5%8D%A1%E7%AB%9E%E9%80%9F%2A%2A%0A%0A&to=zh-cn </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SCRIPT_NAME</strong></div> <div class="col-md-9"><small> /index.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CONTENT_LENGTH</strong></div> <div class="col-md-9"><small> </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CONTENT_TYPE</strong></div> <div class="col-md-9"><small> application/x-www-form-urlencoded;charset=UTF-8 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_METHOD</strong></div> <div class="col-md-9"><small> GET </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>QUERY_STRING</strong></div> <div class="col-md-9"><small> s=/api/index/fanyi_article_title&content=%E9%83%A8%E8%90%BD%E5%A4%A7%E4%BD%9C%E6%88%98%E6%98%AF%E4%B8%80%E6%AC%BE%E8%9E%8D%E5%90%88%E4%BA%86%E5%A4%9A%E7%A7%8D%E6%B8%B8%E6%88%8F%E5%85%83%E7%B4%A0%E7%9A%84%E6%89%8B%E6%B8%B8%EF%BC%8C%E5%AE%83%E4%B8%BB%E8%A6%81%E5%8C%85%E5%90%AB%E4%BA%86%E5%8D%A1%E7%89%8C%E6%94%B6%E9%9B%86%E3%80%81%E7%AD%96%E7%95%A5%E6%88%98%E6%96%97%E3%80%81%E8%A7%92%E8%89%B2%E6%89%AE%E6%BC%94%E4%BB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6%9C%BA%E4%BC%9A%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BB%AC%E5%8F%AF%E4%B8%BA%E6%82%A8%E7%9A%84%E6%B8%B8%E6%88%8F%E6%97%85%E7%A8%8B%E6%8F%90%E4%BE%9B%E5%AE%9D%E8%B4%B5%E7%9A%84%E8%B5%84%E6%BA%90%E5%92%8C%E5%8A%A9%E5%8A%9B%E3%80%82%EF%BC%88%E4%B8%80%EF%BC%89%E7%84%B6%E5%90%8E%E5%B0%B1%E6%98%AF%E4%BA%86%E8%A7%A3%E5%BC%80%E6%9C%8D%E6%B4%BB%E5%8A%A8%E7%9A%84%E6%9C%BA%E5%88%B6%EF%BC%9A%2A%2A%E6%8E%A8%E5%85%B3%E5%8D%A1%E7%AB%9E%E9%80%9F%2A%2A%0A%0A&to=zh-cn </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>SCRIPT_FILENAME</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/public/index.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>FCGI_ROLE</strong></div> <div class="col-md-9"><small> RESPONDER </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>PHP_SELF</strong></div> <div class="col-md-9"><small> /index.php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_TIME_FLOAT</strong></div> <div class="col-md-9"><small> 1726123976.6234 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>REQUEST_TIME</strong></div> <div class="col-md-9"><small> 1726123976 </small></div> </div> </div> </div> <div> <div class="clearfix"> <div class="col-md-3"><strong>Environment Variables</strong></div> <div class="col-md-9"><small>empty</small></div> </div> </div> <div> <h3 class="subheading">ThinkPHP Constants</h3> <div> <div class="clearfix"> <div class="col-md-3"><strong>PUBLIC_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/public/../public/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>APP_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/public/../application/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_VERSION</strong></div> <div class="col-md-9"><small> 5.0.24 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_START_TIME</strong></div> <div class="col-md-9"><small> 1726123976.6239 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_START_MEM</strong></div> <div class="col-md-9"><small> 411536 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>EXT</strong></div> <div class="col-md-9"><small> .php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>DS</strong></div> <div class="col-md-9"><small> / </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>THINK_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/thinkphp/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>LIB_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/thinkphp/library/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CORE_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/thinkphp/library/think/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>TRAIT_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/thinkphp/library/traits/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>ROOT_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>EXTEND_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/extend/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>VENDOR_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/vendor/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>RUNTIME_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/runtime/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>LOG_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/runtime/log/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CACHE_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/runtime/cache/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>TEMP_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/runtime/temp/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CONF_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/public/../application/ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>CONF_EXT</strong></div> <div class="col-md-9"><small> .php </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>ENV_PREFIX</strong></div> <div class="col-md-9"><small> PHP_ </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>IS_CLI</strong></div> <div class="col-md-9"><small> false </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>IS_WIN</strong></div> <div class="col-md-9"><small> false </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>FILTER_VALIDATE_BOOL</strong></div> <div class="col-md-9"><small> 258 </small></div> </div> <div class="clearfix"> <div class="col-md-3"><strong>ADDON_PATH</strong></div> <div class="col-md-9"><small> /data/wwwroot/td.880772.xyz/addons/ </small></div> </div> </div> </div> </div> <div class="copyright"> <a title="官方网站" href="http://www.thinkphp.cn">ThinkPHP</a> <span>V5.0.24</span> <span>{ 十年磨一剑-为API开发设计的高性能框架 }</span> </div> <script> var LINE = 385; function $(selector, node){ var elements; node = node || document; if(document.querySelectorAll){ elements = node.querySelectorAll(selector); } else { switch(selector.substr(0, 1)){ case '#': elements = [node.getElementById(selector.substr(1))]; break; case '.': if(document.getElementsByClassName){ elements = node.getElementsByClassName(selector.substr(1)); } else { elements = get_elements_by_class(selector.substr(1), node); } break; default: elements = node.getElementsByTagName(); } } return elements; function get_elements_by_class(search_class, node, tag) { var elements = [], eles, pattern = new RegExp('(^|\\s)' + search_class + '(\\s|$)'); node = node || document; tag = tag || '*'; eles = node.getElementsByTagName(tag); for(var i = 0; i < eles.length; i++) { if(pattern.test(eles[i].className)) { elements.push(eles[i]) } } return elements; } } $.getScript = function(src, func){ var script = document.createElement('script'); script.async = 'async'; script.src = src; script.onload = func || function(){}; $('head')[0].appendChild(script); } ;(function(){ var files = $('.toggle'); var ol = $('ol', $('.prettyprint')[0]); var li = $('li', ol[0]); // 短路径和长路径变换 for(var i = 0; i < files.length; i++){ files[i].ondblclick = function(){ var title = this.title; this.title = this.innerHTML; this.innerHTML = title; } } // 设置出错行 var err_line = $('.line-' + LINE, ol[0])[0]; err_line.className = err_line.className + ' line-error'; $.getScript('//cdn.bootcss.com/prettify/r298/prettify.min.js', function(){ prettyPrint(); // 解决Firefox浏览器一个很诡异的问题 // 当代码高亮后,ol的行号莫名其妙的错位 // 但是只要刷新li里面的html重新渲染就没有问题了 if(window.navigator.userAgent.indexOf('Firefox') >= 0){ ol[0].innerHTML = ol[0].innerHTML; } }); })(); </script> </body> </html>
2024-07-18 评论 0 407
文章简介:在电脑操作系统中WIN7系统是一款非常经典的电脑操作系统,那么该如何装win7系统呢?下面小编将和大家详细介绍电脑安装win7系统的方法。1、先给自己的台式电脑下载小鱼系统重装系统软件。2、选择win7系统,点击“安装此系统”。3、然后就开始下载win7系统的镜像。4、下载好之后进行环境部署,然后完成之后点击立即重启。5、重启电脑后会出现windows管理器这个页面,我们选择第二个。6、返回电脑pe界面继续进行安装。7、完成之后然后重启电脑。8、最后来到桌面,系统安装完成。win7系统一键装机的
2023-07-16 评论 0 1135
文章简介:图解找出PHP配置文件php.ini的路径的方法,。图解找出PHP配置文件php.ini的路径的方法, 近来,有不博友问php.ini存在哪个目录下?或者修改php.ini以后为何没有生效?基于以上两个问题,
2016-07-13 评论 0 743
文章简介:IT之家7月14日消息,华为近日发布了“OceanStorA310深度学习数据湖存储”与“FusionCubeA3000训/推超融合一体机”商用AI存储新品,官方称“这两款产品可为AI基础模型训练、行业模型训练,细分场景模型训练推理提供新动能。”▲图源华为IT之家整理汇总得知:OceanStorA310深度学习数据湖存储,主要面向基础/行业大模型数据湖场景,实现从数据归集、预处理到模型训练、推理应用的AI全流程海量数据管理。官方表示,OceanStorA310单框5U支持业界最高的400GB/s
2023-07-16 评论 0 1457
文章简介:PHP中exec函数和shell_exec函数的区别,execshell_exec。PHP中exec函数和shell_exec函数的区别,execshell_exec 这两个函数都是执行Linux命令函数,不同的是获取返回结果不一样,exec只能获取最后一行数
2016-07-13 评论 0 993
文章简介:PHP面向对象程序设计之接口用法,php面向对象程序设计。PHP面向对象程序设计之接口用法,php面向对象程序设计 接口是PHP面向对象程序设计中非常重要的一个概念。本文以实例形式较为详细的讲述
2016-07-13 评论 0 942
文章简介:PHP面向对象程序设计之类常量用法实例,sed用法实例。PHP面向对象程序设计之类常量用法实例,sed用法实例 类常量是PHP面向对象程序设计中非常重要的一个概念,牢固掌握类常量有助于进一步提
2016-07-13 评论 0 967
文章简介:这里是一个获取URL带QUESTRING参数的JAVASCRIPT客户端解决方案,相当于asp的request.querystring,PHP的$_GET
2017-04-24 评论 0 4078
文章简介:实例讲解PHP面向对象之多态,实例讲解面向对象。实例讲解PHP面向对象之多态,实例讲解面向对象 什么是多态性? 多态性是继数据库抽象和继承后,面向对象语言的第三个特征。多态即多
2016-07-13 评论 0 864
文章简介:从零开始学YII2框架(五)快速生成代码工具 Gii 的使用,yii2gii。从零开始学YII2框架(五)快速生成代码工具 Gii 的使用,yii2gii Yii2 框架 之所以称之为高效快速开发的一款框架,是因为有一个神奇的工具
2016-07-13 评论 0 1384