Hi,
I'm looking at developing a little php program that would let me mount a drive, browse through it, and copy files to the server (which will actually be the browsing computer, through a local host system), and then also do checksum md5 on the files on the drive and the files that were copied.
The code that was suggested to me was:
<?php
echo "offloading DRIVE...";
exec('mount -t fat /dev/sdb1 /mnt/reddrive');
exec('rsync -a /mnt/reddrive/ /mnt/driveDownloadTo/');
exec('umount /dev/sdb1');
echo "DONE!";
?>
I do want it to be a little more interface based then the above script (would have a mount buttion, and a transfer button, a radio button to check off if they want checksums done or not, ect.), but just wondering if that is going in the right direction? Or is this done is a better way?
I'm thinking about getting AJAX or Javascript or something involved to make two windows (a to be uploaded window and a uploaded window) that update in real-time with drag and drop.
I want it to run on Windows, Linux, and Mac, all browser based. It's literally a Media Off-loader.... cameras are starting to shoot straight to harddrive, and its a way to offload the media from the camera harddrive to a harddrive (internal or external) on the off-load computer. I want to make a portable php-based off-loader to move that media around. If you goto http://www.red.com/store/501001 that's an example of one of the camera harddrives.
The page itself would be something similar to this:
http://www.r3ddata.com
except that is C++ based I want it to be PHP-based.