Im getting this error at Site5 hosting...
Any help?
Code:
[18-Sep-2012 11:54:57] PHP Deprecated: Function eregi() is deprecated in /home/tubeconv/public_html/VideoConverter.class.php on line 230
[18-Sep-2012 11:54:57] PHP Deprecated: Function eregi() is deprecated in /home/tubeconv/public_html/VideoConverter.class.php on line 230
[18-Sep-2012 11:54:58] PHP Warning: Division by zero in /home/tubeconv/public_html/VideoConverter.class.php on line 121
[18-Sep-2012 11:54:58] PHP Warning: Division by zero in /home/tubeconv/public_html/VideoConverter.class.php on line 121
Im using updated version of paid script.
If you turn off error reporting, then you won't see any of those warnings. (You should ALWAYS turn of error reporting on a live, production-level site. Hackers can use the info in error messages to cause harm to your site.)
At the top of index.php, I have already disabled error reporting via this line of code:
If you turn off error reporting, then you won't see any of those warnings. (You should ALWAYS turn of error reporting on a live, production-level site. Hackers can use the info in error messages to cause harm to your site.)
At the top of index.php, I have already disabled error reporting via this line of code:
PHP Code:
ini_set('display_errors',0);
Its not still gonna fix my problem im having... In previous page somebody gave me 2 lines to change, then it got stuck to downloading and it gives me "Error downloading video" message. Before changing those lines it got stuck to converting.
Its not still gonna fix my problem im having... In previous page somebody gave me 2 lines to change, then it got stuck to downloading and it gives me "Error downloading video" message. Before changing those lines it got stuck to converting.
Any idea whats wrong?
So if you change the code back to the way it was, and you disable error reporting, you still have trouble with converting?
First of all, I strongly suggest that you search this forum thread for ways to troubleshoot this issue. I have addressed this problem many times before.
Second, what is the URL of your site? (Is the site live and online?) I can take a quick look...Also, you could paste a copy of a FFmpeg log file from a failed conversion, and I can see if there are any issues there.
Its not still gonna fix my problem im having... In previous page somebody gave me 2 lines to change, then it got stuck to downloading and it gives me "Error downloading video" message. Before changing those lines it got stuck to converting.
Any idea whats wrong?
Those 2 lines fix for php 5.2 which is way outdated. If a host is still using it, than do not use them, it's a sign of no security updates. centrix is running cpanel which always uses the lateste version of apache2 & php5.3 or 5.4 now.
I tell you a secret, if the server is misonfigured or heavily configured like mine is for major speed and caching, it most likely will not work. I set up another server defaulted with some security to it and works great.
google page speed messes with it, APC as well memcache(d) as well.
for $20 - $30 a month you can get your own VPS from a decent provider and won't be oversold. if you are looking to advance beyond shared hosting, i suggest it.
If you want me to implement this for you, I will have to charge you to do this custom work at my hourly rate. Please contact me privately if you are interested.
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);
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.
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.
I'm running php5.2, can i somehow replace it with different function?
I'm running php5.2, can i somehow replace it with different function?
You could replace with create_function, but this is not the only part of the code that requires PHP 5.3. For example, the download/conversion progress bar will not work with PHP 5.2.
I highly recommend that you either upgrade to 5.3 or find another server/hosting company that supports 5.3. As "drakus" noted earlier, recently, in this thread:
Quote:
If a host is still using it [PHP 5.2], than do not use them, it's a sign of no security updates.
I'm struggling to find a hosting with proper ffmpeg
Either they have PHP 5.2 or they just mention ffmpeg but don't have it on the server..
Any suggestions?
I'm struggling to find a hosting with proper ffmpeg
Either they have PHP 5.2 or they just mention ffmpeg but don't have it on the server..
Any suggestions?
My suggestion is to opt for a VPS, cloud, or dedicated server. This type of plan will give you more control over your environment and is more suited to resource-intensive sites. You basically install whatever you want. There are some reasonably priced VPS/cloud hosting plans out there, but you have to be willing to spend more than you would for shared hosting. With a VPS, you will be able to install at least PHP 5.3/FFmpeg/ffmpeg-php extension, and you could even compile it yourself via a simple web interface if your plan includes WHM/cPanel (if you aren't comfortable with SSH and the comand line interface)...
After 2 days searching, applying and claiming my money back from several hosters I finally found one with ffmpeg and PHP 5.3
It is HostForWeb http://www.hostforweb.com/1873.html
It will cost you $6.36 for 1 month when you use promotional code "autumn"
I think it is a good choice for those who want to test their scripts first before applying for more serious hosting.