"copy.php" script want to copy all files(url in "url.txt" file) to this server, but return "error"!
Please help me.
note: i use copy function for copy file from another server (single file) in other script without any problem.
copy.php content:
Code:
<?php
$handle = @fopen("url.txt", "r");
if ($handle)
{
while (!feof($handle))
{
$buffer = fgets($handle, 4096);
$filename=basename($buffer);
copy($buffer,$filename);
}
fclose($handle);
}
?>
url.txt content:
Code:
http://googlea4.com/download/software/internet/Yahoo!_Messenger_Vista_10/GoogleA4.com_Yahoo!_Messenger_Vista_interface.jpg
http://www.googlea4.com/GoogleA4.com_Portable_Google_Chrome_2.0.156.1.rar
www.googlea4.com/mehr4/magazine/mehr4-booltan5-web.pdf
sefidshahr.googlea4.com/yadegari/Y1.pdf
Error:
Code:
Warning: copy(www.googlea4.com/mehr4/magazine/mehr4-booltan5-web.pdf ) [function.copy]: failed to open stream: No such file or directory in /home/fhlinux193/b/domain.com/user/htdocs/copy.php on line 9
Warning: copy(sefidshahr.googlea4.com/yadegari/Y1.pdf ) [function.copy]: failed to open stream: No such file or directory in /home/fhlinux193/b/domain.com/user/htdocs/copy.php on line 9
Warning: copy( ) [function.copy]: failed to open stream: No such file or directory in /home/fhlinux193/b/domain.com/user/htdocs/copy.php on line 9
_______________________________________________
|