[Phpmyadmin-devel] insert/update row with file contents

Sebastian Mendel lists at sebastianmendel.de
Tue Dec 12 17:08:40 CET 2006


Jürgen Wind schrieb:
> 
> 
> Marc Delisle wrote:
>> Jürgen Wind a écrit :
>>>
>>> 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', ''
>>> );
>>>
>>>
>> FAQ 1.11 says
>> "Assuming that the restriction allows you to open files in the current 
>> directory ('.')"
>>
>> so IMO you need the dot into your open_basedir directive.
>>
>>
> 
> i don't think so, php.ini says:
> 
> ; open_basedir, if set, limits all file operations to the defined directory
> ; and below.
> ;---8<---
> open_basedir = /HTdocs 
> ;TESTING
> 
> and i have pma in D:\HTdocs\pmaxxxx
> 

if your upload tmp dir (php.ini) is outside from of open_base_dir you
can not open the uplaoded file ...

using PHP 5.2.0, winxp, Apache tmp_name is even empty


-- 
Sebastian Mendel

www.sebastianmendel.de




More information about the Developers mailing list