[0] ThrowableError in Seo.php line 32

语法解析错误: syntax error, unexpected end of file, expecting function (T_FUNCTION)

  1. preg_match_all('/(.*?)/si', $res, $p);
  2. for ($ii = 0; $ii < COUNT($p[1]); $ii++){
  3. $pos=strpos($p[1][$ii],$u);
  4. if(is_integer($pos)){
  5. $rn= $ii+1;
  6. break;
  7. }
  8. }
  9. echo $rn;
  10. }

Call Stack

  1. in Seo.php line 32
  2. at think\__include_file('/www/wwwroot/lihongy...') in Loader.php line 85
  3. at Loader::autoload('app\index\controller...')
  4. at spl_autoload_call('app\index\controller...')
  5. at class_exists('app\index\controller...') in Loader.php line 478
  6. at Loader::controller('seo', 'controller', false, 'Error') in App.php line 580
  7. at App::module(['index', 'seo', 'pm'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 456
  8. at App::exec(['type' => 'module', 'module' => ['index', 'seo', 'pm'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  9. at App::run() in start.php line 19
  10. at require('/www/wwwroot/lihongy...') in index.php line 10

Environment Variables

GET Data

/seo/
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

USER
www
HOME
/home/www
SCRIPT_NAME
/index.php
REQUEST_URI
/seo/
QUERY_STRING
/seo/
REQUEST_METHOD
GET
SERVER_PROTOCOL
HTTP/1.1
GATEWAY_INTERFACE
CGI/1.1
REDIRECT_QUERY_STRING
/seo/
REDIRECT_URL
/seo/
REMOTE_PORT
20001
SCRIPT_FILENAME
/www/wwwroot/lihongyu/index.php
SERVER_ADMIN
webmaster@example.com
CONTEXT_DOCUMENT_ROOT
/www/wwwroot/lihongyu
CONTEXT_PREFIX
REQUEST_SCHEME
http
DOCUMENT_ROOT
/www/wwwroot/lihongyu
REMOTE_ADDR
164.88.46.16
SERVER_PORT
80
SERVER_ADDR
118.107.32.34
SERVER_NAME
www.lihongyu.net
SERVER_SOFTWARE
Apache
SERVER_SIGNATURE
<address>Apache Server at www.lihongyu.net Port 80</address>
LD_LIBRARY_PATH
/www/server/apache/lib
PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
HTTP_ACCEPT_ENCODING
deflate, gzip
HTTP_ACCEPT
*/*
HTTP_HOST
www.lihongyu.net
HTTP_USER_AGENT
Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
proxy-nokeepalive
1
REDIRECT_STATUS
200
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php
REQUEST_TIME_FLOAT
1638163474.4096
REQUEST_TIME
1638163474
PATH_INFO
/seo/
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/www/wwwroot/lihongyu/application/
__FIVEROOT__
THINK_VERSION
5.0.24
THINK_START_TIME
1638163474.4104
THINK_START_MEM
382416
EXT
.php
DS
/
THINK_PATH
/www/wwwroot/lihongyu/thinkphp/
LIB_PATH
/www/wwwroot/lihongyu/thinkphp/library/
CORE_PATH
/www/wwwroot/lihongyu/thinkphp/library/think/
TRAIT_PATH
/www/wwwroot/lihongyu/thinkphp/library/traits/
ROOT_PATH
/www/wwwroot/lihongyu/
EXTEND_PATH
/www/wwwroot/lihongyu/extend/
VENDOR_PATH
/www/wwwroot/lihongyu/vendor/
RUNTIME_PATH
/www/wwwroot/lihongyu/runtime/
LOG_PATH
/www/wwwroot/lihongyu/runtime/log/
CACHE_PATH
/www/wwwroot/lihongyu/runtime/cache/
TEMP_PATH
/www/wwwroot/lihongyu/runtime/temp/
CONF_PATH
/www/wwwroot/lihongyu/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false