Connecting Tech Pros Worldwide Help | Site Map

Problem with a code

  #1  
Old July 17th, 2005, 01:30 AM
Sven Dzepina
Guest
 
Posts: n/a
Hello,

I have this code:
<?php
$fpload = fopen(''.$ziel.'', 'r');
$fpsave = fopen(''.$endname.'', 'w');

if ($fpload && $fpsave)
{
while ($data = fread($fpload,65563))
fwrite($fpsave,$data);

fclose($fpload);
fclose($fpsave);

echo 'Datei erfolgreich heruntergeladen / Data downloaded
successfully';

}else{
echo 'fehler / error';
}

?>

But I noticed, that I can't open FTP links like ftp://url.com/iosd.exe ?!
How I can add this function into my code.

Gretting.


  #2  
Old July 17th, 2005, 01:30 AM
Michael Willcocks
Guest
 
Posts: n/a

re: Problem with a code


Have a look into:

http://au3.php.net/ftp


"Sven Dzepina" <mail@styleswitch.de> wrote in message
news:3f898dee$0$6589$9b4e6d93@newsread4.arcor-online.net...[color=blue]
> Hello,
>
> I have this code:
> <?php
> $fpload = fopen(''.$ziel.'', 'r');
> $fpsave = fopen(''.$endname.'', 'w');
>
> if ($fpload && $fpsave)
> {
> while ($data = fread($fpload,65563))
> fwrite($fpsave,$data);
>
> fclose($fpload);
> fclose($fpsave);
>
> echo 'Datei erfolgreich heruntergeladen / Data downloaded
> successfully';
>
> }else{
> echo 'fehler / error';
> }
>
> ?>
>
> But I noticed, that I can't open FTP links like ftp://url.com/iosd.exe ?!
> How I can add this function into my code.
>
> Gretting.
>
>[/color]



Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with code =?Utf-8?B?TGlhbSBNYWM=?= answers 0 August 24th, 2007 10:55 AM
Problem with Code Schmidty answers 7 January 15th, 2007 06:05 PM
Problem with code in Firefox, works OK in Netscape 7.1 bspittles@googlemail.com answers 5 April 20th, 2006 11:36 PM
problem with code mrvendetta1@yahoo.com answers 18 January 25th, 2006 03:15 PM
problem with code download file - two window file download Sam -- answers 2 November 19th, 2005 07:48 AM