Page 1 of 1

Error with manual setup

PostPosted: Sat Jan 23, 2010 5:45 pm
by butchseaman
I had to do a manual setup since my account does not allow me command line access. here is my index.php

INDEX.php
<?
require_once "/home/butchseaman/public_html/xataface/dataface-public-api.php";
df_init(__FILE__, "/Faculty");
$app =& Dataface_Application::getInstance();
$app->display();
?>


CONF.INI
[_database]
host = "localhost"
user = "butchseaman_name"
password = "password_used"
name = "butchseaman_Faculty"

[_tables]
Course = "Course"
Program = "Program"

getting this error on my host provider

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/butchsea/public_html/xataface/dataface-public-api.php on line 472

any ideas ...?


Thanks
Butch

Re: Error with manual setup

PostPosted: Mon Jan 25, 2010 3:50 am
by Jean
Hi Butch,
Insert complete URL to your xataface directory
Code: Select all
df_init(__FILE__,"url/to/xataface/directory");


Jean

Re: Error with manual setup

PostPosted: Mon Jan 25, 2010 10:20 am
by butchseaman
did not seem to to work.... here is my test

http://www.butchseaman.com/xataface/dataface_info.php

Re: Error with manual setup

PostPosted: Mon Jan 25, 2010 10:40 am
by shannah
Unfortunately Xataface 1.2.x requires PHP 5 now.... some work needs to be done to have it notify you when you install it... but in any case, it looks like you're running php 4.

Xataface 1.1.5 will still work on PHP 4, but I recommend you upgrade to php 5.

Re: Error with manual setup

PostPosted: Mon Jan 25, 2010 1:55 pm
by butchseaman
Ok... got it working... but still having an issue with the appearance of the page

please see attachment
file-1.jpg
file-1.jpg (40.38 KiB) Viewed 1879 times

Re: Error with manual setup

PostPosted: Mon Jan 25, 2010 2:07 pm
by shannah
Please post your index.php file contents... the problem is most certainly the 2nd parameter of your df_init() method.