Re: Okay Stumped on Uploading Local File

From: Date: Thu, 28 Sep 2000 04:59:38 +0000
Subject: Re: Okay Stumped on Uploading Local File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-17859@lists.php.net to get a copy of this message
Jason Murray wrote: > > > I'm trying: > > > > $fileext = strtolower(strrev(substr(trim(strrev($afile)),0,4))); > > $filetmstamp=date(".YmdHis"); > > $filetmp=tempnam( "", "Res_" ); > > $filetmp=str_replace("/tmp/", > > "A{Floppy}:\REAL_SECRET\\",$filetmp); > > $fileid=$filetmp.$filetmstamp.$fileext; > > $fix_their_local_file = str_replace("\\","\\\\",$afile); > ^^^^^^ > > I *think* you might want $afile_name here. > > Jason Jason: Thanks mucho. I had NO idea the _name was even implemented (still running 3.0.14 PHP for particular reasons), but, it worked like a champ. But, interesting anomaly. I made the fatal mistake of building this app using an MS IE 5 client, which distorts many things. On a Linux client, using Netscape, the functions work as advertised. I need to get Windows clients to work as well. And, yes, I've done the conversion routines on the windows c:\whatever_redmond_thinks/dev/hd_or_sd_something_or_other_needs_to_be_called/ anomalies. But, this one is very strange. You had some experience with this, perhaps? Best Regards, Van -- ========================================================================= Linux rocks!!! http://www.dedserius.com =========================================================================

« previous php.general (#17859) next »