The error message is displayed when you click the TAG tab on the home page. the error message is: Parse & nbsp; error: & nbsp; syntax & nbsp; error, & nbsp; unexpected & nbsp; '/' & nbsp; in & nbsp; D: \ web \ dgtn1718 \ web \ data \ tags. php & nbsp; Zhimeng system Rescue. an error occurs when you click the TAG on the homepage.
Error message: Parse error: syntax error, unexpected '/' in D: \ web \ dgtn1718 \ web \ data \ tags. php on line 2
The second line of tags. php code is: require_once (dirname (str_replace ("\", "/" ,__ FILE _). "/include/common. inc. php"
Ask the experts for help and change "\".
Warning: require_once (D: \ web \ dgtn1718 \ web \ data/include/common. inc. php) [function. require-once]: failed to open stream: No such file or directory in D: \ web \ dgtn1718 \ web \ data \ tags. php on line 2
Fatal error: require_once () [function. require]: Failed opening required 'd: \ web \ dgtn1718 \ web \ data/include/common. inc. php '(include_path = '.; c: \ php5 \ pear ') in D: \ web \ dgtn1718 \ web \ data \ tags. php on line 2
Zhimeng php tags. php
------ Solution --------------------
Unexpected '/' in...
Yes '/' is not '\'
------ Solution --------------------
Require_once (dirname (str_replace ("\", "/" ,__ FILE _). "/include/common. inc. php"
------ Solution --------------------
The path is incorrect. there is no/include/common. inc. php file in the current directory.
------ Solution --------------------
Reference:
Reply: 14:27:57
Unexpected '/' in...
Yes '/' is not '\'
Can I provide details?
require_once(dirname(str_replace("\\","\/",__FILE__))."/include/common.inc.php");
The error message is not sent.
------ Solution --------------------
That is, the path problem. is the include in the D: \ web \ dgtn1718 \ web \ data Directory? how do you paste an ftp image?
------ Solution --------------------
Obviously, the two files do not exist:
D: \ web \ dgtn1718 \ web \ data \ tags. php
D:/web/dgtn1718/web/data/include/common. inc. php
The path of your image is:
222.186.191.25/include/common. inc. php
Try again like this.
define("WWWROOT",str_ireplace(str_replace("/","\\",$_SERVER['PHP_SELF']),'',__FILE__)."\\");
echo (dirname(str_replace("\\","/",WWWROOT))."/include/common.inc.php");
This changes common. inc. php, and the other tags. php. try again.