PHP script error..

Discussion in 'PHP' started by toughguy, Apr 10, 2007.

  1. #1
    Hi Friends,
    Iam trying to install a script on my site and I need to provide the home directory location in the configuration file.

    But my home directory is like:
    /home/.xyz/abc/def.com/

    Please observe the 2 dots in the home directory path.

    When i open my site it gives like:

    Parse error: syntax error, unexpected '/' in /home/.xyz/abc/def.com/config.php on line 20

    I see that line 20 in the file is the place where i defined my home directory.

    Can some buddy plz help me how i can bypass this error and get my site up.

    Thanks a lot,

    Regards,
     
    toughguy, Apr 10, 2007 IP
  2. phper

    phper Active Member

    Messages:
    247
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    60
    #2
    The dots in file or directory names are not the issue. You may have made a very simple error, for example, forgetting the quotes to enclose the directory name.
    If you still find problems fixing it, pasting the actual line here would definitely help.
     
    phper, Apr 10, 2007 IP
  3. tinkerbox

    tinkerbox Peon

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    show us ur code can help us better to indentify the problem.
    If you worry ppl copy ur script, just show us the code at line 20

    From the error msg you gave, must be because syntax error
     
    tinkerbox, Apr 11, 2007 IP
  4. ketan9

    ketan9 Active Member

    Messages:
    548
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #4
    It definitely looks like there is a problem with your syntax. If you would post that line, then only we can pin-point the error, however, it is small error. So just take a break for sometime and get back to it, you will solve the problem yourself :)
     
    ketan9, Apr 12, 2007 IP