Search found 164 matches
- Thu Oct 17, 2013 7:28 pm
- Forum: CGIs and the Server
- Topic: the variableNames errors on Windows server 6.1.1?
- Replies: 6
- Views: 6515
Re: the variableNames errors on Windows server 6.1.1?
That means they should show up on line 4 of the output from the VariableNames: From the dictionary: The variableNames function returns a value consisting of four lines: 1. Parameters passed to the current handler (including leading '@' for parameters passed by-reference) 2. Local variables created i...
- Thu Oct 17, 2013 6:30 pm
- Forum: CGIs and the Server
- Topic: the variableNames errors on Windows server 6.1.1?
- Replies: 6
- Views: 6515
Re: the variableNames errors on Windows server 6.1.1?
This also give the same 500 error:
It works fine if you comment out line 3, so I definitely think that the variableNames is broken on windows server 6.1.1
Code: Select all
<?lc
put 1 into aNumber
put the variableNames into aVariable
put "<html><body>This is a test -" && aVariable && "</body></html>"
?>
- Thu Oct 17, 2013 4:07 pm
- Forum: CGIs and the Server
- Topic: the variableNames errors on Windows server 6.1.1?
- Replies: 6
- Views: 6515
Re: the variableNames errors on Windows server 6.1.1?
The variable names function should not error out, even if there are no variables - it should return four blank lines (which would all show up in one line in a browser) as it does on the desktop. Getting an error 500 is bad, since it doesn't mean there was no response or output from the server, it me...
- Wed Oct 16, 2013 6:29 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: LiveCode IDE for IPad?
- Replies: 13
- Views: 8720
Re: LiveCode IDE for IPad?
I doubt there will never be a full IDE for any iOS device, because of Apple's restrictions on what is allowed into the app store. Your best tablet bet is probably something like the Surface Pro, or some other full Windows tablet, though since the IDE is not optimized for a touch interface it will pr...
- Wed Oct 16, 2013 6:23 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: LiveCode Readability and Comments
- Replies: 5
- Views: 3815
Re: LiveCode Readability and Comments
In my own experience Livecode is readable enough to figure out *what* I am doing, but I still need a lot of comments to explain *why* I am doing it. A lot of the stuff that I write involves taking data from external sources and massaging it, so I find that I need a lot of comments to prod me into re...
- Tue Oct 15, 2013 8:10 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: identifying an array
- Replies: 2
- Views: 1950
Re: identifying an array
Ah. See, I like your way better because it seems much more readable.
- Mon Oct 14, 2013 7:06 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: identifying an array
- Replies: 2
- Views: 1950
identifying an array
Is there any way to determine if a variable is an other than checking to see if the keys of a variable are not empty? I couldn't think of one. One thing I have learned though is that there is usually a better way of doing *anything* than the only way that I can think of to do it.
- Mon Oct 14, 2013 5:36 pm
- Forum: CGIs and the Server
- Topic: the variableNames errors on Windows server 6.1.1?
- Replies: 6
- Views: 6515
the variableNames errors on Windows server 6.1.1?
Can anybody duplicate this? the script is just <?lc put 1 into aNumber put the variableNames ?> It reliably results in 500 internal server error with Windows server engine 6.1.1. with the entry below in the Apache error log: [Mon Oct 14 10:31:47 2013] [error] [client 127.0.0.1] Premature end of scri...
- Fri Oct 11, 2013 5:54 pm
- Forum: CGIs and the Server
- Topic: return user to original webpage
- Replies: 3
- Views: 3714
Re: return user to original webpage
Thanks! Putting it all into a single script with conditionals worked perfectly. I will have to read up on the location header and your other suggestions, since they seem like they would be useful, but I just don't understand them well enough to get exactly what is going on. Thanks for the pointer th...
- Fri Oct 11, 2013 4:20 pm
- Forum: CGIs and the Server
- Topic: return user to original webpage
- Replies: 3
- Views: 3714
return user to original webpage
Okay... So I have an lc script that a user goes to that presents them with a list of editable fields showing data pulled from a database. The user can edit the info in the fields and press a button, which submits the data to another script via POST. That script then adds/deletes/updates the database...
- Fri Oct 11, 2013 3:29 pm
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Using Merge function with arrays
- Replies: 3
- Views: 2511
Re: Using Merge function with arrays
Figured it out - put parentheses around the array reference and it all works just fine. So: INSERT INTO idmap_systems (system_uid, name, system_id, mgr_ldap_uid) VALUES ('[[($_POST["system_uid"])]]','[[($_POST["name"])]]','[[($_POST["system_id"])]]','[[($_POST["mgr_ldap_uid"])]]') is the correct tem...
- Fri Oct 11, 2013 5:43 am
- Forum: Databases
- Topic: Write a chunk of sql into a variable
- Replies: 3
- Views: 3648
Re: Write a chunk of sql into a variable
One more thing that pops out - you should not be using ; at the end of SQL queries in livecode. Pretty sure you need single quotes around you values too. Also, is there a reason you have the connection id in a field, rather than using a global variable? Or, even better, closing the connection when i...
- Fri Oct 11, 2013 12:24 am
- Forum: Getting Started with LiveCode - Complete Beginners
- Topic: Using Merge function with arrays
- Replies: 3
- Views: 2511
Using Merge function with arrays
Is there a trick to being able to use the Merge function with array elements, or do I have to pull the data out of each element and put it into a variable before merging? I looked around in the forums, but was unable to find anything. Here is the merge I am trying to do: the elements of $_POST are: ...
- Thu Oct 10, 2013 8:03 pm
- Forum: CGIs and the Server
- Topic: Livecode-server: Premature end of script-error
- Replies: 2
- Views: 4362
Re: Livecode-server: Premature end of script-error
I have also gotten this error as a result of an error in a script. In my case it was having the line:
exit exit to top
instead of just
exit to top
exit exit to top
instead of just
exit to top
- Wed Oct 09, 2013 4:05 pm
- Forum: CGIs and the Server
- Topic: Send a file to a browser
- Replies: 8
- Views: 6568
Re: Send a file to a browser
That did it! I had just noticed that if I changed the extension on the downloaded files to txt and opened them that instead of binary gobbledygook they contained the filepath, in plain text, so obviously there was something going wrong with trying to directly put the url to stdout. This method of po...