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 peterwaw...@gmail.com wrote: You should be able to use file_get_contents in PHP to do what

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

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 an...@andregarzia.com 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

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

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 mo...@sweattechnologies.com wrote: On 24 Nov 2014, at 3:29 pm, Richard Gaskin ambassa...@fourthworld.com wrote: What would it take to make an Apache module for LiveCode? Apache

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 he...@simonsmith.co wrote: Would supporting Fast CGI not be a better way forward? On

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-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)

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 down

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 ambassa...@fourthworld.com wrote: Peter W A Wood wrote: You should be able to use file_get_contents in

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

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

Re: LC Script in PHP File

2014-11-23 Thread Monte Goulding
On 24 Nov 2014, at 3:29 pm, Richard Gaskin ambassa...@fourthworld.com 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

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: !DOCTYPE html html head meta http-equiv=content-type content=text/html;charset=utf-8