|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-01-04 05:08 UTC] mj@php.net
[2001-03-09 21:22 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 21:00:01 2025 UTC |
I have problems with fileupload with the new version (4.04). With the old version ( 3.x) all worked fine. Look at this: $id=5; $smallpic = stripslashes($bild); if ((file_Exists($smallpic)) AND (!($smallpic==""))) { $fp = fopen($smallpic, "r"); $datei = fread($fp, filesize($smallpic)); fclose($fp); $smallname = $id."bild.jpg"; $fp = fopen("$bildpfad$smallname", "w+"); fwrite($fp, "$datei"); fclose($fp); } else $smallname=""; Normally, in $smallname should be the correct filename from the uploaded pic - but it's empty. It's empty, because the file does not exists. In $smallname I have something like "c:tempphp9005.TMP" - but I think this is incorrect. Well - with the old version (3.x) it worked fine.