Go Back   CodingForums.com > :: Server side development > PHP > Post a PHP snippet

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rating: Thread Rating: 7 votes, 5.00 average.
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-09-2013, 10:01 PM   PM User | #601
phpLover7
New Coder

 
Join Date: Jan 2013
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
phpLover7 is an unknown quantity at this point
Look bro if You can Make the script work and php 5.2
i have tired to search hosting and i don't have money to buy vps is you can do that's please
phpLover7 is offline   Reply With Quote
Old 01-09-2013, 11:22 PM   PM User | #602
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by phpLover7 View Post
Look bro if You can Make the script work and php 5.2
i have tired to search hosting and i don't have money to buy vps is you can do that's please
The script is clearly advertised as working with php version 5.3 or greater. I have no intention of catering to a previous version of PHP, especially when the software requirements are so prominently displayed.

Also, if your web host is still using php 5.2, then that is generally an indication that they are not updating servers with the latest (security!) updates as well. Do yourself a favor: Steer clear of web hosting companies that are not periodically updating their server software to the latest versions.

A VPS or dedicated server is ideal for my script. In fact, if you do some searching, you will find some good deals on VPS hosting. The advantage of having your own server is that you can load your server with whatever software you like. (In shared hosting, as I am sure you are aware, you are restricted to the software and versions of that software that are preloaded on the server.)

That said, if you do a search of this forum thread, you will see the following: http://www.codingforums.com/showpost...&postcount=480. Please understand: I have absolutely no experience with this web hosting company, so I cannot personally vouch for their service. But if this hosting company worked for someone else, then it may work for you as well. See this feature list: http://www.hostforweb.com/packages/compare.html. I would also contact them first and find out what versions of FFmpeg (should be latest stable version for the OS) and PHP (at least 5.3) they are running, and whether or not they have the required codecs installed on their server (at least libmp3lame, libx264, libvo_amrwbenc for Linux).

Hope that helps. Good luck!
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 01-10-2013, 03:54 PM   PM User | #603
phpLover7
New Coder

 
Join Date: Jan 2013
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
phpLover7 is an unknown quantity at this point
thanks for answer i have fixed the probleme with php.ini
can You add My website to the List in your Thread

www . You4mp3 . cOm Thanks bro
phpLover7 is offline   Reply With Quote
Old 01-10-2013, 04:34 PM   PM User | #604
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by phpLover7 View Post
can You add My website to the List in your Thread

www . You4mp3 . cOm Thanks bro
Done! The site looks good!
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 01-10-2013, 05:06 PM   PM User | #605
phpLover7
New Coder

 
Join Date: Jan 2013
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
phpLover7 is an unknown quantity at this point
Thanks You are The Best Bro
phpLover7 is offline   Reply With Quote
Old 01-16-2013, 01:07 AM   PM User | #606
phpLover7
New Coder

 
Join Date: Jan 2013
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
phpLover7 is an unknown quantity at this point
Hello dear i want just Now why This Video its not convreted

www . youtube.com/ watch?v=_zg1a4r9zmE
Www . you4mp3 . com
phpLover7 is offline   Reply With Quote
Old 01-16-2013, 02:40 AM   PM User | #607
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by phpLover7 View Post
Hello dear i want just Now why This Video its not convreted

www . youtube.com/ watch?v=_zg1a4r9zmE
Www . you4mp3 . com
When I visit that video in a browser, I am told that the video is blocked in my particular country. There are few ways to circumvent this protection, and none of those ways are entirely effective.
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 01-17-2013, 08:36 PM   PM User | #608
phpLover7
New Coder

 
Join Date: Jan 2013
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
phpLover7 is an unknown quantity at this point
Oki bro about Https can you fixed
phpLover7 is offline   Reply With Quote
Old 01-18-2013, 11:34 AM   PM User | #609
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by phpLover7 View Post
Oki bro about Https can you fixed
In the next version of the software, I will allow video page URLs formatted as follows:

Quote:
https://www.youtube.com/watch?v=-U7_iNIgGjc
https://www.dailymotion.com/video/xpx9ah_amazing-dunk
All who have previously purchased the paid-for version of the software will receive this new version for free (via your Tradebit.com email addresses).

Is that what you are looking for?

Edit: Https-formatted URLs are already permitted in the free version of the software (because the free version does not validate video page URLs). This issue only needs to be addressed in the paid-for version.


Edit: In the meantime, you can patch the paid-for version as follows:

In VideoConverter::ValidateConversionForm() in VideoConverter.class.php, change:
PHP Code:
                if (preg_match('/^('.preg_quote($host['url_root'], '/').')/i'$vidUrl) == 1)
                {
                    
$vidHostName $host['name'];
                    break;
                } 
