RE: [PHP-WIN] Forcing a file name

From: Date: Wed, 15 Nov 2000 18:52:03 +0000
Subject: RE: [PHP-WIN] Forcing a file name
Groups: php.windows 
Request: Send a blank email to php-windows+get-3876@lists.php.net to get a copy of this message
You must be doing the exact same thing I was doing last month! <?PHP //you can use whatever you want down here... $newname = $date . $time . ".txt"; rename("D:/InetPub/wwwroot/yourdir/" . $file_name, "D:/InetPub/wwwroot/yourdir/" . $newname); ?> I had some problems with this on election night though. I tested it a hundred times and it worked GREAT! But IIS wouldn't let me rename a file while people were asking for it! (Oooops...) John --------------------- Founder of The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Caesar si viveret, ad remum dareris. > -----Original Message----- > From: Ben Cairns [mailto:BenC@intasept.com] > Sent: Wednesday, November 15, 2000 10:39 AM > To: php-windows@lists.php.net > Subject: [PHP-WIN] Forcing a file name > > > Can I force an uploaded file to a specific name. > > For example, when a file is uploaded, it takes the original filename. > > Can I force it to take a certain filename on the server so > that when it is > uploaded it becomes file1.ext for instance? > > > -- 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 (#3876) next »