SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unexpected character in input: '\' (ASCII=92) state=1

    hi,

    i create the one file.At time of creation i insert below contents into the file

    <?php
    include("ClassName.class");
    $myclass = &new ClassName;
    echo $myclass->myfunction1();
    ?>

    After file created and insert the text into the file as like this

    <?php
    include(\"ClassName.class\");
    $myclass = &new ClassName;
    echo $myclass->myfunction1();
    ?>

    In that additionally add \ .Due to this i got the error as

    errors :
    Unexpected character in input: '\' (ASCII=91) state=1 in F:\Facebook\furniture11\Data Mining1\public_html\admin\newfile.php on line 1

    Parse error: parse error, unexpected $end in F:\Facebook\furniture11\Data Mining1\public_html\admin\newfile.php on line 1

    plz tell that how i avoid the errors

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2008
    Posts
    100
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by spikeZ View Post

    i used like that also

    include(stripcslashes("ClassName.class"));

    It also gives errors.

  4. #4
    SitePoint Evangelist
    Join Date
    May 2006
    Location
    Denmark
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Change
    Code:
    include(\"ClassName.class\");
    to
    Code:
    include("ClassName.class");


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •