PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

Move an item

The moveItem() operation moves an item from one key (or directory) to another.

Note

Not all services support moving natively. If this is the case the adapter will simulate the operation, fetching the item, storing it under the target path, then deleting the original file.

Example 102. Moving an item

<?php
$storage
->moveItem(
    
'/my/remote/path/picture.jpg',
    
'/anothor/remote/dir/newpicture.jpg'
);

Zend Framework