LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
setting the defaultfolder to any folder on the internet does not work as on the desktop!
But I have no idea what you could do instead
Some servers will return a file listing, probably in HTML format!, if you just get the FOLDER address and there is NO "index.html" in that folder,
but this is mostly forbidden for security reasons:
...
put url "http://www.alternatic.ch/jmb/DesImages/"
...
Gives: error 403 Forbidden
setting the defaultfolder to any folder on the internet does not work as on the desktop!
It work on IOS ?
Some servers will return a file listing, probably in HTML format!, if you just get the FOLDER address and there is NO "index.html" in that folder,
but this is mostly forbidden for security reasons:
Ok i can upload a text file with the list of files and reading it.
setting the defaultfolder to any folder on the internet does not work as on the desktop!
It work on IOS ?
No, I mean the internet in contrary to LOCAL files/folders
jmburnod wrote:
Some servers will return a file listing, probably in HTML format!, if you just get the FOLDER address and there is NO "index.html" in that folder,
but this is mostly forbidden for security reasons:
Ok i can upload a text file with the list of files and reading it.
Ah, yes, if that is possible, that will be the best way!
Best
Klaus
P.S.
I found a PHP snippet on my HD taht will return a file listing of the folder where the PHP script resides!
Just copy this into a new textfile, save it as: filelisting.php
in the folder on your server and you will always have an up-to-date file listing with:
...
put url"http://www.yourserver.com/folder1/filelisting.php" into field "Files on server"
...
That seems like the correct behavior. If I test the url in your stack it returns empty. Put "http://www.alternatic.ch/jmb/DesImages/filelisting.php" into a browser and there's nothing returned. I don't get a "not found" error, so the php code is executing on the server.
OTOH I get file permissions trying to access the web site folder at either jmb or DesImages, so there may be some permissions problems as well. I think you need to make sure the php code on the server is working before trying to troubleshoot the LC script.
I tested your stack and got "error 500 Internal Server Error" in THE RESULT.
I have tested the PHP script before and know that it is working (although I have no idea why )
So there must be something going on on your server, maybe there is no PHP engine installed?
Although I doubt this!
Are there reasons to avoid shell_exec? Security or otherwise? Maybe shell_exec isn't always allowed I guess, so maybe thats why. Just a curiosity question, both work fine for me on on-rev.