5 posts
Posted 27 February 2012 - 01:31 PM
411 posts
Posted 27 February 2012 - 05:38 PM
No
715 posts
Posted 27 February 2012 - 06:37 PM
You could set up MySQL with e.g. PHP though and interact with that via ComputerCraft's HTTP-API.
This way you can send it commands, which the PHP-Server then interprets as per your predefined instructions and then executes MySQL-Queries on your behalf.
Keep security in mind though, or else you're going to open a can of worms. At least potentially. :D/>/>
411 posts
Posted 27 February 2012 - 06:48 PM
This is why I hired you, man I didn't feel like typing all that.
2 posts
Posted 28 February 2012 - 06:53 AM
Had the same Question as Clueless, But i thought that the HTTP API only allows downloading content. How can I fire an event with different arguments?
43 posts
Location
Germany
Posted 28 February 2012 - 07:49 AM
Had the same Question as Clueless, But i thought that the HTTP API only allows downloading content. How can I fire an event with different arguments?
Just pass them as GET-parameters:
http://mydomain.com/mysql.php?select=bla&from=blup&where=bla>0
In your script you should use pdo-prepared-statements to handle SQL-injections.
And think about url-encoding. A where clausel like "bla = 'blup' and foo + 3 > 10" has to be escaped or encoded with something like base64.
473 posts
Location
Poland
Posted 28 February 2012 - 05:40 PM
Had the same Question as Clueless, But i thought that the HTTP API only allows downloading content. How can I fire an event with different arguments?
Actually, clueless's not a nickname, it's a rank. just saying :D/>/>
236 posts
Location
Germany
Posted 10 April 2012 - 04:42 PM
im working on an email system using this but i run into a problem that when u read the mails over php i want to get the name of the sender the entry id and the text im using a scipt to split the string that the php page throws out my problem now is that i cant read multiple emails but just one. i u want please look over the code and suggest ideas :P/>/>
PHP:
http://pastebin.com/ApXVQY0k
LUA:
http://pastebin.com/hzMPMEPL