Thanks Peter.

I think I stumbled upon the error and it was as you suggested, what boiled down 
to a simple typo.
Its now behaving and doing what it should.


________________________________________
From: use-livecode [use-livecode-boun...@lists.runrev.com] on behalf of Peter W 
A Wood [peterwaw...@gmail.com]
Sent: Tuesday, May 20, 2014 2:11 PM
To: How to use LiveCode
Subject: Re: LC Server - what am I doing woring

Nakia

The problem with your second script appears to be here:

        if tAction = "track" then

If I change that to if 1 = 1 then, the file is written to the folder containing 
the script.

What is the URL you are using to access this script?

Regards

Peter


On 20 May 2014, at 11:50, Nakia Brewer wrote:

> Hi All,
>
> I am currently trying to learn how to use LC Server scripts and as such am 
> doing some experimenting.
>
> I have the 2 below examples of which the first works and the second does not.
> I know these are trivial and serve no real purpose but remember I have 
> training wheels on!
>
> I am using sublime text to edit my LC files (could it be an issue with line 
> endings?)
>
> This works:
> <?lc
>
> put $_GET["A"] into tAction
> put $_GET["location"] into thelocation
> put $_GET["clock"] into thetime
> put "This is an error message" into theErrorMsg
> put theErrorMsg into URL “file:error.txt”
>
> put empty
>
> ?>
>
>
>
> This DOES NOT work:
> <?lc
>
> put $_GET["A"] into tAction
>
>   put $_GET["location"] into thelocation
>   put $_GET["clock"] into thetime
>
> if tAction = "track" then
>   put “localhost” into tDatabaseAddress
>   put “ua835258_westec” into tDatabaseName
>   put "ua835258_westec" into tDatabaseUser
>   put “thisisafakepassword” into tDatabasePassword
>   put “user_locations” into tTableName
>   put “1” into tUserID
>   put “10” into tSpeed
>   put “user_id,date_time,lat,long,speed” into tFields
>   put thetime & tab & thelocation into temp
>   put tDatabaseAddress & tDatabaseName & tDatabaseUser & tDatabasePassword & 
> tTableName & tUserID & tSpeed & tFields & temp into URL "file:test.txt"
> end if
>
> put empty
>
> ?>
>
> COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
> contain confidential proprietary or privileged information. If you are not 
> the intended recipient, you are strictly prohibited from using, reproducing, 
> disclosing or distributing the information contained in this email without 
> authorisation from WesTrac. If you have received this message in error please 
> contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
> with computer virus, data corruption, delay, interruption, unauthorised 
> access or unauthorised amendment. We reserve the right to monitor all e-mail 
> communications.
>
>
>
> _______________________________________________
> 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


COPYRIGHT / DISCLAIMER: This message and/or including attached files may 
contain confidential proprietary or privileged information. If you are not the 
intended recipient, you are strictly prohibited from using, reproducing, 
disclosing or distributing the information contained in this email without 
authorisation from WesTrac. If you have received this message in error please 
contact WesTrac on +61 8 9377 9444. We do not accept liability in connection 
with computer virus, data corruption, delay, interruption, unauthorised access 
or unauthorised amendment. We reserve the right to monitor all e-mail 
communications.



_______________________________________________
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

Reply via email to