pro_se Posted January 6, 2007 Share Posted January 6, 2007 Hello all, I have not posted here in a while...I keep getting this error: Parse error: syntax error, unexpected ',' in /home/*hidden*/*from*/*you*/includes/functions_base.inc.php on line 843with this code...[code] <?phpfunction int2folderperm ($int) { $int & FOLDER_FRIEND_ACCESS; $int & FOLDER_FAMILY_ACCESS;return array ('friend' => (int), 'family' => (int)); //line 843 } ?>[/code]any suggestions? Quote Link to comment Share on other sites More sharing options...
utexas_pjm Posted January 6, 2007 Share Posted January 6, 2007 I'm not really sure what you're trying to accomplish here. But the reason you're getting the unexpected ',' error is because you are using the cast operator "(int)" with no parameter. Maybe you meant to do this?[code] <?phpfunction int2folderperm ($int) { $foo = $int & FOLDER_FRIEND_ACCESS; $bar = $int & FOLDER_FAMILY_ACCESS;return array ('friend' => (int)$foo, 'family' => (int)$bar); //line 843 } ?>[/code]Best,Patrick Quote Link to comment Share on other sites More sharing options...
pro_se Posted January 6, 2007 Author Share Posted January 6, 2007 thanks, that got rid of the error but now its not showing what file is public and what file is private... i am using uploader v6.3 and that segment/ function of code is used to convert the integer into a string for example it would convert 1 to public.. how would that work with this particular function..?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.