Call lc from php?

jbv at souslelogo.com jbv at souslelogo.com
Thu Jan 21 02:31:14 EST 2021


Hi,

Le 2021-01-20 18:53, Neville Smythe via use-livecode a écrit :
> Quick question: is it possible to execute a .lc server script from
> within php (eg from an index.php page)?
> 

I don't know if it will be useful, but here's the method I've been
using for years :

$data = 'https://www.mydomain.com/myscript.lc?a=' . $mydata;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$output = curl_exec($ch);
curl_close($ch);




More information about the use-livecode mailing list