Dream System Rescue, home tag tag click on the exception

Source: Internet
Author: User
Tags parse error
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
  • Related Article

    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.