PDA

View Full Version : how to obtain certain files from a external usb drive or photocamera w/ PHP?


mofo
04-14-2005, 02:43 AM
Hello helpers!!

Anyone knows how to obtain files from a usb photocamera or usb external drive, using a PHP script?

I need to recover all the pics in a camera connected in an USB port.

Thanks in advance

Velox Letum
04-14-2005, 02:47 AM
The copy() (http://us3.php.net/manual/en/function.copy.php) function should be able to help you. Just input the correct drive name and path, and the destination (including filename).

4xz
04-16-2005, 11:34 AM
This will only work if the USB stick is connected directly to the webserver.

JamieR
04-16-2005, 11:54 AM
If he was running php locally, then it wouldn't be a problem.

Velox Letum
04-16-2005, 05:03 PM
You could use an upload script.