1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Parse error: syntax error, unexpected

Discussion in 'PHP' started by XXx_Death_xXX, Jul 2, 2013.

  1. #1
    Hello friends i am new here am srry if i put wrong pace request

    i have this install file which gave me error

    Parse error: syntax error, unexpected '(' in C:\WampDeveloper\Websites\users\webroot\install\install.php on line 3
    file i have upload ass zip
    can any body help me with this i ll be thanks full

    Regrads Ghulam
     
    XXx_Death_xXX, Jul 2, 2013 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,500
    Likes Received:
    4,460
    Best Answers:
    123
    Trophy Points:
    665
    #2
    I don't get line 3 either. new() commands should look like

    $a = new Widget();

    Did it get scrambled somewhere along the way?
    Redownload the source code?
     
    sarahk, Jul 2, 2013 IP
  3. qtriangle

    qtriangle Active Member

    Messages:
    179
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    75
    #3
    Have you defined a function named new() ?
    I think that is the problem. You should rename this function to something else. "new" is a reserved keyword.
     
    qtriangle, Jul 5, 2013 IP
    ryan_uk likes this.
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,998
    Best Answers:
    253
    Trophy Points:
    515
    #4
    New what? AS qtriangle said you're calling a function that doesn't even exist. The line after that of $input = ; is invalid too -- equals WHAT?

    Though in general ALL of that code is bad/terrifying from a security standpoint, since putting things like the dbname, username, password, server name, license key, etc, etc, into an non-deletable global scope with DEFINE is some serious herpaderp. (Even if Turdpress does it too). That's the security equivalent of stripping naked, painting a bullseye on your back, and running around the jungles of Southeast Asia in 1969 waving a flashlight around screaming "Shoot me, Shoot me!" in Vietnamese.

    Much less $input not being defined as anything means all of those would fail too.
     
    deathshadow, Jul 6, 2013 IP
    ryan_uk and sarahk like this.
  5. XXx_Death_xXX

    XXx_Death_xXX Member

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    33
    #5

    Thanks my problem is solved
     
    XXx_Death_xXX, Feb 28, 2014 IP