我的网站上出现错误 解析错误:语法错误, 第111行的/home/**/public_html/config.php中意外的T_STRING,期待')'
FROM行107到112中的我的PHP代码是:
//PayPal Settings
$config [ 'paypal' ] = array(
'url' => ' https://www.paypal.com/cgi-bin/webscr ' , //url na koeto da prashta formata
'business' => 'http://startmarketplace.com/themeforestclone-demo/, / Your PayPal ID or an email address
' currency ' => ' USD ' //valuta v koqto e cenata EUR, USD etc.
);
起始行是107.最后一行是第112行。
我收到错误的行是(111)是: 'currency'=> 'USD'// valuta v koqto e cenata EUR,USD等
Plz帮助..谢谢:)
答案 0 :(得分:6)
此代码应该有效:
<?php
//PayPal Settings
$config [ 'paypal' ] = array(
'url' => ' https://www.paypal.com/cgi-bin/webscr ' , //url na koeto da prashta formata
'business' => 'http://startmarketplace.com/themeforestclone-demo/', // Your PayPal ID or an email address
'currency' => ' USD ' //valuta v koqto e cenata EUR, USD etc.
);
?>
您只是忘了在&#34;业务&#34;中添加引号(&#39;) $ config数组中的键。
答案 1 :(得分:0)
//PayPal Settings
$config['paypal'] = array(
'url' => 'https://www.paypal.com/cgi-bin/webscr',
'business' => 'http://startmarketplace.com/themeforestclone-demo/',
'currency' => 'USD',
);