ID: 8525 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Feedback Status: Closed Bug Type: Filesystem function related Assigned To: Comments: No feedback. Previous Comments: --------------------------------------------------------------------------- [2001-01-04 05:08:53] [EMAIL PROTECTED] Do you use PHP as CGI or module? IIRC you can't use stripslashes($bild) in the module version on Win32. Instead you have to access directly to $bild. -Martin --------------------------------------------------------------------------- [2001-01-02 15:18:04] [EMAIL PROTECTED] 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. --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=8525&edit=2 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]