Hello group,
I have a html form, which makes me able to upload some files to my database. I'm wondering if it is possible to compress that file and after compression send it to my database. I have made something like this, but it's not working:
$file = addslashes(fread(fopen($form_file, "rb"), filesize($form_file)));
$compress_file = bzcompress($form_file);
So basicaly this shoud do something like this:
html form -> choosing a file -> submiting a form -> taking info about oryginal file -> compression oryginal file -> sending compressed file into the database...
Any ideas ?