Re: File name

From: Date: Thu, 16 Nov 2000 09:45:27 +0000
Subject: Re: File name
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3889@lists.php.net to get a copy of this message
its $userfile_name[$i] ----- Original Message ----- From: "Ben Cairns" <BenC@intasept.com> To: "PHP Windows" <php-windows@lists.php.net> Sent: Thursday, November 16, 2000 10:32 PM Subject: [PHP-WIN] File name > How do I get the ORIGINAL (the file name on the client machine) of a file > that is uploaded using this script: > > <? > for($i=0;$i<sizeof($userfile);$i++) > { > if(!$userfile_size[$i]) > continue; > > $UPLOAD = fopen( $userfile[$i], "r" ); > $contents = fread( $UPLOAD,$userfile_size[$i]); > fclose( $UPLOAD ); > $SAVEFILE = en( > "/Apache/htdocs/users/$mywapfone_registered//".$userfile_name[$i], "wb" ); > fwrite( $SAVEFILE, $contents,$userfile_size[$i] ); > fclose( $SAVEFILE ); > } > echo "Your file(s) have been uploaded.<BR><BR>"; > ?> > > I want to use line to echo just the filename.ext of the posted file. > > -- Ben Cairns, Head Of Technical Operations, Intasept.com > E-Mail: BenC@intasept.com | Web: > http://www.intasept.com > > > -- > 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 (#3889) next »