Hi list,
till today I used qooxdoo 0.7.x for my application with php-request (not
rpc).
Today I downloaded v 1.0 and tried out the php rpc backend.
But I have some problems with it.
I downloaded the rpc to
"myQooxdooAppRootFolder/services"
And made a call like described in the api:
_______________
var rpc = new qx.io.remote.Rpc();
rpc.setTimeout(10000);
rpc.setUrl("http://localhost/myQooxdooApp/services");
rpc.setServiceName("qooxdoo.test");
rpc.setCrossDomain(true);
// call a remote procedure -- takes no arguments, returns a
string
var that = this;
this.RpcRunning = rpc.callAsync(
function(result, ex, id)
{
that.RpcRunning = null;
if (ex == null) {
alert(result);
} else {
alert("Async(" + id + ") exception: " + ex);
}
},
"method_getInteger");
}
_________________
But I always get a timeout and firebug shows me this:
_____________
<br />
<b>Warning</b>: require_once(global_settings.php) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in
<b>c:\data\eclipse\MyQooxdooApp\services\server\AbstractServer.php</b>
on line <b>49</b><br />
<br />
<b>Fatal error</b>: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'global_settings.php' (include_path='C:\PHP5_2\pear') in
<b>C:\data\eclipse\ MyQooxdooApp \services\server\AbstractServer.php</b>
on line <b>49</b><br />
<br />
<b>Warning</b>: require_once(global_settings.php) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in <b>C:\data\eclipse\ MyQooxdooApp
\services\server\AbstractServer.php</b> on line <b>49</b><br />
<br />
<b>Fatal error</b>: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'global_settings.php' (include_path='C:\PHP5_2\pear') in
<b>C:\data\eclipse\ MyQooxdooApp \services\server\AbstractServer.php</b>
on line <b>49</b><br />
_______________
In the AbstractServer.php is some code like:
_______________
if ( file_exists("global_settings.php") )
{
require_once "global_settings.php";
}
_______________
It seems that the file_exists can find the file but require_once
doesn't.
I guess the problem is, that AbstractServer.php is also included by
index.php.
Did anyone have the same problems???
Is there a mistake with my clientside-Javascript-call?
I'm using IIS and PHP 5.1.2.
Thanks
Tobi
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel