Sending an FTP command from one web server to another?
Tim Selander
selander at tkf.att.ne.jp
Wed Jul 19 08:59:53 EDT 2017
Richard,
Have never written a CGI in my life but you got me thinking; a
quick Google found me a php script to "print" a folder listing.
So now my .lc script on my on-rev serve puts the url of the .php
page on the server with the mp3s into a variable -- which gives
me the list of file names I was trying to get via ftp. Works slick.
Thanks!
Tim Selander
Tokyo, Japan
On 2017.07.19, 2:16, Richard Gaskin via use-livecode wrote:
> Tim Selander wrote:
>
> > My company gave up on hosting our email and website at on-rev.com
> > back when they were having lots of reliability problems. We're
> using
> > a host in Japan; no LC server installed, nor is it installable.
> >
> > I still have our Founder's account on on-rev.com, and use
> quite a few
> > .lc scripts, calling them from iframes in web pages hosted on
> the new
> > host.
> >
> > Our radio programs' mp3 files are stored on the new host. I
> want one
> > of my scripts on on-rev.com to get the directory listing of
> the mp3
> > files on the new host.
>
> FTP is probably not the best solution for this, for reasons too
> numerable to list this morning.
>
> But for the task as described, other simpler, more efficient, and
> more secure alternatives exist:
>
> Can you run a CGI on the server holding the MP3 files to obtain
> that list?
>
> Or, if they're within you're web root, can you use Apache's
> directory listing?
>
More information about the use-livecode
mailing list