note 36372 rejected from function.filesize by pollita
| From: | pollita@php.net | Date: | Tue, 07 Oct 2003 20:16:48 +0000 |
| Subject: | note 36372 rejected from function.filesize by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57978@lists.php.net to get a copy of this message | ||
Note Submitter: andrek@plattformad.com
----
$data = addslashes(fread(fopen($form_data, "r"), filesize($form_data)));
Using this to add pictures into a mysql db. The problem is that I am getting an error message from
that line. If anyone could please tell me how I get around this error that would be great.
Here is the error it creates:
Warning: filesize(): Stat failed for C:\WINNT\TEMP\phpDA8E.tmp (errno=2 - No such file or directory)
in D:\Internet\localhost\test\new4.php on line 13