Re: LC Script in PHP File

2014-11-25 Thread Richard Gaskin
Andre Garzia wrote: I've just replied on another thread why FastCGI is not a good candidate for LiveCode in my humble opinion. As for Apache Modules, those things are on the way out. If we want LC Server to be taken seriously then it need to work with Apache and Nginx. I like to imagine this i

Re: LC Script in PHP File

2014-11-25 Thread Peter W A Wood
Thanks for the clarification Andre. > On 25 Nov 2014, at 19:18, Andre Garzia wrote: > > Peter, > > Most PHP installations will not allow file_get_contents() to be run on > localhost to prevent infinite loops. I've been hurt by that before. > > cheers > > > On Sun, Nov 23, 2014 at 5:09 AM, Pe

Re: LC Script in PHP File

2014-11-25 Thread Andre Garzia
I've just replied on another thread why FastCGI is not a good candidate for LiveCode in my humble opinion. As for Apache Modules, those things are on the way out. If we want LC Server to be taken seriously then it need to work with Apache and Nginx. it needs to work like Node, Ruby, Python and oth

Re: LC Script in PHP File

2014-11-25 Thread Andre Garzia
Peter, Most PHP installations will not allow file_get_contents() to be run on localhost to prevent infinite loops. I've been hurt by that before. cheers On Sun, Nov 23, 2014 at 5:09 AM, Peter W A Wood wrote: > You should be able to use file_get_contents in PHP to do what you want. > Though it

Re: LC Script in PHP File

2014-11-24 Thread Peter W A Wood
Simon FastCGI support would be excellent from my point of view as it would allow LiveCode to be run behind a web server acting as a load balancer. Regards Peter > On 24 Nov 2014, at 21:34, Simon Smith wrote: > > Would supporting Fast CGI not be a better way forward? > > On Mon, Nov 24, 2014

Re: LC Script in PHP File

2014-11-24 Thread Simon Smith
Would supporting Fast CGI not be a better way forward? On Mon, Nov 24, 2014 at 7:56 AM, Monte Goulding wrote: > > On 24 Nov 2014, at 3:29 pm, Richard Gaskin > wrote: > > > What would it take to make an Apache module for LiveCode? > > > Apache modules themselves don't look all that complicated.

Re: LC Script in PHP File

2014-11-23 Thread Monte Goulding
On 24 Nov 2014, at 3:29 pm, Richard Gaskin wrote: > What would it take to make an Apache module for LiveCode? Apache modules themselves don't look all that complicated. As far as LC goes as long as you don't support threaded mpms it should be largely a matter of handling the request and set

Re: LC Script in PHP File

2014-11-23 Thread Richard Gaskin
Peter Wood wrote: > The performance of LiveCode and  > PHP would be the same if either PHP > was being run in the same fashion as > LiveCode (i.e. using CGI) or there was  > a LiveCode Apache Module. What would it take to make an Apache module for LiveCode?  Richard Gaskin Fourth World Systems ht

Re: LC Script in PHP File

2014-11-23 Thread Peter W A Wood
Richard As Simon mentioned, “calling” a LiveCode function by running a cgi script will be slower than a simple function call. Running a very simple LiveCode cgi script takes a few hundred milliseconds. A function call will take a few milliseconds. On my machine, which has a solid-state drive,

Re: LC Script in PHP File

2014-11-23 Thread Simon Smith
I just think Peter means that there would be an additional step in the process - instead of executing a single script, you are executing 2. On Sun, Nov 23, 2014 at 7:45 PM, Richard Gaskin wrote: > Peter W A Wood wrote: > > You should be able to use file_get_contents in PHP to do what you > > wan

Re: LC Script in PHP File

2014-11-23 Thread Richard Gaskin
Peter W A Wood wrote: > You should be able to use file_get_contents in PHP to do what you > want. Though it will take longer to get the results from LiveCode > than it would from PHP. Why would that be? In general (and pre-7.0) LC used to perform roughly on par with PHP. Where has it fallen dow

Re: LC Script in PHP File

2014-11-23 Thread Nakia Brewer
Okay, this seems to make sense. Thanks for your help, I'll give it a go tomorrow.. I'm slowly getting there with PHP, it's just taking a little longer than it took me to pick up LC... Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions t: (02) 49645051 m: 0458 713 5

Re: LC Script in PHP File

2014-11-23 Thread jbv
Hi You can also use the curl function if your LC script is located on a server : $data = 'http://myDomain/lc/myLCscript.lc?a=' . $myVar; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); I

Re: LC Script in PHP File

2014-11-22 Thread Peter W A Wood
You should be able to use file_get_contents in PHP to do what you want. Though it will take longer to get the results from LiveCode than it would from PHP. Here is an example: PHP file: Testing Getting Results From Website

LC Script in PHP File

2014-11-22 Thread Nakia Brewer
Hi, I am in the process of putting a web app together using the UserFrosting system as a starting point. I am slowly getting the hang of the framework and am now wishing to start using LC Server to do some backend crunching to render the pages. (Im not picking up PHP as fast as I hoped!) The U