您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

phpcms中index.php中这段代码有何意义?

2024/4/20 22:59:28发布28次查看
if (strpos($_server[request_uri], /cha)===0 ) { $end = strpos($_server[request_uri], /, 1); $channel = substr($_server[request_uri], 1, $end-1); $channelconfig = pc_base::load_config('channel'); if ( !empty($channel) && isset($channelconfig[$channel]) ) { setcookie(channel, $channel, time()+7*86400, /); }}

phpcms中index.php里的这段代码我懂代码意思,但是不知道这样有何意义,是不是phpcms里面一般都这样?
回复内容: if (strpos($_server[request_uri], /cha)===0 ) { $end = strpos($_server[request_uri], /, 1); $channel = substr($_server[request_uri], 1, $end-1); $channelconfig = pc_base::load_config('channel'); if ( !empty($channel) && isset($channelconfig[$channel]) ) { setcookie(channel, $channel, time()+7*86400, /); }}

phpcms中index.php里的这段代码我懂代码意思,但是不知道这样有何意义,是不是phpcms里面一般都这样?
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product