I have searched the forum for an answer and found one blog similar to this one but still, after two days of messing, was not able to figure it out.
I am running LAMP on my windows XP PC.
Folder structure:
Dataface location:
D:\xampp\htdocs\myphp\PHPGenerators\xataface
Application location:
D:\xampp\htdocs\myphp\PHPGenerators\idxceo_engine
Location of Dataface index.php within application (renamed to admin.php):
D:\xampp\htdocs\myphp\PHPGenerators\idxceo_engine\admin
Desired file upload dir:
D:\xampp\htdocs\myphp\PHPGenerators\idxceo_engine\SiteEngine\plugins\main\blocks
Content of admin.php
- Code: Select all
require_once '../../xataface/dataface-public-api.php';
df_init(__FILE__, 'http://localhost/myphp/PHPGenerators/xataface');
$app =& Dataface_Application::getInstance();
$app->display();
Content of fields.ini:
- Code: Select all
[block_file]
Type = container
widget:label = "Block File"
widget:description = "Upload a Block File from your system"
widget:type = file
allowed_extensions = html,php
savepath = ../SiteEngine/plugins/main/blocks
url = http://localhost/myphp/PHPGenerators/idxceo_engine/Site_Engine/plugins/main/blocks
It throws the following error:
Warning: mime_content_type(D:\xampp\htdocs\myphp\PHPGenerators\idxceo_engine\admin/../SiteEngine/plugins/main/blocks/home_sidebar1.blk.php) [function.mime-content-type]: failed to open stream: No such file or directory in D:\xampp\htdocs\myphp\PHPGenerators\xataface\Dataface\Record.php on line 2182
It looks like it takes the folder that contains the xataface admin.php (previously index.php) file as the root for the new upload URL. Maybe because of some $_SERVER['PHP_SELF']?
I would greatly appreciate any help.
Thank you very much.
Chris
