Need help converting VB.NET 08 code to PHP - Getting direct link from MediaFire.com
-
I was looking for a way to get a direct link from mediafire's file hosting service. By default, when a user visits a download link, he will be presented with a download page where he has to wait for the download to be processed and then a link will appear. This link will appear in the div id 'download_link'. I googled and found a VB.NET 2008 solution to this, but I need the code in PHP Here is the VB.NET 2008 solution: http://www.vbforums.com/showthread.php?t=556681 Any help is greatly appreciated. Cheers, KrX
-
Answer:
This VB.NET code relies on access to the client DOM through the WebBrowser .NET control. You could port this to PHP by: Using the cURL functions to get the HTML Loading them into an HTML parser to find the correct link Redirecting the user with Header('Location: '.download_link) I think it would be better to recommend to your users the http://skipscreen.com/ Firefox extension, though. A client solution will always be easier.
Sherman at Stack Overflow Visit the source
Related Q & A:
- How to save from DatagridView to Database VB.NET?Best solution by Stack Overflow
- Can you help me learn how to copy and paste an html link to my website?Best solution by Yahoo! Answers
- Can't delete name off messenger address list, error code 40402,need help pls?Best solution by Yahoo! Answers
- I need help with writing up the Java Code.Best solution by Yahoo! Answers
- I need help with getting my first part time job.Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.