Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:3445 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 83749 invoked from network); 16 Jul 2003 13:05:56 -0000 Received: from unknown (HELO snoopy.raindrop.co.uk) (195.167.243.72) by pb1.pair.com with SMTP; 16 Jul 2003 13:05:56 -0000 Received: by SNOOPY with Internet Mail Service (5.5.2653.19) id ; Wed, 16 Jul 2003 14:10:07 +0100 Message-ID: <50690EBF56DDD311837400105A69188F012F0DC9@SNOOPY> To: "'internals@lists.php.net'" Date: Wed, 16 Jul 2003 14:10:04 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: php Upload problems From: cmw@raindrop.co.uk (Chris Woollard) I am having a problem with a php upload script. it will allow me to upload small files (about 1Mb) but not larger ones (less than the upload_max_filesize). Can you help diagnose what the problem is? I have PHP Version 4.2.2 on Red Hat Linux 9. the entry's in php.ini and scripts are as follows ;;;;;;;;;;;;;;;; ; File Uploads ; ;;;;;;;;;;;;;;;; ; Whether to allow HTTP file uploads. file_uploads = On ; Temporary directory for HTTP uploaded files (will use system default if not ; specified). upload_tmp_dir = /tmp ; Maximum allowed size for uploaded files. upload_max_filesize = 65M -------------------------------- index.htm Administration - upload new files

Upload new news files

Upload this file:
------------------------------------- phpupload.php "; if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) { chmod ("$uploadfile", 0766); print "File is valid, and was successfully uploaded.\n\n"; print "Here's some more debugging info:\n\n"; print_r($_FILES); } else { print "Possible file upload attack! Here's some debugging info:\n\n"; print_r($_FILES); } ?> ---------------------------------------------------------------------------- Manhattan Advanced Property Management Software http://www.manhattansoftware.com Raindrop Group 40 Piccadilly London W1J ODR Tel: +44 (0)207 734 1091 Fax: +44 (0)207 734 1095 This e-mail contains proprietary information some or all of which may be legally privileged. It is for the intended recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.