Re: [PHP3] R: [PHP3] copy files in PHP

From: Date: Mon, 19 Jun 2000 17:23:01 +0000
Subject: Re: [PHP3] R: [PHP3] copy files in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-2210@lists.php.net to get a copy of this message
add this code aqfter u open the file: while($ret = fgets($fp,4096){$string .= $ret;} now all the data u need is locate in $ret so u can save it : $w = open("test150.jpg","a"); fputs($w,$string); close($w); now the file was saved on ur local drive. goodlack Giulio Borrini wrote: > i have readen it. > but i returns to me only 2 with this funcion: > > $fp = fopen("http://live.cell-cam.com/test150.jpg", > "r"); > > how can copy that file to my server?? > > ----- Original Message ----- > From: <idban@satunet.com> > To: PHP Mailing List <php3@lists.php.net> > Sent: Monday, June 19, 2000 9:31 AM > Subject: Re: [PHP3] copy files in PHP > > > how can i tell to php to take a file from a web adress and copy it to my > > sever?? > > > > --- > > read more on the manual about fopen(); > > > > > > -- > > idban secandri, mail send on June 19, 2000 > > To have one joy, you must share it. > > http://php.klik.or.id || joy inside! > > > > > > > > -- > > PHP 3 Mailing List <http://www.php.net/> > > To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net > > To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net > > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP 3 Mailing List <http://www.php.net/> > To unsubscribe, send an empty message to php3-unsubscribe@lists.php.net > To subscribe to the digest, e-mail: php3-digest-subscribe@lists.php.net > To search the mailing list archive, go to: > http://www.php.net/mailsearch.php3 > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#2210) next »