Sorry, I meant to include those information.

Here is from php.ini
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
file_uploads  = On        ; Whether to allow HTTP file uploads
upload_tmp_dir  = /home/web
upload_max_filesize = 2M        ; Maximum allowed size for uploaded files

PHP Version 4.0.6

One stupid mistake I made was that I put the wrong size for MAX_FILE_SIZE, 
but I fixed it now. print_r $HTTP_POST_FILE gives me:

Array ( [userfile] => Array ( [name] => timecard.png [type] => image/png 
[tmp_name] => /home/web/phpZKBTak [size] => 38656 ) ) 

But I still can't find the file at /home/web/. 

Thanks for your help.
Reuben D. Budiardja






On Wednesday 13 February 2002 09:31 pm, Lars Torben Wilson wrote:
> On Wed, 2002-02-13 at 18:26, Reuben D Budiardja wrote:
> > Thanks. I follow the manual. I changed my php.ini:
> > upload_tmp_dir = '/home/web/'
> > which is writable by web (the user running apache/php) and restart
> > apache.
> >
> > However, after I upload the file, I can't find it. When I do
> > print_r($HTTP_POST_FILE), here is what I got:
> >
> > Array ( [userfile] => Array ( [name] => timecard.png [type] => image/png
> > [tmp_name] => none [size] => 0 ) )
> >
> > You see that [tmp_name] is none (whatever that means), and size is zero.
> > why is that?
> > The webserver and the browser is on local LAN, and there is no firewall.
> >
> > Thanks for any help.
> > Reuben D. Budiardja
>
> First, check that the file size is less than the max upload size set in
> php.ini and/or the upload form.
>
> Second, what version of PHP are you running?

-- 
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
"God is the unrestricted act of understanding, the eternal rapture
glimpsed in every Archimedean cry of Eureka."

                        - Bernard Lonergan -
~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^

Reuben Donald Budiardja
[EMAIL PROTECTED]
Homepage: http://www.goshen.edu/~reubendb

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to