Hi
I'm a complete beginner when it comes to communicating with the web in livecode. I'm making an application where I need the possibility to create a user base where the users can sign up with a user name and upload and download things they create with my app. The files will be small and text-based. I have a webhotell where I can try this out - but it has to be easy.
If anybody can advice a complete beginner on this - please share some links.
Sjat
How do I create a web user base with files
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: How do I create a web user base with files
Hi Sjat,
There are several ways to upload data to a website. You can check out the ftp features by searching for "ftp" in the LiveCode dictionary. You could also create a few PHP scripts that accept small amounts of data and save them in files or in a database. If you choose the PHP option, you can use the put URL command or the post to URL command to send data to your server. Perhaps you could tell a little more about your requirements?
I'm sure there are quite a few lessons and tutorials on RunRev's website. You may also want to read chapters 17 and 22 of my book, if you have it.
Kind regards,
Mark
There are several ways to upload data to a website. You can check out the ftp features by searching for "ftp" in the LiveCode dictionary. You could also create a few PHP scripts that accept small amounts of data and save them in files or in a database. If you choose the PHP option, you can use the put URL command or the post to URL command to send data to your server. Perhaps you could tell a little more about your requirements?
I'm sure there are quite a few lessons and tutorials on RunRev's website. You may also want to read chapters 17 and 22 of my book, if you have it.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: How do I create a web user base with files
Hi Mark
Thank you for answering. I know this is a BIG question. I have searched here, google and youtube - but since I'm so new at this I find it diffcult to filter the results.
My app is text-based. Every user can create a set of categories and text-templates. These will be stored in arrays and will be saved as an encoded array to a file (also compressed). They will not be too large. I guess a really huge collection will fill a ten page document and compressed they will be about 4 KB. So we are talking small files here.
I need the ability for the user (If the user want to post their "databases" online) to create an online username and password so that they can send their files to my server and by that make it available for other users.
For now I want to test this on my personal domain and server. Since the files will be compressed I guess database is out of the question. I think maybe FTP could be right. But is there a way for me to make it possible for the user to sign up with user name and password from withing the app to my ftp server?
OR - could anyone point me to a website where they offer this kind of service in an easy way?
Hope this helps.
Sjat
Thank you for answering. I know this is a BIG question. I have searched here, google and youtube - but since I'm so new at this I find it diffcult to filter the results.
My app is text-based. Every user can create a set of categories and text-templates. These will be stored in arrays and will be saved as an encoded array to a file (also compressed). They will not be too large. I guess a really huge collection will fill a ten page document and compressed they will be about 4 KB. So we are talking small files here.
I need the ability for the user (If the user want to post their "databases" online) to create an online username and password so that they can send their files to my server and by that make it available for other users.
For now I want to test this on my personal domain and server. Since the files will be compressed I guess database is out of the question. I think maybe FTP could be right. But is there a way for me to make it possible for the user to sign up with user name and password from withing the app to my ftp server?
OR - could anyone point me to a website where they offer this kind of service in an easy way?
Hope this helps.
Sjat
Re: How do I create a web user base with files
Hi Sjat,
The problem of FTP is that you need to give everybody the same password to access your account. With PHP, you can create a system to make new accounts and manage existing accounts, using different user names and passwords for all users. If you really have no idea where to start and if you're looking for paid service that allows you to do this, I might as well help you. If you like, you can send an e-mail to m . schonewille [a] economy - x - talk . com.
Kind regards,
Mark
The problem of FTP is that you need to give everybody the same password to access your account. With PHP, you can create a system to make new accounts and manage existing accounts, using different user names and passwords for all users. If you really have no idea where to start and if you're looking for paid service that allows you to do this, I might as well help you. If you like, you can send an e-mail to m . schonewille [a] economy - x - talk . com.
Kind regards,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode