php - Saving array of remote images in server -


so, have code, didn't worked

<? foreach($itemlist $item) {     $imagepic = $item['mainpictureurl'];     for($k=0;$k<count($imagepic);$k++){             echo $imagepic++;             echo "<br>";             $isok=copy($imagepic[$k] , $_server . dirname(__file__).'/test/item_'.($k+1).'.jpg');             if($isok==true){                 echo' success!';               }else{                 echo ' fail';               }         }     } ?> 

i kept on getting error

warning: copy(h) [function.copy]: failed open stream: no such file or directory in /home/decultur/public_html/shop/templatescustom/main/itemlist.html on line 111 fail 

what missing, please tell me

$_server array, path getting made starting path array. need find actual value you're looking , use proper index that.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -