and no result on textbox2
Did you check on your server to see if the my_kio4twdb_v2.htm
had been created after you run StoreValue, and that the data you sent was inside that file ?
Have you confirmed that PHP is running on your server ?
To do this you usually put a file called phpinfo.php
with the following content:
<?php phpinfo(); ?>
on your server and call it in a web browser. You should get something like this back:
the file my_kio4twdb_v2.htm
there is not
if i call ...../htdocs /phpinfo.php error 404 page not found
And anyway, I think it's a problem with the free domain. You can see the files in File Manager, but you can't read or write to them (always a file not found error). Strangely, I always find the data I save on the site in the app, even if I reset the variables (but I don't see the same data with the same app on my second phone).
Or maybe, in addition to the file name and path, should I also enter a username and password? How can I do that? From the properties, it seems like the files aren't protected (-rw-r--r--), or do I have to ask for some kind of authorization?
e comunque credo sia un problema del dominio gratuito, su file manager vedi i file ma non li puoi leggere ne tantomeno scrivere ( sempre errore file not found) anche se stranamente i dati che salvo sul sito li ritrovo sempre sull app anche se resetto le variabili (ma col secondo cellulare non vedo gli stessi dati con la stessa app)
o forse oltre al nome file col percorso dovrei anche inserire user e password ? e come si fa ? dalle proprieta sembra che i file non abbiano protezioni (-rw-r--r--) o devo chiedere qualche autorizzazione
Put the phpinfo.php file into the same directory as your index.html file.
Then try to call it in a browser like this
https://yourDomain.com/phpinfo.php
Taifun
that's what I did , but there's no answer
then most probably it is because
See also
Taifun
Who is your free domain provider ?
https://www.ufo1.byethost14.com/
but I understand that for free sites there is no permission to share files, and I think this applies to everyone
This provider then ?
https://byet.host/index.php/free-hosting
Looks like it offers everything you need.
I ran phpinfo against your domain name, it returned this:
I presume this is byethost's default response.
Also, you do not appear to have enabled SSL so that https
works [EDIT - you need to remove www.
]
Yes, everything works, except I can't access the files. Reading and writing files is blocked for free domains.
The program works (the reminder I save with tinydb)
but the topics it's supposed to save or read from the site's files to share with others aren't saved.
The strange thing is that they're still stored on the phone, and I don't understand where.
So each phone stores the data that should be stored on the server, but only reads its own.
And the files on the web that should contain the information are empty.
si, funziona tutto, solo che non posso accedere ai files, per i domini non a pagamento e' preclusa la lettura e scrittura dei files
il programma funziona (il promemoria che salvo col tinydb)
ma gli argomenti che dovrebbe salvare o leggere sui files del sito per condividerli con altri non vengono salvati
lo strano e' che vengono memorizzati ugualmente dal cellulare e non capisco dove
cosi ogni cellulare memorizza i dati che dovrebbere essere memorizzati sul server ma legge solo i suoi
e i files sul web che dovrebbero contenere le informazioni sono vuoti
This thread started with getting TinyWebDB running together with you own server, this seems to be running now?
Now it looks like you are trying to upload and download files? However you never showed us what you tried... or did I miss something?
Taifun
Your error message states:
It seems this is a subdomain. Subdomains have SSL automatically enabled. To access it, use https://ufo1.byethost14.com without www.
appunto, ha ssl abilitato in automatico
il file prova txt lo salva e lo legge anche se in file manager non me lo fa vedere perche credo che piu di 12 file non si possono mettere
ma il file reg.txt non me lo legge per niente
Exactly, it has SSL enabled automatically.
The test with the prova.txt file seems to work, but it won't show it in File Manager because I don't think you can fit more than 12 files. It's most likely saving it somewhere.
But the reg.txt file won't read it at all and tells me it's not there, while File Manager can see and read it.
T1.aia (29.9 KB)
These are incorrect, should be:
I do not see anywhere where you use the web component to upload or download files from your server ?
and anyway true, I started trying with tinydbweb which never worked, while tinydb works well (but with files with internal memory I always had problems, I have android 14 and it always gives an error no matter what I try), but I really believe that in free sites it is impossible to manage the file from the program (even if you can manage them with google sheets from file manager
e comunque vero, ho iniziato provando col tinydbweb che non ha mai funzionato, mentre il tinydb funziona bene (ma con i file con la memoria interna ho sempre avuto problemi ho android 14 e da sempre errore qualunque cosa provo) , ma credo davvero che nei siti gratuiti sia impossibile gestire il file da programma (anche se si possono gestire con i fogli google da file manager
j just try also without (/htdocs/) same result
Which component?
I use save file or read from file.
Are these not enough?
ok ho aggiunto questo
OK, I added this
and it gives me the correct path, so theoretically the file has been written.
I go to file manager and the file isn't there.
If you use the file component together with the default file scope, which is "App", then the file will be stored in ASD- the application specific storage, which is not accessible so easy anymore as previously before Google introduced scoped storage to protect us from evil
To find your file in shared storage, set the file scope to Legacy or Shared and use for example
/Download/myFile.txt
i e. a relative path to the file
See also Some basics on Android storage system
Taifun
PS; this thread went off topic