Check the following lines in your phi.ini file.
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
Edward Dudlik
Becoming Digital
www.becomingdigital.com
----- Original Message -----
From: "Jonathan Pitcher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, 25 September, 2003 13:22
Subject: [PHP] POST Variable Empty
I am pulling my hair trying to figure this out. Maybe some of you can
shed some light on the problem.
I am uploading a file through a web connection using the $_FILE array.
Works perfectly on small files. The code executes and it goes through
the script like a champ.
BUT ...
When I try to upload a larger file it fails. I get no Errors from PHP.
The only way I knew it wasn't working is because my script is set up
to catch errors.
I checked Some of the other POST values to see if they had any value in
them. None of them did. I even did a print_r($_POST) and it printed a
blank array. So just to be stupid I tried printing the $_GET variable
and it only had the information I was passing in the URL, none of the
form information from the previous page.
I have tried different files and different names for the files. Still
the POST variable is empty. But when I use a smaller file the process
works perfectly.
Any ideas or suggestions would be greatly appreciated.
Jonathan Pitcher
********************** PHP INFO ******************************
PHP Version 4.3.0
System FreeBSD 4.4-RELEASE FreeBSD 4.4-RELEASE #9: Thu Jan i386
Build Date Jan 10 2003 17:41:54
Configure Command './configure'
'--with-apxs=/usr/local/apache/1.3.27/bin/apxs'
'--with-config-file-path=/usr/local/lib' '--disable-debug'
'--enable-memory-limit' '--enable-zend-multibyte' '--with-regex=system'
'--enable-mbstring=all' '--enable-mbregex' '--enable-dio'
'--enable-versioning' '--with-msql=shared' '--with-bz2=shared,/usr'
'--enable-sockets=shared' '--with-pcre-regex=/usr/local'
'--with-iconv=shared,/usr/local' '--with-gdbm=shared,/usr/local'
'--with-db3=shared,/usr/local' '--with-gettext=shared,/usr/local'
'--with-curl=shared,/usr/local/curl' '--with-openssl=shared,/usr'
'--with-pgsql=shared,/usr/local/pgsql' '--with-openssl=/usr'
'--with-gd=shared,yes' '--enable-gd-native-ttf=shared'
'--with-freetype-dir=shared,/usr/local' '--with-ttf=shared,/usr/local'
'--with-jpeg-dir=shared,/usr/local' '--with-png-dir=shared,/usr/local'
'--with-t1lib=shared,/usr/local' '--with-zlib=/usr'
'--with-zlib-dir=/usr' '--enable-ftp=shared'
'--with-imap=shared,/usr/local' '--with-mcrypt=shared,/usr/local'
'--with-mhash=shared,/usr/local' '--with-dom=shared,/usr/local/libxml2'
'--with-dom-xslt=shared,/usr/local'
'--with-dom-exslt=shared,/usr/local'
'--with-mysql=shared,/usr/local/mysql' '--with-zlib-dir=/usr'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/lib/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib,
compress.bzip2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php