[New Book] LiveCode Advanced Application Architecture

Find out what's going on with LiveCode (the company), product releases, announcements, and events.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

gagsoft
Posts: 126
Joined: Sat Jun 29, 2013 7:56 pm

Re: [New Book] LiveCode Advanced Application Architecture

Post by gagsoft » Tue Nov 20, 2018 4:29 pm

Hi Andre
You are very helpful. It is just what I was looking for.

Many thanks👍

Peter G

gagsoft
Posts: 126
Joined: Sat Jun 29, 2013 7:56 pm

Re: [New Book] LiveCode Advanced Application Architecture

Post by gagsoft » Wed Nov 21, 2018 2:56 pm

Hi Andre

I am missing something here, Was wondering if you can put me on the right track with this.
Edited the dblibserver.php as follows:
PhP configuration of the dblibserver.php file
// Override the data below with your defaults
$encryption_key = "FFFFFFFFFFFFDDCCFFFFFFFFFFFFDDCC"; // Same as LiveCode side
$user = “my_username”; // customize user, password, db...
$password = “the_password";
$db = “sbs”; // The name of my database
$server = "localhost";
$cipher = "AES-256-CTR"; // do not change cipher unless you know what you're doing
And copied it to the Server: Copied the dblibserver.php to into a folder /htdocs/sbsdblib/dblibserver.php on PhP server XAMPP
installation.
Altered the LiveCode as follows:
My LC Code snipped
// put "https://andregarzia.com/auxiliary/dblibserver.php" into tConfigA["url"] // URL
put "http://xx.xxx.xxx.xxx/sbsdblib/dblibserver.php" into tConfigA["url"] // URL
put "FFFFFFFFFFFFDDCCFFFFFFFFFFFFDDCC" into tConfigA["encryption_key"] // Encryption Key
dbSetDefaultConnectionConfiguration tConfigA
I get this when running the script:
button "Button": execution error at line 5 (Handler: can't find handler) near "dbSetDefaultConnectionConfiguration", char 1

I do not know if using an ip address would be a problem. I normally test my php projects on this remote self managed server using the IP adddres.

Thanks

Peter G

gagsoft
Posts: 126
Joined: Sat Jun 29, 2013 7:56 pm

Re: [New Book] LiveCode Advanced Application Architecture

Post by gagsoft » Thu Nov 29, 2018 1:47 pm

Hi Andre
I'll try to create a video that goes from zero have it running on a shared server. LiveCode own Hosting should work great for this.
I am patiently waiting for that video that will propel me from zero to hero. :D
You are probably very busy right now.

Thanks
Peter G

Post Reply

Return to “Announcements”