Please help with this error

Discussion in 'PHP' started by worlddomain, Aug 7, 2007.

  1. #1
    I tried installing a script and keep getting this error
    Parse error: syntax error, unexpected T_STRING in/youradd/savefile_php/config.php on line 4

    this is the Config.php info

    <?
    $sitename = "Your Add";
    $siteurl = "http://www.youradd.com/savefile_php/
    $admin25email = "email@hotmail.com";
    $att_max_size = "5000";
    $att_filetypes = "gif|jpg|png|zip|rar|tar|gz|jar|";

    $dbServer = "localhost";
    $dbUser = "user";
    $dbPass = "pw";
    $dbName = "db name";


    $requirepaid = "1"; // 1 for paid. 0 for free
    $paypal_email = "email@hotmail.com";
    $paypal_price = "1.50";
    $paypal_subcode = "M";
    $paypal_sub = "Monthly";

    ?>
     
    worlddomain, Aug 7, 2007 IP
  2. ecentricNick

    ecentricNick Peon

    Messages:
    351
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You're missing the close quotes on line 3...
    $siteurl = "http://www.youradd.com/savefile_php/

    should read

    $siteurl = "http://www.youradd.com/savefile_php/"
     
    ecentricNick, Aug 7, 2007 IP
  3. krt

    krt Well-Known Member

    Messages:
    829
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    120
    #3
    And a semicolon nick...

    $siteurl = "http://www.youradd.com/savefile_php/";
     
    krt, Aug 7, 2007 IP
  4. ecentricNick

    ecentricNick Peon

    Messages:
    351
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That'll teach me to rush the post!

    Good spot krt. As you say, should be...

    $siteurl = "http://www.youradd.com/savefile_php/";
     
    ecentricNick, Aug 7, 2007 IP
  5. worlddomain

    worlddomain Well-Known Member

    Messages:
    1,138
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    110
    #5
    thank you
    that was heaps quick
     
    worlddomain, Aug 7, 2007 IP