Hi,
I tried to build my Tinydbweb on a host space following this topic https://groups.google.com/g/mitappinventortest/c/wi8w1x6ljPc/m/JCq9rDYIBwAJ
Values are correctly saved to the .html db, but when I use TinyWebDB.GetValue block , I receive error "Value of type java.lang.String cannot be converted to JSONArray."
I'm sure the PHP script sends for example ["VALUE","TAG1",66] as response.
[edit] I have just tested the php file on my server, everything seems to work fine, storing either a string or a list, and these return fine, as a string or a list.
hmmm, you modified the return section of the php file, stripping \ from tag and value. These are needed by the tinywebdb blocks to return your string or list correctly.
Here is an anglicised version of the php file, fully tested...(
buongiorno
scusami TIMA12 ma faccio molta fatica con l inglese, ho girato con le ricerche ma non ho trovato molto di abbastanza chiaro, volevo chiederti , mi sembra di aver capito che per usare il tinydbweb , il file "engkio4twdb.php.txt" (o qualche file simile, ma..... .php.txt ? c'e qualcosa di sbagliato nell'estensione ?) va inserito sul server. ma c'e' bisogno di qualche altra cosa ? avevo una mezza intenzione di prendere un sito gratuito
sono secoli che non uso il php, come altri linguaggi e non è facilissimo ricominciare
Sorry, TIMA12, but I'm really struggling with English. I've been searching but haven't found anything clear enough. I wanted to ask you. I think I understand that to use tinydbweb, the file "engkio4twdb.php.txt" (or some similar file, but... .php.txt? Is there something wrong in the extension?) needs to be placed on the server. But is there anything else needed? I was half-minded about getting a free site.
It's been ages since I used PHP, like other languages, and it's not exactly easy to start over.
There are two words I can't translate. Could someone explain them to me? coerce and yail
Thanks
Right, I used something like that when I sent my program updates via email. By changing the extension, the email accepted everything.
And where should I look for PHP configuration and access permissions?
Thanks also to ABG for the reply.
Sorry, but as you get older, you don't really feel like searching in a thousand places when I often can't find what I'm looking for. Is there a complete guide somewhere with choices by topic, without having to bother you all the time?
grazie
giusto, usavo qualcosa del genere quando mandavo gli aggiornamenti dei miei programmi tramite mail , trasformando l estensione la mail accettava tutto
e per la configurazione php e l accesso ai permessi dove dovrei cercare ?
grazie anche a ABG per la riposta
scusatemi ma quando si invecchia non si ha molta voglia di cercare in mille posti quando spesso non riesco a trovare quello che cerco. ma esiste una guida completa con scelte per argomento da qualche parte , senza dovervi disturbare continuamente ?
If you have a shared hosting provider, then PHP should already be setup and running. If it is your own built server then you will need to install PHP. Search the interweb for a guide on how to do this.
Unless you really do only have minimal requirements for your data storage (tag:value storage and retrieval) you might consider Google Sheets, CloudDB or Firebase for your online data requirements.