Jump to content

unexpected T_FUNCTION


carnold

Recommended Posts

Hello all! I am trying to code something on my blog, a friends-list. I have the function and have inserted the following code where i want the friends-list to appear:

<h2><?php _e('My Friends'); ?></h2>

<?php if(function_exists('list_friends')

{

list_friends($FriendsOfUser, $tagBeginWrap, $tagEndWrap, $bLinkToBlog = True, $ShowPic = true, $pmLink = false, $lilist = false, $picsize = '16', $showname = true)

}?>

 

but this gives me a white screen. The error in my apache log is this:

PHP Parse error:  syntax error, unexpected T_FUNCTION in /srv/www/htdocs/sites/MTwG/wp-content/themes/LivingOS_DELTA/sidebar1.php on line 104

and this:

PHP Parse error:  syntax error, unexpected '{' in /srv/www/htdocs/sites/MTwG/wp-content/themes/LivingOS_DELTA/sidebar1.php on line 105

 

From the research i have done, this appears to be a syntax error, a semicolon on bracket not closed. I have tried a number of different combo's and still can not get this to work. Can someone help me with this?

Link to comment
https://forums.phpfreaks.com/topic/113825-unexpected-t_function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.