Nice answer, thx for posting it.
On Sun, Jan 22, 2017 at 4:13 AM, Tim Selander via use-livecode <
use-livecode@lists.runrev.com> wrote:
> Phil and Mike, Thanks for your pointers -- both look like they will work.
> Also in continuing to poke around the web, I also found this function that
>
Phil and Mike, Thanks for your pointers -- both look like they
will work. Also in continuing to poke around the web, I also
found this function that works:
function qrtHTTP_FileExists pURL
breakpoint
local tSocket, tPath, tHeaders, tCommand
set the itemDelimiter to "/"
-- extract host IP
If you have php on your second server, and don't have lc, you can do a
check with php similar to what you're talking about. This is untested but..
If you have the following php file (perhaps named checkforfile.php) on the
alternate server, and send it a get request containing the path to the
Hi Tim,
Here is a very simplistic way of checking for a file on your server. It
assumes your mp3 files are in a 'programs' folder that resides in the
'document root' folder. This script as it is here would be in a .lc file
on your server. You pass it a filename in the url and it tells you if
Hi,
On-rev.com hosting, using LC server to present a list of our
AM/FM radio programs for people to listening to on-demand.
Out of a month's 20 programs, 3 or 4 might not get uploaded due
to copyright issues, etc. Also, mp3's are not on the on-rev.com
server, but another hosting service we