Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/ Help :(

Discussion in 'PHP' started by Martyn, Dec 26, 2012.

  1. #1
    Hey

    I need a php expert to help me with an error on a script I am having.

    Here is the error
    Parse error: syntax error, unexpected T_STRING, expecting ')' in /home/ignite/public_html/config.php on line 111
    PHP:
    Here is the code for that area of the page

    //PayPal Settings
    $config['paypal'] = array(
    	'url' => 'https://www.paypal.com/cgi-bin/webscr', //url na koeto da prashta formata
    	'business' => '#, //Your PayPal ID or an email address associated with your PayPal account. Email addresses must be confirmed. 
    	'currency' => 'USD' //valuta v koqto e cenata EUR, USD etc.
    );
    
    //Emoticons
    $config['emoticons'] = array(
    	':D' => 'emoticon_grin.png',
    	':O' => 'emoticon_surprised.png',
    	']:)' => 'emoticon_evilgrin.png',
    	':))' => 'emoticon_happy.png',
    	':P' => 'emoticon_tongue.png',
    	':(' => 'emoticon_unhappy.png',
    	';)' => 'emoticon_wink.png',
    	':)' => 'emoticon_smile.png',
    );
    
    ?>
    PHP:
     
    Martyn, Dec 26, 2012 IP
  2. ActiveFrost

    ActiveFrost Notable Member

    Messages:
    2,072
    Likes Received:
    63
    Best Answers:
    3
    Trophy Points:
    245
    #2
    //PayPal Settings
    $config['paypal'] = array(
        'url' => 'https://www.paypal.com/cgi-bin/webscr', //url na koeto da prashta formata
        'business' => '#', //Your PayPal ID or an email address associated  with your PayPal account. Email addresses must be confirmed. 
        'currency' => 'USD' //valuta v koqto e cenata EUR, USD etc.
    );
    
    //Emoticons
    $config['emoticons'] = array(
        ':D' => 'emoticon_grin.png',
        ':O' => 'emoticon_surprised.png',
        ']:)' => 'emoticon_evilgrin.png',
        ':))' => 'emoticon_happy.png',
        ':P' => 'emoticon_tongue.png',
        ':(' => 'emoticon_unhappy.png',
        ';)' => 'emoticon_wink.png',
        ':)' => 'emoticon_smile.png'
    );
    
    ?>
    PHP:
     
    ActiveFrost, Dec 26, 2012 IP
  3. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #3
    If you didn't catch it, you have a comma after the last item in

    $config['emoticons'] = array(

    Take it out.


    ':)' => 'emoticon_smile.png'


    not

    ':)' => 'emoticon_smile.png',
     
    Rukbat, Dec 30, 2012 IP