Re: PHP -> curl -> LC

2022-10-16 Thread Stephen Barncard via use-livecode
Hi jbv,

I think this can be done using the. [dot]htaccess file at the root of the
website.

I’ll try to dig up an example.


On Sun, Oct 16, 2022 at 11:22 jbv via use-livecode <
use-livecode@lists.runrev.com> wrote:

> Hi list,
>
> In several of my web projects, I have a main php script that
> triggers various LC scripts for specific tasks that are often
> easier to code in xTalk.
> To trigger those LC scripts I use curl and urls in the form :
> https://domain.com/irev/script.lc?a=parameters
>
> But very often, the php and LC scripts are on the same server
> and on the same account, such as on-rev.
> Therefore I've always wondered if there was another way to
> trigger the LC scripts from PHP, like for example not using
> http, but "inside" the server, by addressing the LC script
> via "home/public_html/account/irev/script.lc" ...
> Of course, the idea is to be able to use parameters as well,
> and to return processed data.
> The main idea is :
> - to make the whole thing faster than via http
> - to keep things within the server and therefore more secure.
>
> Sorry if this sounds like a newbie question.
> Thank you in advance.
>
> jbv
>
> ___
> 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
>
-- 
--
Stephen Barncard - Sebastopol Ca. USA -
mixstream.org
___
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


PHP -> curl -> LC

2022-10-16 Thread jbv via use-livecode

Hi list,

In several of my web projects, I have a main php script that
triggers various LC scripts for specific tasks that are often
easier to code in xTalk.
To trigger those LC scripts I use curl and urls in the form :
https://domain.com/irev/script.lc?a=parameters

But very often, the php and LC scripts are on the same server
and on the same account, such as on-rev.
Therefore I've always wondered if there was another way to
trigger the LC scripts from PHP, like for example not using
http, but "inside" the server, by addressing the LC script
via "home/public_html/account/irev/script.lc" ...
Of course, the idea is to be able to use parameters as well,
and to return processed data.
The main idea is :
- to make the whole thing faster than via http
- to keep things within the server and therefore more secure.

Sorry if this sounds like a newbie question.
Thank you in advance.

jbv

___
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