Quote:
Originally Posted by Komshir
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.