RE: Call lc from php?
What I still miss is a Kitchen Sink desktop/mobile/server demo application standard included In the LiveCode distribution. The book of Andre Garzia is a good start but it would be great to see how you can write command-line tools, floating desktop apps, background apps (desktop/mobile) etc. etc. in LiveCode. All kind of real word situations would be nice to see in a Kitchen Sink application. Best wishes, Erik -Original Message- From: use-livecode On Behalf Of Curry Kenworthy via use-livecode Sent: donderdag 28 januari 2021 22:06 To: use-livecode@lists.runrev.com Cc: Curry Kenworthy Subject: Re: Call lc from php? Richard: > For those of you who haven't seen Ralf's recent work > on the revIgniter site [...] It's been on the edge of my radar, but never had a chance to use it yet. Thanks for the testimonial and reminder! Hope to try it later this year. Rick: > Why are you still using PHP when LC is better? Technically, depends on how you define "better." PHP definitely wins in some areas. And there are already a lot of well-tested tools available for PHP. But in general, I share your sentiment. I'm "all in" for LC. I'm one of the few who are 100% specialized in LiveCode for all development. But I predict that will be a growing segment. I think it's great when LC can tie into other interfaces - the more of that the better. And PHP is a giant. Good reason to tie in. Win-win. It will actually make even MORE projects suitable for LC. Or easier; most of this stuff was already possible for a long time. If a job can be done in LiveCode, that's where I'm doing it. And it's difficult to find a job that can't be done here. People STILL don't realize all that LC can do Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ 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 ___ 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
Re: Call lc from php?
Richard: > For those of you who haven't seen Ralf's recent work > on the revIgniter site [...] It's been on the edge of my radar, but never had a chance to use it yet. Thanks for the testimonial and reminder! Hope to try it later this year. Rick: > Why are you still using PHP when LC is better? Technically, depends on how you define "better." PHP definitely wins in some areas. And there are already a lot of well-tested tools available for PHP. But in general, I share your sentiment. I'm "all in" for LC. I'm one of the few who are 100% specialized in LiveCode for all development. But I predict that will be a growing segment. I think it's great when LC can tie into other interfaces - the more of that the better. And PHP is a giant. Good reason to tie in. Win-win. It will actually make even MORE projects suitable for LC. Or easier; most of this stuff was already possible for a long time. If a job can be done in LiveCode, that's where I'm doing it. And it's difficult to find a job that can't be done here. People STILL don't realize all that LC can do Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ 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
Re: Call lc from php?
Hi Richard, I agree to your comments, especially to the first paragraph ;) Joking aside, regarding CMS, CRS, LMS etc., I was thinking about developing a CMS based on revIgniter for quite some time, just for the sake of increasing the diversity, but stayed away from doing it because, if done right, it is such a huge task and because it would not pay my bills. Todd Fabacher once started to develop a revIgniter based CMS but I have no idea if it was ever released. Ralf On 23.01.21 21:02, Richard Gaskin via use-livecode wrote: revIgniter* is a wonderful framework, and one of most well-managed open source projects in our community. Ralf has delivered a faithful re-envisioning of the popular WebIgniter framework for PHP, with some very savvy twists that make it a joy for LiveCode scripters. But WebIgniter is far from PHP's only server framework, and I'd guess Ralf would agree that as valuable as revIgniter is, it isn't the only possible solution for every conceivable type of web site, app, or service. Reproducing many well-established PHP packages in LC is more possible with frameworks like revIgniter than without. But if the PHP package is sophisticated enough it'll be a lot of work. And in many cases we're asked to extend systems we have no control over. There are many good reasons to pursue integration with existing services rather than replacing the entire service from scratch. With my interest in Nextcloud as a backend, for example, I could save a lot of time using revIgniter to build out self-signup. user permissions groups, password reset, WebDAV support, OAuth in both directions, headless REST, even federation, and an admin UI to manage it all. But with Nextcloud I get all that with one Snap command, so I can jump right into the client-side functionality which is my main interest on this project. Similarly, some of my work these days has me integrating LC apps with popular CRMs - the good CRMs are very expensive to produce and not easily replicated, even with a great framework like revIgniter. Like anything else in development, it's just another case of choosing the best tool for the task at hand. For a wide range of projects, revIgniter is a perfect choice. And when you need to integrate LC with an existing PHP system, we can do that too. * For those of you who haven't seen Ralf's recent work on the revIgniter site, in addition to offering truly exemplary documentation I also appreciate the little touches he puts in, like the SVG intro animation for the top banner: https://revigniter.com/ -- Richard Gaskin Fourth World Systems ___ 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
Re: Call lc from php?
revIgniter* is a wonderful framework, and one of most well-managed open source projects in our community. Ralf has delivered a faithful re-envisioning of the popular WebIgniter framework for PHP, with some very savvy twists that make it a joy for LiveCode scripters. But WebIgniter is far from PHP's only server framework, and I'd guess Ralf would agree that as valuable as revIgniter is, it isn't the only possible solution for every conceivable type of web site, app, or service. Reproducing many well-established PHP packages in LC is more possible with frameworks like revIgniter than without. But if the PHP package is sophisticated enough it'll be a lot of work. And in many cases we're asked to extend systems we have no control over. There are many good reasons to pursue integration with existing services rather than replacing the entire service from scratch. With my interest in Nextcloud as a backend, for example, I could save a lot of time using revIgniter to build out self-signup. user permissions groups, password reset, WebDAV support, OAuth in both directions, headless REST, even federation, and an admin UI to manage it all. But with Nextcloud I get all that with one Snap command, so I can jump right into the client-side functionality which is my main interest on this project. Similarly, some of my work these days has me integrating LC apps with popular CRMs - the good CRMs are very expensive to produce and not easily replicated, even with a great framework like revIgniter. Like anything else in development, it's just another case of choosing the best tool for the task at hand. For a wide range of projects, revIgniter is a perfect choice. And when you need to integrate LC with an existing PHP system, we can do that too. * For those of you who haven't seen Ralf's recent work on the revIgniter site, in addition to offering truly exemplary documentation I also appreciate the little touches he puts in, like the SVG intro animation for the top banner: https://revigniter.com/ -- Richard Gaskin Fourth World Systems Erik Beugelaar wrote: We do have revIgniter or am I missing the clue? -Original Message- Richard Gaskin via use-livecode Rick Harrison wrote: > Why are you still using PHP when LC is better? I agree of course that LC is a strong contender against any popular server-side language, as LC's chunk expressions and self-documenting style make clear. But it isn't nearly as popular. LC is where Ruby was before Rails: an interesting and useful language largely underappreciated for server work. We don't even have a single generalized user management library for LC, let alone any of the CMSes, CRMs, LMSes, or hundreds of other categories where PHP is well established. So one way LC can play a growing role in server development is through integration with existing services. And odds are those existing services are written in PHP. So Neville's question is one we might all ask ourselves: How can we use LC to add new capabilities to the PHP-based systems that run most of the online world? For my own part I've been exploring ways LC can be usefully integrated with the breadth of services provided with Nextcloud, which like most server systems is written in PHP. I could theoretically reinvent everything in Nextcloud using LC, but given the countless thousands of hours that have gone into the vast suite of apps that community provides, why would I? Right out of the box I get an API for user management, with access to arbitrary user-specific storage via WebDAV. One line of install code gives me a ready-to-go backend for a wide range of apps, letting me focus on the client side. Lately I've begun taking that further, poking around the server side similar to whatever Neville's working on, looking for ways to integrate LC services with the services already built into Nextcloud. Rewriting Nextcloud from scratch would be doable but prohibitively expensive. But building on top of the Nextcloud platform lets me stand on the shoulders of giants, to see much further than I could on my own. Integration is increasingly a core part of what my clients ask me to do as well. The days of monolithic one-size-fits-all systems are passing, if they haven't passed already. From here forward, the biggest opportunities are in integration with well established services. This not only lets us focus on the specific functionality we enjoy building, but also carries the additional benefit for all of us in the LC community in introducing our favorite language into the communities for those systems. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web Ambassador at FourthWorld.comhttp://www.FourthWorld.com ___ use-livecode mailing list use-live
RE: Call lc from php?
We do have revIgniter or am I missing the clue? -Original Message- From: use-livecode On Behalf Of Richard Gaskin via use-livecode Sent: donderdag 21 januari 2021 21:50 To: use-livecode@lists.runrev.com Cc: Richard Gaskin Subject: Re: Call lc from php? Rick Harrison wrote: >> On Jan 21, 2021, at 6:13 AM, Neville Smythe wrote: >> A slightly less cursory investigation informs me that >> > > Why are you still using PHP when LC is better? I agree of course that LC is a strong contender against any popular server-side language, as LC's chunk expressions and self-documenting style make clear. But it isn't nearly as popular. LC is where Ruby was before Rails: an interesting and useful language largely underappreciated for server work. We don't even have a single generalized user management library for LC, let alone any of the CMSes, CRMs, LMSes, or hundreds of other categories where PHP is well established. So one way LC can play a growing role in server development is through integration with existing services. And odds are those existing services are written in PHP. So Neville's question is one we might all ask ourselves: How can we use LC to add new capabilities to the PHP-based systems that run most of the online world? For my own part I've been exploring ways LC can be usefully integrated with the breadth of services provided with Nextcloud, which like most server systems is written in PHP. I could theoretically reinvent everything in Nextcloud using LC, but given the countless thousands of hours that have gone into the vast suite of apps that community provides, why would I? Right out of the box I get an API for user management, with access to arbitrary user-specific storage via WebDAV. One line of install code gives me a ready-to-go backend for a wide range of apps, letting me focus on the client side. Lately I've begun taking that further, poking around the server side similar to whatever Neville's working on, looking for ways to integrate LC services with the services already built into Nextcloud. Rewriting Nextcloud from scratch would be doable but prohibitively expensive. But building on top of the Nextcloud platform lets me stand on the shoulders of giants, to see much further than I could on my own. Integration is increasingly a core part of what my clients ask me to do as well. The days of monolithic one-size-fits-all systems are passing, if they haven't passed already. From here forward, the biggest opportunities are in integration with well established services. This not only lets us focus on the specific functionality we enjoy building, but also carries the additional benefit for all of us in the LC community in introducing our favorite language into the communities for those systems. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ 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 ___ 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
Re: Call lc from php?
Rick Harrison wrote: >> On Jan 21, 2021, at 6:13 AM, Neville Smythe wrote: >> A slightly less cursory investigation informs me that >> > > Why are you still using PHP when LC is better? I agree of course that LC is a strong contender against any popular server-side language, as LC's chunk expressions and self-documenting style make clear. But it isn't nearly as popular. LC is where Ruby was before Rails: an interesting and useful language largely underappreciated for server work. We don't even have a single generalized user management library for LC, let alone any of the CMSes, CRMs, LMSes, or hundreds of other categories where PHP is well established. So one way LC can play a growing role in server development is through integration with existing services. And odds are those existing services are written in PHP. So Neville's question is one we might all ask ourselves: How can we use LC to add new capabilities to the PHP-based systems that run most of the online world? For my own part I've been exploring ways LC can be usefully integrated with the breadth of services provided with Nextcloud, which like most server systems is written in PHP. I could theoretically reinvent everything in Nextcloud using LC, but given the countless thousands of hours that have gone into the vast suite of apps that community provides, why would I? Right out of the box I get an API for user management, with access to arbitrary user-specific storage via WebDAV. One line of install code gives me a ready-to-go backend for a wide range of apps, letting me focus on the client side. Lately I've begun taking that further, poking around the server side similar to whatever Neville's working on, looking for ways to integrate LC services with the services already built into Nextcloud. Rewriting Nextcloud from scratch would be doable but prohibitively expensive. But building on top of the Nextcloud platform lets me stand on the shoulders of giants, to see much further than I could on my own. Integration is increasingly a core part of what my clients ask me to do as well. The days of monolithic one-size-fits-all systems are passing, if they haven't passed already. From here forward, the biggest opportunities are in integration with well established services. This not only lets us focus on the specific functionality we enjoy building, but also carries the additional benefit for all of us in the LC community in introducing our favorite language into the communities for those systems. -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ 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
Re: Call lc from php?
Hi Neville, Why are you still using PHP when LC is better? Why are you still using PHP when the hackers are all trying to hack it, and are apparently quite successful at it too! If you check your system logs you will discover that hackers try to install PHP on your system if it isn’t running there yet, so they can hack it! The only reason I can see for still running PHP is if you have years worth of old PHP code that you can’t afford to give up because the cost is too great to replace it with LC code. Oh well, at least you found what you needed in the meantime. Just my 2 cents for the day. ;-) Good luck! Rick > On Jan 21, 2021, at 6:13 AM, Neville Smythe via use-livecode > wrote: > > A slightly less cursory investigation informs me that > > > > works, as I should;d have known. > > > Neville > > ___ > 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 ___ 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
Call lc from php?
A slightly less cursory investigation informs me that works, as I should;d have known. Neville ___ 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
Re: Call lc from php?
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); ___ 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
Re: Call lc from php?
Neville Smythe wrote: > Quick question: is it possible to execute a .lc server script from > within php (eg from an index.php page)? > > This other way is documented, but on a cursory perusal I couldn’t see > how to do it, and I’ve forgotten more about php than I remember. > > Maybe using a shell command within the php, but is there a way set up > php to automatically recognise .lc? Php.ini?? No recognition needed if you're explicit: you can pass the name of the .lc page to the Server engine as a param, e.g.: ./livecode-server mycoolscript.lc And there's also a second way: make the .lc script executable, and let the shell know what engine is needed to run it with a shebang on the top line: #!/usr/local/bin/livecode-server More on that from David Williams in the LC blog: https://livecode.com/a-livecode-shell/ -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.com ___ 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
Call lc from php?
Quick question: is it possible to execute a .lc server script from within php (eg from an index.php page)? This other way is documented, but on a cursory perusal I couldn’t see how to do it, and I’ve forgotten more about php than I remember. Maybe using a shell command within the php, but is there a way set up php to automatically recognise .lc? Php.ini?? Neville ___ 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