For assistance from the Zhimeng system, the following error message is displayed when you click the TAG tab on the homepage: 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
Help
Reply to discussion (solution)
Thank you for choosing online.
Unexpected '/' in...
Yes '/' is not '\'
Require_once (dirname (str_replace ("\", "/" ,__ FILE _). "/include/common. inc. php"
Change str_replace ("\", "/" ,__ FILE _) to the following error.
Reply: 14:27:57
Unexpected '/' in...
Yes '/' is not '\'
Can I provide details?
The path is incorrect. there is no/include/common. inc. php file in the current directory.
Put the common. inc. php file in the include Directory
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.
Reply by referencing liaollaio on the fifth floor: reply to: 14:27:57
Unexpected '/' in...
Yes '/' is not '\'
Can I provide details?
PHP code? 1require_once (dirname (str_replace ("\", "\/" ,__ FILE _). "/include/common. inc. php ");
What is the error ......
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
PHP code? 1require_once (dirname (str_replace ("\", "\/" ,__ FILE _). "/include/common. inc. php ")
In this case, the following error occurs: 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
That is, the path problem. is the include in the D: \ web \ dgtn1718 \ web \ data Directory? how do you paste an ftp image?
That is, the path problem. is the include in the D: \ web \ dgtn1718 \ web \ data Directory? how do you paste an ftp image?
Do you want to download the source program on the local D disk? This is the company's website. The source files are all stored on ftp,
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.
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.
PHP code? 12 define ("WW ......
Where can I change it? Can I provide details?
......
Didn't you find the problem? You can see the path ~
You can use _ FILE _ to get the current path instead of the website root directory. check whether there is a "web/data" added to the path"
Set:
require_once(dirname(str_replace("\\","\/",__FILE__))."/include/common.inc.php");
Replace:
define("WWWROOT",str_ireplace(str_replace("/","\\",$_SERVER['PHP_SELF']),'',__FILE__)."\\");require_once(dirname(str_replace("\\","/",WWWROOT))."/include/common.inc.php");
Check whether common. inc. php can be found. The other is the same.
Reference liaollaio reply on the 15th floor :......
Didn't you find the problem? You can see the path ~
You can use _ FILE _ to get the current path instead of the website root directory. check whether there is a "web/data" added to the path"
Set:
PHP code? 1require_once (dirname (str_replace ("\", "\/" ,__ FILE _). "/include/common. inc ......
This problem occurs after the change:
Reference the reply from franzhong on the 16th floor: reference the reply from liaollaio on the 15th floor :......
Didn't you find the problem? You can see the path ~
You can use _ FILE _ to get the current path instead of the website root directory. check whether there is a "web/data" added to the path"
Set:
PHP code? 1require_once (dirname (str_replace ("\", "\/" ,__ FILE __)......
Row 2nd define ("WWWROOT", str_ireplace (str_replace ("/", "\", $ _ SERVER ['php _ SELF ']), '', __file __). "\\");
Line 1 require_once (dirname (str_replace ("\", "/", WWWROOT). "/include/common. inc. php ");
......
Okay, change str_ireplace to str_replace.
Reference liaollaio reply on the 18 th floor :......
Okay, change str_ireplace to str_replace.
Or not. If the same problem occurs, ask for help.
Reference the reply from franzhong on the 19th floor: reference the reply from liaollaio on the 18th floor :......
Okay, change str_ireplace to str_replace.
Or not. If the same problem occurs, ask for help.
If you do, I will directly require_once ("visual path ");
Http://www.im286.com/thread-9211178-1-1.html
Reply by referencing the liaollaio on the 20 th floor: reference the reply from franzhong on the 19 th floor: reference the reply from liaollaio on the 18 th floor :......
Okay, change str_ireplace to str_replace.
Or not. If the same problem occurs, ask for help.
If you do, I will directly require_once ("visual path ");
Http://www.im286.com/thread-921 ......
No, thank you!
Permission issues in ftp, set the file permission to read
Permission issues in ftp, set the file permission to read
How to set it? I also found this problem on the Internet, but I don't know how to change it? Procedure
Right-click a linux space ftp login, and set the file to 777.
Host management is required for windows space.
If the server needs to log on to the server, set
I have read a php page before I have read it.