Search found 197 matches

by edgore
Fri Oct 11, 2013 5:43 am
Forum: Databases
Topic: Write a chunk of sql into a variable
Replies: 3
Views: 1822

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...
by edgore
Fri Oct 11, 2013 12:24 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Using Merge function with arrays
Replies: 3
Views: 822

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: ...
by edgore
Thu Oct 10, 2013 8:03 pm
Forum: CGIs and the Server
Topic: Livecode-server: Premature end of script-error
Replies: 2
Views: 2306

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
by edgore
Wed Oct 09, 2013 4:05 pm
Forum: CGIs and the Server
Topic: Send a file to a browser
Replies: 8
Views: 2544

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...
by edgore
Wed Oct 09, 2013 3:44 pm
Forum: CGIs and the Server
Topic: Send a file to a browser
Replies: 8
Views: 2544

Re: Send a file to a browser

Thanks for the suggestion. I tried the following: put header "Content-dispostion: attachment; filename=" & theNameofMyZipFile --this is just the name and extension, not the full path put header "content-Type: application/zip" put binary url "binfile:" & thePathToMyZipFile --this is the relative path...
by edgore
Wed Oct 09, 2013 3:22 am
Forum: CGIs and the Server
Topic: Send a file to a browser
Replies: 8
Views: 2544

Re: Send a file to a browser

I think we are talking about different things - this isn't running on a desktop client. The script is running on the server and the server is sending the file to a browser client via http. That is what I was describing in my previous post, though maybe not too clearly.
by edgore
Wed Oct 09, 2013 1:52 am
Forum: CGIs and the Server
Topic: Send a file to a browser
Replies: 8
Views: 2544

Re: Send a file to a browser

Because I am using the content type of attachment the browser asks the user to save the file - basically the end result of the server side processing is a file the user downloads. That part is working correctly - it's just that what is getting downloaded is not a proper zip file, so I assume I am su...
by edgore
Tue Oct 08, 2013 9:47 pm
Forum: CGIs and the Server
Topic: Send a file to a browser
Replies: 8
Views: 2544

Send a file to a browser

I am trying to figure out the Livecode equivalent of this PHP: <?php // We'll be outputting a PDF header('Content-type: application/pdf'); // It will be called downloaded.pdf header('Content-Disposition: attachment; filename="downloaded.pdf"'); // The PDF source is in original.pdf readfile('original...
by edgore
Thu Oct 03, 2013 3:39 pm
Forum: Off-Topic
Topic: more 700 users joined the forum since 1 april !
Replies: 14
Views: 8452

Re: more 700 users joined the forum since 1 april !

Also, it's important to remember that the kickstarted version of Livecode isn't out yet! And won't be for several more months. The community release that exists today is just an open sourcing of the old version. The real kickstarted version is coming - with a rewritten engine and a redesigned IDE. I...
by edgore
Wed Sep 25, 2013 7:09 pm
Forum: Announcements
Topic: LiveCode 6.1.1 Released
Replies: 13
Views: 10282

Re: LiveCode 6.1.1 Released

I also see that there is an RC for 6.1.2 server in downloads.livecode.com/livecode/server/ - any word on what's changed/fixed? I don't think I have seen any announcement about a 6.1.2 anything...

edit - nevermind, found release notes
by edgore
Wed Sep 25, 2013 7:07 pm
Forum: Announcements
Topic: LiveCode 6.1.1 Released
Replies: 13
Views: 10282

Re: LiveCode 6.1.1 Released

Did someone forget about server?

The links on both the community page and the licensed link on my store page for commercial all go to 6.1.0 for Windows Server.
by edgore
Thu Aug 29, 2013 8:41 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Split as set
Replies: 3
Views: 844

Re: Split as set

It didn't break an old usage - I noticed it in the dictionary when I was working on something (and wondered why I had not been using it all along, since the dictionary said split had not changed since 2.8.1) and used it in something new that I was working on - when I deployed it to the server the ne...
by edgore
Thu Aug 29, 2013 6:53 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Split as set
Replies: 3
Views: 844

Split as set

Does anyone know when "as set" got added to split? The dictionary says that Split hasn't changed since 2.8.1, but I just had something fail on a server that was running 5.something because I had a script that used it. Upgrading the server to 6.1 fixed it, so I am assuming that this is a recent addit...
by edgore
Thu Aug 29, 2013 6:48 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Complete HyperCard Handbook (2.2)
Replies: 23
Views: 4390

Re: Complete HyperCard Handbook (2.2)

If that was directed at me, then... I don't really have any problem with the included docs, except that they are very out of date. I assume that this will improve once the new engine is done and everything settles down, though. The thing that I like about the Goodman books, as people have previously...
by edgore
Thu Aug 29, 2013 4:18 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Complete HyperCard Handbook (2.2)
Replies: 23
Views: 4390

Re: Complete HyperCard Handbook (2.2)

I would love to have a Livecode equivalent of this book. I taught myself Hypercard using the first edition of this book (without access to a Mac!). If someone wants to make a quick $50 bucks I will gladly pay you that much for one! :D

Go to advanced search