Getting and Putting Files with FTP
<?php $file_name = 'somefile.ext'; $fp = fopen($file_name, 'rb'); if ($fp) { $data = fread($fp, filesize($file_name)); fclose($fp); } ?>