RE: [PHP-WIN] File upload not working

From: Date: Wed, 10 Jan 2001 13:11:15 +0000
Subject: RE: [PHP-WIN] File upload not working
Groups: php.windows 
Request: Send a blank email to php-windows+get-4901@lists.php.net to get a copy of this message
What error are you getting? I'm doing uploads but with different code... these functions are new to me. The first thing I would check is the slashes in your move function, perhaps they need to be forward slashes? --------------------- John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 The benefit to the government of replacing all $1 Federal Reserve notes with $1 coins would be $522.2 million per year, according to estimates of the General Accouting Office released on April 7, 2000. > -----Original Message----- > From: MacBane [mailto:morgan@amnesia.com.au] > Sent: Wednesday, January 10, 2001 1:35 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] File upload not working > > > File uploading is not working for me on my server, > > it is a windows 2000 box running php 4.02 > > this is my code > > <?php > include("db_con.php"); > include("logincheck.php"); > if(isset($page_id)); > $page_id =("$page_id"); > print(" > <FORM ENCTYPE='multipart/form-data' ACTION='uploadfile.php' > METHOD=POST> > <INPUT TYPE='hidden' name='MAX_FILE_SIZE' value='5000000'> > <INPUT NAME='userfile' TYPE='file'> > <input type='hidden' name=page_id value='$page_id'> > > <INPUT TYPE='submit' VALUE='Send File'> > > </FORM>"); > ?> > > > <?php > if (is_uploaded_file($userfile)) > > { > > move_uploaded_file($userfile, > "C:\nusphere\apache\htdocs\morgan\php\database\CMS\pdf"); > > } > ?> > > > > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.windows (#4901) next »