Guys, I saw a site wherein it allows 2 ways of upload. First one is the ordinary upload using <input type="file" name="file" />. The other one is using a <input type="text" name="textfield" /> and the user will enter a URL i.e. www.mydomain.com/myvideo.avi. Any ideas on how can i do that using the URL. Thanks, Mike
Use the file_get_contents function to get desired file source into a string, then fopen, fwrite and fclose to write it to your server. If its installed, an alternative to file_get_contents is to use the cURL library which gives you a few more advanced options.