I have a scrip that takes a file name from a DB then reads the file into binary format with this function:
$filedata = file_get_contents($longdir.$row['file']);
Only problem is that for large files it wont work. i.e. i have some files that are 5 and 6 MB (could be larger) that it will not parse. Any ideas?