Re: help!!!!

From: Date: Fri, 19 Jul 2002 21:20:22 +0000
Subject: Re: help!!!!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-108579@lists.php.net to get a copy of this message
Also, depending on your install of PHP, you may have file uploads disabled. If all else fails, check you php.ini and look for these lines: ; Whether to allow HTTP file uploads. file_uploads = Off Make sure that gets set to "On". E.g. RH 7.3's PHP RPM install seems to have this set to Off by default. Cheers, Hans On Fri, 2002-07-19 at 16:58, Scott Hurring wrote: > and also, try > var_dump($HTTP_POST_FILES); > var_dump($_REQUEST); > > to see if anything is incoming > > -- > Scott Hurring > Systems Programmer > EAC Corporation > scott (*) eac.com > -- > "Nick Oostveen" <nicko-ml@hpmarketing.com> wrote in message > news:5.1.1.6.0.20020719133555.03329288@pop.hpmarketing.com... > > You need to add the enctype="multipart/form-data" attribute to your form > > tag to be able to upload files. > > > > At 04:12 PM 7/19/2002 -0400, rasokan wrote: > > >Hi, > > >I was trying to upload files in php and came across some problems. I am using > > >Apache on Linux. > > >My first file was: > > > > > >-html- > > >-form action="t1.php" method="post"- > > >-input type="hidden" name="MAX_FILE_SIZE" > > >value="100000"- > > > Send this file: -input name="ttt" type="file"- > > > -input type="submit" value="send"- > > > -/form- > > > > > >-/html- > > > > > >If I use enctype in the <form> attribute, no form variables are made > > >available > > >in t1.php. t1.php is as follows: > > > > > ><? > > >echo $MAX_FILE_SIZE; > > > > > >echo "<br>"; > > > $filename = $HTTP_POST_FILES['ttt']['tmp_name']; > > > echo $filename; > > > $realname = $HTTP_POST_FILES['ttt']['name']; > > > print "realname is $realname"; > > >?> > > > > > >$filename or $realname are not display. I set register_globals to on and my > > >variables_order string is also set to EGPCS. I'm sure I am making a very > > >basic/stupid mistake here, but could somebody help me out, please? > > >Thank you. > > > > > >ramya > > > > > >"We have forgotten how to be good guests, how to walk lightly on the earth > > >as other creatures do." > > >Visit www.greenpeaceusa.org > > > > > > > > >-- > > >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 > >

« previous php.general (#108579) next »