These could easily be converted to an "exec a PHP script to talk to MySQL" or the other way around. ![]() I started using this "exec a PHP script to talk to MySQL" a bit later in the process of building this app, so there are still a few Javascript function (mysql query) nodes in the flow. ![]() If you don't have a big LAMP application running already, this method may not be appropriate. However, we already have a ton of operational PHP code, so it "fits" our LAMP backend. This provides me more error checking and more flexibility than doing the MySQL queries directly from Node-RED. When the MySQL DB is on the same server as the Node-RED application (as it is in this case) I prefer to do the DB query and all the "heavy lifting" in PHP. Of course, as all experienced programmers know, there are myriad ways to build a Telegram bot and a trivial game like this in Node-RED so let me tell you why did it this way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |