jashsayani Posted November 17, 2008 Share Posted November 17, 2008 I have written a PHP script and it has a error. Parse error: parse error, unexpected '(', expecting '}' in invite.php on line 20 Line 20: <fb:req-choice url="{$facebook->get_add_url()}" label="Jash Sayani"/> get_add_url is a function, so I need to use () and I have also closed { } So how do I overcome this error...? Link to comment https://forums.phpfreaks.com/topic/133096-parse-error-need-help/ Share on other sites More sharing options...
cooldude832 Posted November 17, 2008 Share Posted November 17, 2008 that doesn't look like php can we see more lines Link to comment https://forums.phpfreaks.com/topic/133096-parse-error-need-help/#findComment-692147 Share on other sites More sharing options...
JasonLewis Posted November 17, 2008 Share Posted November 17, 2008 I don't think you can place functions between curly braces, only variables. Try breaking out of the string to do it instead. Link to comment https://forums.phpfreaks.com/topic/133096-parse-error-need-help/#findComment-692405 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.