Re: file uploads with safe_mode [could be FAQ]

From: Date: Thu, 05 Apr 2001 01:13:29 +0000
Subject: Re: file uploads with safe_mode [could be FAQ]
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2687@lists.php.net to get a copy of this message
As of 4.0.5 you can use move_uploaded_file() in safe mode to get the uploaded file. -Rasmus On Wed, 4 Apr 2001, Ron Brogden wrote: > Howdy. I have searched high and low for a proper explanation covering this > but to no avail. If there is a FAQ somewhere that definitively covers this > issue please let me know and I will stop bothering people on the list. I > have seen this question posted a lot so it really should be part of the PHP > FAQ (IMHO). > > =) > > From personal experience and posts on the 'Net, I have always thought that > PHP under safe_mode was *incapable* of performing form based file uploads > due to file ownership issues with the "/tmp" (or whatever temp directory > your system uses). I noticed a comment on the annotated manual at > www.php.net claiming that setting the upload dir to "./tmp" would work if > you just create the "./tmp" directory with 777 permissions in your local > file tree where the script was called from. I have tried every variation I > can think of cannot get this to work (and I had tries this a couple of > years ago with PHP 3.0 too). The manual makes no mention of safe_mode file > upload limitations really so I have not been able to 100% confirm this > either way. I'd like to get it working if at all possible but it is better > to know "you cannot" than to waste time fighting with it. > > Has anyone gotten file uploads to work under safe_mode and if so, what > php.ini changes did you have to make? Also what OS are you using (this > particular setup is under the latest FreeBSD with PHP as an Apache module). > > Any suggestions appreciated. > > Cheers, > > Ron > > > ----------------------------------------------------------------------------- > Island Net AMT Solutions Group Inc. Telephone: 250 383-0096 > 1412 Quadra Toll Free: 1 800 331-3055 > Victoria, B.C. Fax: 250 383-6698 > V8W 2L1 E-Mail: support@islandnet.com > Canada WWW: /K=Îç > Qò)ìNws¶http://www.islandnet.com/ > ----------------------------------------------------------------------------- > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.install (#2687) next »