Aug 27, 2012; 05:56
Jim Sheffer
atBegin questions
Hi all-
First off:
OSX 10.6 server
Lasso 8.6
I found a piece of code posted by Ke on Aug. 10 with an example of using atbegin to track pages that aren't loading correctly
9I'm specifically looking for incursions but anything would be just as well!).
After playing with the code to make it work in Lasso 8.6, I came up with code that doesn't throw an error:
var('curr_date' = (date)->format('%Q'),
'curr_time' = (date)->format('%T')
);
define_atbegin({
local(id) = lasso_uniqueid;
define_atend({
inline(
-database='xxx',
-table='xxx',
-username='xxx',
-password='xxx',
-keyfield = 'id',
-keyvalue = $id,
-delete);
/inline;
inline(
-database='xxx',
-table='xxx',
-username='xxx',
-password='xxx',
'session_id' = (lasso_uniqueid),
'cc_type' = client_url,
'ccmo' = client_ip,
'ccyr' = client_browser,
'transdate' = $curr_date,
'transtime' = $curr_time,
-add);
/inline;
});
});
So I put the file in the startup folder for the site in question and restarted Lasso.
Nothing...
Nothing...
Nothing...
I removed the file and after about 25 restarts (Both Lasso and the server, both in console mode and regular mode) Lasso FINALLY started!
Needless to say, I'm a bit gun-shy :-)
Does this code look OK?
Should it work?
I know the database connection works because I was able to add records when testing (Not in the startup folder).
James Sheffer,
The HigherPowered Team!
support@higherpowered.com sales@higherpowered.com
Web Design & Development http://www.higherpowered.com
phone: 469-256-0268
"We help businesses succeed on the web!"
-------------------------------------------
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Aug 27, 2012; 04:03
Steve Piercy - Web Site Builder
Re: atBegin questions
Aug 28, 2012; 12:49
Steve Piercy - Web Site Builder
Re: atBegin questions