Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8

Thread: This line..

  1. #1
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default This line..

    For some reason Line 41 of my scripts has an error:

    PHP Code:
    $cmd .= $this->user.'@'.$this->host.' ''.$command.'' > /dev/null &'
    Help is much appreciated.

  2. #2
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Can you tell us what the error is? What does it say when you try and view it?

    - Vince.
    Free Online Games And Videos:
    http://www.vincesgames.com



  3. #3
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    Sorry I forgot to add that

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in lots/of/pretty/witty/files on line 41

  4. #4
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Hi, try something like

    PHP Code:
    $cmd .= $this->(user.'@'.$this->host.' ''.$command.'' > /dev/null &'); 
    If that doesn't work, try moving the brackets around to somewhere else. If none of them work, I don't have a clue

    - Vince.
    Free Online Games And Videos:
    http://www.vincesgames.com



  5. #5
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    PHP Code:
    $cmd .= $this->user.'@'.$this->host.' '.$command.' > /dev/null &'

  6. #6
    Join Date
    Jan 2007
    Location
    Wales
    Posts
    2,432
    Tokens
    141

    Latest Awards:

    Default

    Well spotted.. I just thought of the brackets because that was what I needed last time I had that error when coding in PHP
    Free Online Games And Videos:
    http://www.vincesgames.com



  7. #7
    Join Date
    Oct 2006
    Location
    Merseyside
    Posts
    2,335
    Tokens
    0

    Latest Awards:

    Default

    Thank you Both.

  8. #8
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Just to point out you can't put variables in single quotes. Only double qoutes support variables.

Posting Permissions

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