Hi again php users!
Look at this code:
if (empty($form_data)) {$form_data = "none.png"}
$d = addslashes(fread(fopen($form_data, "rb"), filesize($form_data)));
I use it to put an image to the database.
It works fine on Windows, but on linux it says:
Warning: fopen("none","rb") - No such file or directory in /home/delcio/hosting/controle.php on line 125
Warning: Supplied argument is not a valid File-Handle resource in /home/delcio/hosting/controle.php on line 125
Is there any other better way to do this and solve that tricky problem?