Problem with a code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sven Dzepina

    Problem with a code

    Hello,

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

    if ($fpload && $fpsave)
    {
    while ($data = fread($fpload,6 5563))
    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.


  • Michael Willcocks

    #2
    Re: Problem with a code

    Have a look into:




    "Sven Dzepina" <mail@styleswit ch.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(''.$endna me.'', 'w');
    >
    > if ($fpload && $fpsave)
    > {
    > while ($data = fread($fpload,6 5563))
    > 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]



    Comment

    Working...