An error occurred while clicking the TAG tab on the homepage.

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.