Page 1 of 1

Upload and HTML to a Server

Posted: Tue Aug 06, 2013 8:05 pm
by momo
Hi

I want to aske if it's possible to make an application that uploads a HTML file to a server, so that i can be accecet by other people.
The reason behinde it is that i made a HTML generator and want user to be able to ulload it to my Server so i can "publish" it for them

regards
Kai

Re: Upload and HTML to a Server

Posted: Tue Aug 06, 2013 8:38 pm
by Mark
Hi Kai,

Sure, that's possible. The easiest way is probably to use FTP to upload the file:

Code: Select all

put myHtmlData into URL "ftp://username:password@ftp.server.xyz/www/index.html"
You'll need to adjust the path to make sure that the file is saved in the desired location.

You could also use a PHP script that receives data from LiveCode over the HTTP protocol and there are several other options.

Kind regards,

Mark