Page 1 of 1
upload a file from the web using PHP
Posted: Thu Apr 08, 2010 9:03 am
by Rksk
How to upload a file from the web using PHP?
Re: upload a file from the web using PHP
Posted: Thu Apr 08, 2010 9:32 am
by Neo
Re: upload a file from the web using PHP
Posted: Thu Apr 08, 2010 10:15 am
by Rksk
I want to download a file from a remote web server!
Re: upload a file from the web using PHP
Posted: Thu Apr 08, 2010 12:31 pm
by Neo
First post is,
How to upload a file from the web using PHP?
.
The next is,
I want to download a file from a remote web server!
.
Are you talking about the same question? If that is the case, I don't understand. Be descriptive... Do not put me on trying to figure out what you want.
If that is not the case, then you need to start a new topic for a different question.
Re: upload a file from the web using PHP
Posted: Thu Apr 08, 2010 3:34 pm
by Rksk
That is my question,
I want to copy a file from a website to my server using PHP ?
I said it as "uploading from the Web" because at the changing ROBOT.LK user avatar we can upload a image from PC or from the Web.

Re: upload a file from the web using PHP
Posted: Fri Apr 09, 2010 7:22 am
by Rksk
Code: Select all
<?php
if(!@copy('http://someserver.com/somefile.zip','./somefile.zip'))
{
$errors= error_get_last();
echo "COPY ERROR: ".$errors['type'];
echo "<br />\n".$errors['message'];
} else {
echo "File copied from remote!";
}
?>
Re: upload a file from the web using PHP
Posted: Fri Apr 09, 2010 5:51 pm
by Neo
This is the talent of Sri Lanka... Simple, but an excellent job.
Re: upload a file from the web using PHP
Posted: Wed Apr 21, 2010 5:35 am
by Mysoogal
great ! now my video encoding application can have remote upload possibility

thanks