Jürgen Wind a écrit :
Jürgen Wind wrote:
Marc Delisle wrote:
FAQ 1.11.
that doesn't help (at least not under windows) :
Warning: fopen() [function.fopen]: open_basedir restriction in effect.
File(D:\php1B0.tmp) is not within the allowed path(s): (/HTdocs)
in D:\HTdocs\PmaTrunk\libraries\tbl_replace_fields.inc.php on line 45
---8<---
Inserted rows: 1
Warning (1265): Data truncated for column 'c1' at row 1
SQL query:INSERT INTO `blobUplTest` ( `c1` , `DATE` , `blobF` )
VALUES (
'after ./tmp creation FAQ 1.11 ;)', '0', ''
);
ok,
my upload_tmp_dir was not inside open_basedir = /HTdocs
but this should only be used if the file comes from the "browse/upload from
local disk form"
I looked again at the code. This code has changed a lot since PMA 2.2.4
:) The original code (and FAQ 1.11) was only intended to make HTTP
uploads work with open_basedir restrictions, and move_uploaded_dir()
only handled uploaded files; the UploadDir mechanism was not related to
that.
The current code has a lot of problems. For example, fopen() at line 45
$val = fread(fopen($data_file, 'rb'), filesize($data_file));
fails if open_basedir is in effect.
There is also the move_uploaded_file() issue you mentionned.
Sebastian, are you working on this? If not, I can work on this.
Marc