..to...
PHP Code:
                if (preg_match('/^('.preg_replace('/^(http(s)?)/'"http(s)?"preg_quote($host['url_root'], '/')).')/i'$vidUrl) == 1)
                {
                    
$vidHostName $host['name'];
                    break;
                } 
And in VideoConverter::RetrieveVidInfo() in VideoConverter.class.php, change:

PHP Code:
                case 'Dailymotion':
                    
$apiResponse json_decode(file_get_contents(preg_replace('/^(http:\/\/www)/i'"https://api"current(explode('?'$vidUrl))).'?fields=id,title,thumbnail_medium_url,duration'), true); 
...to...

PHP Code:
                case 'Dailymotion':
                    
$apiResponse json_decode(file_get_contents(preg_replace('/^(http(s)?:\/\/www)/i'"https://api"current(explode('?'$vidUrl))).'?fields=id,title,thumbnail_medium_url,duration'), true); 
That should fix the problem, in general, for now. In the next release of the paid-for version, I will provide more control over which video hosts allow https video page URLs.
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)

Last edited by chump2877; 01-18-2013 at 12:08 PM..
chump2877 is offline   Reply With Quote
Old 01-25-2013, 03:10 AM   PM User | #610
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Hello everyone,

I have just finished updating the paid-for version of my software. New in this version:
  1. The conversion form now accepts https:// video page URLs from both YouTube and Dailymotion. This feature can be toggled on and off for each video hosting site via $_videoHosts array in config.class.php.
  2. Fixed audio codec problem with 3gp conversion on Linux
  3. Added new JavaScript bookmarklet/browser plugin that enables your site visitors to convert videos directly on YouTube and Dailymotion video pages. Bookmarklet loads conversion interface directly into video page, and forwards user to your site for actual conversion and converted file retrieval.

The following files/directories were changed/added:
  1. bookmarklet/ new
  2. bookmarklet.php new
  3. config.class.php updated
  4. index.php updated
  5. VideoConverter.class.php updated

All previous customers who have purchased the paid-for version of my app are receiving this new, updated version via the e-mail addresses that you provided at Tradebit.com.

Please report any issues with either the paid-for version or the free version in this forum thread. Your feedback is encouraged. Donations are welcome!

Thanks!
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 02-04-2013, 03:36 AM   PM User | #611
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
it may be this dailymotion no longer works?
I've tested it on my home pc and root server
Luckyplaya is offline   Reply With Quote
Old 02-04-2013, 03:47 PM   PM User | #612
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Luckyplaya View Post
it may be this dailymotion no longer works?
I've tested it on my home pc and root server
It's still working fine for me...can you provide URL of the video or videos that you can't convert?
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)
chump2877 is offline   Reply With Quote
Old 02-05-2013, 03:19 AM   PM User | #613
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
Quote:
Originally Posted by chump2877 View Post
It's still working fine for me...can you provide URL of the video or videos that you can't convert?
I use http://www.dailymotion.com/video/xpx9ah_amazing-dunk

My Site: http://video2mp3.eu/

and as a thumbnail image displayed youtube: http://img.youtube.com/vi/oops/1.jpg


One thing I should mention, I now use a Windows system

Error Video download!


Name:
Format: MP3
Status: Video Downloading - 0%
Luckyplaya is offline   Reply With Quote
Old 02-05-2013, 03:45 AM   PM User | #614
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Originally Posted by Luckyplaya View Post

One thing I should mention, I now use a Windows system
There's a reason why I sell both a Linux and Windows version of my software. If you have the Linux version, it's not going to work correctly on a Windows server. The code is similar, but the different versions specifically cater to each platform.

Both the Linux and Windows versions are working fine for me.

Edit: It doesn't make a whole lot of sense for me to help you troubleshoot why the Linux version won't work on a Windows server. My advice to you: Switch back to a Linux server or buy the Windows version of the software.
__________________
Regards, R.J.

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

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)

Last edited by chump2877; 02-05-2013 at 03:52 AM..
chump2877 is offline   Reply With Quote
Old 02-05-2013, 11:36 AM   PM User | #615
Luckyplaya
New Coder

 
Join Date: Sep 2012
Location: Germany
Posts: 32
Thanks: 8
Thanked 1 Time in 1 Post
Luckyplaya is an unknown quantity at this point
Quote:
Originally Posted by chump2877 View Post
There's a reason why I sell both a Linux and Windows version of my software. If you have the Linux version, it's not going to work correctly on a Windows server. The code is similar, but the different versions specifically cater to each platform.

Both the Linux and Windows versions are working fine for me.

Edit: It doesn't make a whole lot of sense for me to help you troubleshoot why the Linux version won't work on a Windows server. My advice to you: Switch back to a Linux server or buy the Windows version of the software.
YouTube works
Luckyplaya is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, class, conversion, dailymotion, ffmpeg, mp3, php, script, video, youtube

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:16 AM.


Advertisement
Log in to turn off these ads.