Connecting Tech Pros Worldwide Help | Site Map

Problem with a code

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 12:30 AM
Sven Dzepina
Guest
 
Posts: n/a
Default Problem with a code

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, 12:30 AM
Michael Willcocks
Guest
 
Posts: n/a
Default 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]



 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.