Getting a Parse error in my script - Please Help

Discussion in 'PHP' started by -Ace-, Sep 23, 2009.

Thread Status:
Not open for further replies.
  1. #1
    I am looking for a little help. A friend gave me a script to use but i am getting the following error below and am not sure how to resolve this issue.

    Can you please tell me how to resolve this issue?

    I am looking to learn PHP myself. I do know some basic, so if you could explain why i am getting this error and how to resolve, that would help me further myself in the php language.
     
    Last edited: Sep 23, 2009
    -Ace-, Sep 23, 2009 IP
  2. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You put "new ("...

    You forgot the class name.


     
    NatalicWolf, Sep 23, 2009 IP
  3. -Ace-

    -Ace- Peon

    Messages:
    244
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Can you please explain more on what that means? and maybe provide a solution?

    Thanks alot of helping me.
     
    -Ace-, Sep 23, 2009 IP
  4. NatalicWolf

    NatalicWolf Peon

    Messages:
    262
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    No solution because I don't know what you were trying to create...

    Example:
    $This = new That(Params);


     
    NatalicWolf, Sep 23, 2009 IP
  5. -Ace-

    -Ace- Peon

    Messages:
    244
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I wish i new a little more so i could understand a little better. I have a script which was provided to me by a friend to use. Now when i go to try to install the script, or do anything i just get this error:

    Now i am not sure what you mean by this:

    Example:
    $This = new That(Params);

    My understand of what that could mean is.

    1. it is a variabile, so all that i see was done is that a variabile called $that was made and you filled the container with *new*.

    Can you please explain on what i should do or how to solve this issue? i do not really know to much about PHP but am learning and studying it.
     
    Last edited: Sep 23, 2009
    -Ace-, Sep 23, 2009 IP
  6. -Ace-

    -Ace- Peon

    Messages:
    244
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Never mind, i got a new script to use.

    Thanks for the help.
     
    -Ace-, Sep 23, 2009 IP
Thread Status:
Not open for further replies.