Page 1 of 1

"First App" not displaying correctly

PostPosted: Fri Dec 31, 2010 7:38 am
by davidd31415
Hi,

I'm trying to create my first Xataface application using the tutorial in the docs.

I attached a screenshot of what I've done and what I'm seeing. The index.php is showing only the following text when I load it:

display(); ?>

I had tried without the first line (ini_set('display_errors', 1); which doesn't seem to be working anyway. I've intentionally introduced errors and they are still not displayed.

It's as if the PHP suddenly turns off at the after the greater than sign here: $app->

Any ideas on what might be causing this? I just installed WAMP2 on the XP box with default setting.

Also, is there a way to run the makesite PHP script on a Windows box?

Thanks,

David

Re: "First App" not displaying correctly

PostPosted: Fri Dec 31, 2010 8:03 am
by davidd31415
Nevermind... The tutorial does not have ?php at the beginning of the code, this was one of my problems.

A second was that for require_once I needed to use ../xataface/dataface-public-api.php instead of /localhost/xataface/dataface-public-api.php

I thought that was only a problem with xmlhttprequest; anyone know why i couldn't simply use /localhost? The error message said that the file could not be found in the FacultyOfWidgetry directory. For some reason the php code didn't seem to be starting out at the public directory.