Like php.
If I distribute an app with a splash screen that accesses the main application on the server, can that app that I upload to the server also access files outside of the public_html directory?
Example:
put url ("file:" & home/username/newdir/list.txt) into tList
answer tList
Launching LC stack from server, accessing file outside home
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Launching LC stack from server, accessing file outside h
HI Shawn,
not sure what you mean?
Do you access your "main application" (which is a livecode stack, I think?) with:
...
go url("http://www.some_server/folder/mainapp.livecode")
...
?
If yes, then no!
Since that stack is NOT on the server anymore, but on your machine.
If that is not what you mean, I need more info.
Best
Klaus
not sure what you mean?
Do you access your "main application" (which is a livecode stack, I think?) with:
...
go url("http://www.some_server/folder/mainapp.livecode")
...
?
If yes, then no!

Since that stack is NOT on the server anymore, but on your machine.
If that is not what you mean, I need more info.
Best
Klaus
Re: Launching LC stack from server, accessing file outside h
Splash screen -----> distributed to others
-----> splash screen accesses main app on the server
-------> main app on server accesses a text file on the same server that is outside of the home directory
Is that possible?
-----> splash screen accesses main app on the server
-------> main app on server accesses a text file on the same server that is outside of the home directory
Is that possible?
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Launching LC stack from server, accessing file outside h
For security reasons, Apache won't allow any client to access file outside the web root. But you can write a CGI to do that, since CGI's have all the permissions you do when you shell in.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Launching LC stack from server, accessing file outside h
Gotcha. That's exactly what I was looking for. Thank you!FourthWorld wrote:For security reasons, Apache won't allow any client to access file outside the web root. But you can write a CGI to do that, since CGI's have all the permissions you do when you shell in.
Update: tested and works. Thanks Richard.