By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,825 Members | 1,429 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,825 IT Pros & Developers. It's quick & easy.

Problem with a code

P: 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.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Have a look into:

http://au3.php.net/ftp
"Sven Dzepina" <ma**@styleswitch.de> wrote in message
news:3f**********************@newsread4.arcor-online.net...
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.


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.