note 85600 rejected from function.copy by felipe
| From: | felipe@php.net | Date: | Tue, 09 Sep 2008 02:09:51 +0000 |
| Subject: | note 85600 rejected from function.copy by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-144256@lists.php.net to get a copy of this message | ||
Note Submitter: heshanmw at gmail dot com
----
Hi all
I use copy function to copy images from a remote.
code as below
<?php
if(!@copy($url,$path_to_save)){ // copy file in to the local
$errors= error_get_last();
echo "COPY ERROR: ".$errors['type'];
echo "\n".$errors['message'];
print ("Image Copy Faild!\n Please Try Again!");
}
?>
When I execute the code I got an error
[function.copy]: failed to open stream: no suitable wrapper could be found
Why is that?
I'm using PHP 5.2