Does RISE create <myPrefix>.config.php or do I?

9 views
Skip to first unread message

novnov

unread,
Jan 9, 2010, 6:57:17 PM1/9/10
to RISE
I just discovered RISE and I must say it's pretty cool looking!

I have created a simple db in sql server using RISE. Next I want to
generate the php web services and to use the RISE interface to create
and add records. I've put the php files into a folder and offered that
url to the RISE Test Web Services dialog. But when I attempt to add a
new record I get a 404 error "not found". Probably it does not know
where the db is?

In the connection strings section I found this:
PHP web services
RISE generated PHP web services doesn't use ODBC and retrieves their
connection information from a separate PHP configuration file. The
file should be named <myPrefix>.config.php, where myPrefix is the RISE
model prefix. This file is automatically included, using require_once,
in the generated PHP files. It must define a set of constants used by
the PHP code, see example for MySQL below.
<?php
define("myPrefix_Username", "my userid");
etc...

But I don't find that file...certainly it was not exported to the same
dir as the test apps entity php files were. Am I supposed to create it
myself? Somehow I don't think so.

Joar Swenning

unread,
Jan 11, 2010, 6:32:37 AM1/11/10
to RISE
Hi!
Since PHPs ODBC handling was not sufficiently functional last spring
when the present version PHP generator was developed; the generator
was instead specifically targeted at mySQL. Unfortunately this means
that the code from this present PHP code generator does not work with
SQL Server.
Best regards,
Joar

novnov

unread,
Jan 11, 2010, 8:15:17 PM1/11/10
to RISE
I see...I can use mysql for testing with php and c# for the sql server
stuff then.

Thanks

Reply all
Reply to author
Forward
0 new messages