CGI database connection (mySQL)
SparkOutYNY at gmail.com
Wed Feb 18 16:13:55 CST 2009
Bom dia Andre, obrigado.
I've just about got there now I think - I narrowed it down to the external
settings, and have nobbled a script that Mark Waddingham gave to a user on
the Rev forum that I found, so that it sets the external path of the
templateStack, creates an empty stack, starts using that stack and so the
externals for the empty stack are available in the script. It wasn't working
before by simply setting the externals of "this" stack in the script at
So the revdb library was eventually kicking in, and then I could call
Trevor's library to make my queries. First of all I was getting errors with
that even so, and I found that it was necessary to change "localhost" to
"127.0.0.1" in the connection parameters.
Got it going on WAMP, just trying a "safe" area on the live Linux web server
to make sure it will work there too.
Andre Garzia-3 wrote:
> Hi There,
> I must say first that I am not familiar with WAMP setups but why don't
> you try simple text scripts first, and invoking them from the command
> line, you might get a better error. I believe this is external
> related, try setting the external property of stack "script" during
> the startup handler (yes, when you run a stack as a cgi a temporary
> stack named script is created).
> On Wed, Feb 18, 2009 at 12:50 PM, SparkOut <SparkOutYNY at gmail.com> wrote:
>> Forgot to add
>> SparkOut wrote:
>>> I've tried using revSetDatabaseDriverPath for each of the appropriate
>>> trials. but even including the revSetDatabaseDriverPath causes a 500
>> View this message in context:
>> Sent from the Revolution - User mailing list archive at Nabble.com.
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> http://www.andregarzia.com All We Do Is Code.
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
View this message in context: http://www.nabble.com/CGI-database-connection-%28mySQL%29-tp22081311p22089491.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode