I tried to save binary data in mysql, but i received this text when tried to run the script:
Warning: fopen("image.jpg","r") - No such file or directory in 'path' on line 6
Warning: Unable to find file identifier 0 in 'path' on line 6
Warning: Unable to find file identifier 0 in 'path' on line 16
The line of code that i use is the following:
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
This script seams to work in some servers, but but in the one that i need it doesn´t seem to work properly...
Why?
How can i fix it?