ID: 21900 Comment by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Apache2 related Operating System: FreeBSD 4.7-Stable PHP Version: 4.2.3 New Comment:
on a other machine using the same php/apache the script is working. Previous Comments: ------------------------------------------------------------------------ [2003-01-27 08:54:38] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-01-27 08:32:57] [EMAIL PROTECTED] Hello, I have a strage problem with php 4.2.3 and apache 2.0.44, the latest available versions in port tree of freebsd. I'm using a standard php.ini. The following occurs, when i upload a file using the following script : <form enctype="multipart/form-data" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="1000000"> Upload een foto: <input name="userfile" type="file"> <input name="submitknop" type="submit" value="Send File"> </form> <? if (!empty($_FILES)) { move_uploaded_file ( $_FILES['userfile']['tmp_name'], './test/'.$_FILES['userfile']['name'] ); } ?> I get a malformed file ( http://e.serial.nl/fout.jpg ) Is there a solution ? thanks ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21900&edit=1