PHP -> curl -> LC

jbv at souslelogo.com jbv at souslelogo.com
Tue Oct 18 04:19:12 EDT 2022


Hi Stephen,

Thank you for your answer.
Yes, I would be interested in some example using .htaccess,
although my file is already full of rewriting rules and I'm
afraid that it would add some conflicts...

Best


Le 2022-10-16 17:32, Stephen Barncard via use-livecode a écrit :
> 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 at 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 at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 



More information about the use-livecode mailing list