RE [PHP-INSTALL] upload_tmp_dir and open_basedir
| From: | j dot kaluza at redcross-transfusion dot be | Date: | Fri, 13 Jun 2008 06:24:59 +0000 |
| Subject: | RE [PHP-INSTALL] upload_tmp_dir and open_basedir | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-18981@lists.php.net to get a copy of this message | ||
Check that the user under wich apache runs have writing permission for the
upload directory, remember to use move_uploaded_file function after, or ur
uploaded file might disapear in the end of your php script
Jerôme Kaluza
Service du Sang
Service Informatique
Croix-Rouge de Belgique
rue de Stalle 96 - 5e étage
B-1180 Bruxelles
Tél. : + 32 (0)2 371 35 27
Fax : + 32 (0)2 371 35 23
j.kaluza@redcross-transfusion.be
http://www.transfusion.be
P.S.: Le temps de lire ce mail, 1 personne aura eu besoin d?une
transfusion en Belgique pour survivre. Alors, n'oublions pas : une vie est
irremplaçable, pas le sang ! Plus d'infos, sur http://www.transfusion.be.
JM <lists+phpinst@roth.lu>
12/06/2008 15:15
A
php-install@lists.php.net
cc
Objet
[PHP-INSTALL] upload_tmp_dir and open_basedir
/home on my machine is a symlink to /local/home.
In PHP 5.2.0: when I set upload_tmp_dir to /home and open_basedir to
either /local/home or /home then performing a file upload fails.
In PHP 5.2.6 this seems corrected.
Which bug was that?
On another note, while I was reading the docs about open_basedir I was
wondering: it says 'all symlinks are resolved', but what happens when
the argument to open_basedir itself is a symlink (like in my case)? I
suppose it is resolved too?
So in the previous example, whether I use /local/home or /home or any
combination thereof, all of them are resolved to /local/home in the end?
Right?
TIA
Mark