RE: [PHP-DB] Web-base Files upload

From: Date: Wed, 15 Nov 2000 00:06:47 +0000
Subject: RE: [PHP-DB] Web-base Files upload
Groups: php.db 
Request: Send a blank email to php-db+get-4441@lists.php.net to get a copy of this message
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at postmaster@normandy.com.au and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- Kenji, Assuming your web hoster is using Apache you should be able to put the following in your a .htaccess file at the top of your web root. php_value upload_tmp_dir /home/kenji/tmp/ Ive never tried this and you may have to make it writable to yourself and the web server user.. but experiement. Another options is that some hosting companies allow you to compile you own binaries with your own PHP .ini etc which is another possibility. Goodluck. Also ive seen two projects on SOurceforge that manage the whole file upload thing one was owl.sourceforge.net and it seemed quite reasonable mn Mark Nold markn@enspace.com <mailto:markn@enspace.com> Senior Consultant   Change is inevitable, except from vending machines. -----Original Message----- From: kenji chan [mailto:kenjikenji@bigpond.com] Sent: Tuesday, November 14, 2000 4:37 PM To: php-db@lists.php.net Subject: Re: [PHP-DB] Web-base Files upload "Leonard Tambunan" <leonard@ins.itb.ac.id> news:Pine.LNX.4.30.0011140931330.17768-100000@ins.itb.ac.id... > > Have php had Files upload function? ( Bulid in) > > If yes, how do i make the code? > > Anyone done it? > > Please E-mal here : kylw@lovehk.com or kenjikenji@bigpond.com > > I have 2 ways. > > 1. A copy function > 2. FTP function > > Regards, > Leo > > > > -- > PHP Database Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > For additional commands, e-mail: php-db-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > ******************************** When I use the code on remote computer ( Free web hosting), Have some Error message Like that : "Warning: SAFE MODE Restriction in effect. The script whose uid is 12062 is not allowed to access /var/tmp/phpb76399 owned by uid 0 in /usr/home/uhomeu/kylw/reh/upload.phtml on line 15" I think the Web server haven't permission to stored any file, I had tired another one (hosting), they also can't....Oh...too bad FTP may be a good way to stored files, but how to do that? Do I use some php file to Access my "FTP upload account" with password ?? ,, ha ha...so funny!

« previous php.db (#4441) next »