about fopen() in php4
| From: | Yuan Xiaoqing | Date: | Wed, 20 Sep 2000 02:00:40 +0000 |
| Subject: | about fopen() in php4 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-2748@lists.php.net to get a copy of this message | ||
Dear Sir,
I have met a problem when I change php3 to php4. I find out the function fopen($photo,"r")
return different result in php3 and php4. Therefore, my code can not work again when it saves
picture into mysql database. Following is my code which needs to modify:
$data=addslashes(fread(fopen($photo,"r"),filesize($photo)));
Can anybody give me some suggestions? I look forward to your help.
Your sincerely,
Yuan Xiaoqing