*.php vs *.lc?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
*.php vs *.lc?
Hi everyone,
I'm working through a middleware solution for a project that i'm working on, and have seen multiple examples. Some use .php while some use .lc. I'm wondering if this is just based on personal preference/comfort level with the given language, or is one more secure than another?
Thank you in advance!
-Sean
I'm working through a middleware solution for a project that i'm working on, and have seen multiple examples. Some use .php while some use .lc. I'm wondering if this is just based on personal preference/comfort level with the given language, or is one more secure than another?
Thank you in advance!
-Sean
-
- Livecode Opensource Backer
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: *.php vs *.lc?
Some more experienced developers might chime in here, but my thought is that you are correct: it is just based on personal preference/comfort level with the given language.
PHP or Livecode will be as secure as you make it.
Personally, I prefer to use Livecode as the middleware since I can use the same functions and language in the front-end and back-end. Although I am more familiar with PHP, I enjoy Livecode language more, and often find myself in a web-project where I am trying to tell php to do something and forget that I cannot simply say "put it into myVariable"
PHP or Livecode will be as secure as you make it.
Personally, I prefer to use Livecode as the middleware since I can use the same functions and language in the front-end and back-end. Although I am more familiar with PHP, I enjoy Livecode language more, and often find myself in a web-project where I am trying to tell php to do something and forget that I cannot simply say "put it into myVariable"
Re: *.php vs *.lc?
Thanks for getting back to me!
I have to agree with you. I've already started tinkering with a .lc solution, and using some pretty helpful resources here in the forum.
I have to agree with you. I've already started tinkering with a .lc solution, and using some pretty helpful resources here in the forum.
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: *.php vs *.lc?
I have to agree with 'ghettocottage'.. I use .lc files for the simple reason you use liveCode in the script of the files... it makes it all seamless...
Re: *.php vs *.lc?
I've started using .lc, and am liking it so far. As you guys said it is pretty seamless, and straight forward. One question i have (that may be pretty simple) how to you take the data that's sent back from the .lc script, and put it into a datagrid?
I'm able to get it to complete the query like i want, and pull the information that i need, but do not know how to move that variable into a datagrid.
Any help you may have would be greatly appreciated.
Thanks!
Sean
I'm able to get it to complete the query like i want, and pull the information that i need, but do not know how to move that variable into a datagrid.
Any help you may have would be greatly appreciated.
Thanks!
Sean
-
- Livecode Opensource Backer
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: *.php vs *.lc?
Something like this (if your variable is named tQuery):
Next step is learning to encrypt your data to and from the server.
I started playing with that, but only got as far as encrypting to the server (no back)..but what I have has been working well. If I can find time today I will put it on Github
Code: Select all
set the dgText of group "DataGrid" to tQuery
Next step is learning to encrypt your data to and from the server.
I started playing with that, but only got as far as encrypting to the server (no back)..but what I have has been working well. If I can find time today I will put it on Github
Re: *.php vs *.lc?
Hey!
Sorry it took so long to get back to you! life got a bit busy, but wanted to thank for your help. looks like that did the trick!
regards,
Sean
Sorry it took so long to get back to you! life got a bit busy, but wanted to thank for your help. looks like that did the trick!
regards,
Sean
Re: *.php vs *.lc?
It also depends were your webserver is running. Many hosts do not run LC or even know LC or just do not allow you to run it.
So then you have to use PHP.
So then you have to use PHP.
-
- VIP Livecode Opensource Backer
- Posts: 9852
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: *.php vs *.lc?
LiveCode is as easy to install as any other CGI program. While it's convenient when you can find a host like mHost.com or on-rev.com with LC Server preinstalled, it can usually be installed in nearly any other host minutes.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: *.php vs *.lc?
I followed this: http://lessons.runrev.com/m/4070/l/3665 ... a-htaccess
but i get a forbidden 403 error
So i'll have to request my host if it is allowed.
but i get a forbidden 403 error
So i'll have to request my host if it is allowed.
-
- VIP Livecode Opensource Backer
- Posts: 9852
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: *.php vs *.lc?
If your host doesn't provide SSH access to your server it's not a good fit for development. If they do, you should be able to set the required permissions yourself without need to wait for them.sphere wrote:I followed this: http://lessons.runrev.com/m/4070/l/3665 ... a-htaccess
but i get a forbidden 403 error
So i'll have to request my host if it is allowed.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: *.php vs *.lc?
I just checked, they only provide SSH on a dedicated server