Upload and HTML to a Server

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
momo
Posts: 6
Joined: Mon Jul 08, 2013 2:59 pm

Upload and HTML to a Server

Post by momo » Tue Aug 06, 2013 8:05 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Upload and HTML to a Server

Post by Mark » Tue Aug 06, 2013 8:38 pm

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
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

Post Reply

Return to “Internet”