Re: LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Keith Clarke via use-livecode
Thanks Matthias, '’ worked a treat. 

I was overthinking the security aspects and attempting to call the private CGI 
function from ‘across the divide’ in the public_html root rather than include 
the CGI files.

Clearly too much time spent with javascript, where included files are visible 
client-side in the browser (and its dev tools). Now I can see that the included 
LiveCode scripts stay server-side …and private!
 
Best,
Keith

> On 23 Nov 2018, at 20:37, Matthias Rebbe via use-livecode 
>  wrote:
> 
> Do you want to call an .lc file from outside the public_html file?
> If so then
> copy the .lc file  (lets say myscript.lc) to outside of the public_html, for 
> example to /home/custom_scripts.
> 
> Then in your .lc file in public_html use
> 
> include "home/custom_scripts/myscript.lc
> 
> to include the script myscript.lc into your main script.
> 
> Regards,
> 
> Matthias
> 
> 
> Matthias Rebbe
> 
> free tools for Livecoders:
> https://instamaker.dermattes.de
> https://winsignhelper.dermattes.de
> 
>> Am 23.11.2018 um 21:21 schrieb Keith Clarke via use-livecode 
>> :
>> 
>> Folks,
>> Can anyone please steer me to any docs explaining the (relative?) path 
>> syntax needed to traverse from a public file 'public_html/index.lc' to more 
>> private resources in 'public_html/CGI’ folder, to:
>> 1: Require CGI/myFile.lc?  
>> 2: Call myFunction() in CGI/myFile.lc?
>> 
>> The LC Server introductory lessons don’t seem to cover how to split 
>> public/private assets - unless I’m missing something?
>> 
>> Thanks in advance
>> Keith  
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Matthias Rebbe via use-livecode
Do you want to call an .lc file from outside the public_html file?
If so then
copy the .lc file  (lets say myscript.lc) to outside of the public_html, for 
example to /home/custom_scripts.

Then in your .lc file in public_html use

include "home/custom_scripts/myscript.lc

to include the script myscript.lc into your main script.

Regards,

Matthias


Matthias Rebbe

free tools for Livecoders:
https://instamaker.dermattes.de
https://winsignhelper.dermattes.de

> Am 23.11.2018 um 21:21 schrieb Keith Clarke via use-livecode 
> :
> 
> Folks,
> Can anyone please steer me to any docs explaining the (relative?) path syntax 
> needed to traverse from a public file 'public_html/index.lc' to more private 
> resources in 'public_html/CGI’ folder, to:
> 1: Require CGI/myFile.lc?  
> 2: Call myFunction() in CGI/myFile.lc?
> 
> The LC Server introductory lessons don’t seem to cover how to split 
> public/private assets - unless I’m missing something?
> 
> Thanks in advance
> Keith  
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

LiveCode Server syntax to call function in CGI folder

2018-11-23 Thread Keith Clarke via use-livecode
Folks,
Can anyone please steer me to any docs explaining the (relative?) path syntax 
needed to traverse from a public file 'public_html/index.lc' to more private 
resources in 'public_html/CGI’ folder, to:
1: Require CGI/myFile.lc?  
2: Call myFunction() in CGI/myFile.lc?

The LC Server introductory lessons don’t seem to cover how to split 
public/private assets - unless I’m missing something?

Thanks in advance
Keith  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode