View Single Post
Old 09-25-2012, 04:30 AM   PM User | #475
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,549
Thanks: 15
Thanked 131 Times in 124 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Komshir View Post
i'm getting this error:

Parse error: syntax error, unexpected T_FUNCTION in /home/admin/domains/xxx.xx[real domain]/public_html/youtubedown/VideoToMp3Converter/YouTubeToMp3Converter.class.php on line 188

the line is $url = preg_replace_callback('/(&type=)(.+?)(&)/', function($match){return $match[1].urlencode($match[2]).$match[3];}, $url);

i enabled error_reporting.

the script is not working
What version of PHP are you running? You need at least PHP 5.3 for anonymous functions to work as type "callable" arguments. I'm guessing that is the source of your error.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
[Related videos and tutorials are also available at my YouTube channel]
chump2877 is offline   Reply With Quote