Dream System Rescue, home tag tag click Error
Error message: Parse error:syntax error, unexpected '/' in D:\web\dgtn1718\web\data\tags.php on line 2
The code for the second line of tags.php is: require_once (dirname (Str_replace ("\", "/", __file__)). "/include/common.inc.php"
Help the expert to assist the answer, the "\" to "\ \" Before the occurrence of the problem.
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
Ask for help Weaving Dreams PHP tags.php
------Solution--------------------
Unexpected '/' in ...
Is '/' not ' \ '
------Solution--------------------
Require_once (DirName (str_replace ("\ \", "/", __file__)). "/include/common.inc.php"
------Solution--------------------
That is the path error, there is no/include/common.inc.php file in the current directory.
------Solution--------------------
Quote:
reply to: 2013-04-16 14:27:57
Unexpected '/' in ...
Is '/' not ' \ '
Can I have a detailed point?
Require_once (DirName (str_replace ("\ \", "\", __file__)). " /include/common.inc.php ");
What's wrong with the hint, didn't send out
------Solution--------------------
Is the path problem, include in the D:\web\dgtn1718\web\data directory, how do you post the diagram is FTP?
------Solution--------------------
It is obvious that these two files do not exist:
D:\web\dgtn1718\web\data\tags.php
d:/web/dgtn1718/web/data/include/common.inc.php
and the path to the picture you see is:
222.186.191.25/include/common.inc.php
Instead, try it.
Define ("WWWROOT", Str_ireplace (Str_replace ("/", "\ \", $_server[' php_self ']), ", __file__)." \\");
Echo (DirName (str_replace ("\ \", "/", WWWROOT)). " /include/common.inc.php ");
This is changed common.inc.php, the other tags.php is the same, try