Page 1 of 1

Installation on Windows Platform

PostPosted: Fri Jul 11, 2008 8:20 am
by brice
Hi,
I have deployed xataface on a windows platform with Apache, PHP & Mysql
All the products are available
I have a good message With the link http://127.0.0.1/xataface/dataface_info.php
====> Installation status INSTALLED CORRECTLY

But when i have created my own web site with makesite
i have a skin problem (i can send a snapshot)
May be C:\xampp\htdocs\xataface\dataface-public-api.php not loaded or i have forgotten to deploy something

Have you ever see this problem ?

(sorry for my english)

index.phph configuration is :
[_database]
host = "127.0.0.1"
user = "root"
password = "xxxx"
name = "changeproject"

$ cat index.php
<php>display();
// display the application


$time = microtime(true) - $time;
echo "<p>Execution Time: $time</p>";
?>

image :

PostPosted: Fri Jul 11, 2008 11:26 am
by shannah
The forum is eating some of your code. Try reposting with the "Disable HTML in the post" checkbox checked.

Nonetheless I can guess what the problem is. If the problem is just with the skin it is likely that just the stylesheets and javascripts aren't loading which means that the URL to the xataface folder (the 2nd parameter of the df_init()) function is incorrect.

Best regards

Steve

PostPosted: Tue Jul 15, 2008 2:25 am
by brice
hi,
Yes i am agree with you, the file was not found by df_init

But i don't find the good syntax

All the files of my project are under C:\xampp\htdocs\xataface\mysitedataface

I have modified the index.php file with those solutions and the problem is still current

First
------
$time = microtime(true);
// use the timer to time how long it takes to generate a page
require_once 'C:\xampp\htdocs\xataface\dataface-public-api.php';
// include the initialization file
df_init(__FILE__, 'C:\xampp\htdocs\xataface\mysitedataface');
// initialize the site

$app =& Dataface_Application::getInstance();
// get an application instance and perform initialization
$app->display();
// display the application


Second :
---------
$time = microtime(true);
// use the timer to time how long it takes to generate a page
require_once 'C:\xampp\htdocs\xataface\dataface-public-api.php';
// include the initialization file
df_init(__FILE__, 'xataface/mysitedataface');
// initialize the site

$app =& Dataface_Application::getInstance();
// get an application instance and perform initialization
$app->display();
// display the application

Regards

PostPosted: Tue Jul 15, 2008 9:15 am
by shannah
df_init(__FILE__, 'C:\xampp\htdocs\xataface\mysitedataface');

Here is your problem. The second parameter should be a URL not a file path. e.g.

Code: Select all
df_init(__FILE__, '/xataface');

or
Code: Select all
df_init(__FILE__, 'http://yourdomain.com/xataface');


or something like that.

PostPosted: Wed Jul 16, 2008 12:15 am
by brice
Thank's the problem has been resolved
I have modified df_init as you have said it

df_init(__FILE__, '/xataface'); = OK