Using the Xataface API from the outside
Posted: Tue Sep 28, 2010 9:11 am
Hi all.
I setup a Xataface backoffice and some utilities to fill the database from external data, which is something that I'll be doing frequently. I created a "/util" directory in which I'm placing these scripts to import external data, and I'd like to use the Xataface API from there. I tried using
To sum up, this is my directory structure:
/index.php --> the entry point for Xataface
/xataface/ --> the Xataface directory
/util/ --> the utilities directory
/util/something.php --> I'm trying to use the Xataface API from here.
Is there something else I should do or this is not possible?
--jay
I setup a Xataface backoffice and some utilities to fill the database from external data, which is something that I'll be doing frequently. I created a "/util" directory in which I'm placing these scripts to import external data, and I'd like to use the Xataface API from there. I tried using
- Code: Select all
require_once '/my/path/to/xataface/dataface-public-api.php'
- Code: Select all
df_init(__FILE__, '/xataface');
- Code: Select all
Error loading config file. No tables specified.
To sum up, this is my directory structure:
/index.php --> the entry point for Xataface
/xataface/ --> the Xataface directory
/util/ --> the utilities directory
/util/something.php --> I'm trying to use the Xataface API from here.
Is there something else I should do or this is not possible?
--jay