Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

upload from url

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

upload from url

Postby majid1363 » Fri Nov 02, 2012 1:15 am

i want to upload a file to my server from a url
i searched and i found this code:
define('BUFSIZ', 4095);
$url = '';
$rfile = fopen($url, 'r');
$lfile = fopen(basename($url), 'w');
fwrite($lfile, fread($rfile, BUFSIZ), BUFSIZ);

my problem is that the url is from a file sharing site that have user and password for download
how can i put user and pass to downalod in this code?
New php-forum User
New php-forum User
Posts: 1
Joined: Fri Nov 02, 2012 1:07 am

Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.