atBegin questions

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

atBegin questions

Jim Sheffer-3
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!

[hidden email]          [hidden email]
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
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: atBegin questions

stevepiercy
(1)  Get this to work in a page of its own, no
define_atbegin/atend stuff.  Once you get it to work in a page
of its own, *then* throw it into the at... stuff.

(2)  Move the -add outside of the atend block, but within the
atbegin block.

(3)  Define a value for $id, which should be the keyvalue of the
record that is added.

--steve

On 8/27/12 at 5:56 AM, [hidden email] (Jim Sheffer) pronounced:

>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!
>
>[hidden email]          [hidden email]
>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
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: atBegin questions

Jim Sheffer-3
Steve-

Thanks!

I did that and ran the page (Not in the startup folder ) and everything "seems" to work - It didn't add anything but then again there is no error.  Without the "atbegin/atend tags, it does work, and adds a record to the db..

So I guess I'll be brave and try adding it to the startup folder again...


James Sheffer,


On Aug 27, 2012, at 6:03 AM, Steve Piercy - Web Site Builder <[hidden email]> wrote:

> (1)  Get this to work in a page of its own, no define_atbegin/atend stuff.  Once you get it to work in a page of its own, *then* throw it into the at... stuff.
>
> (2)  Move the -add outside of the atend block, but within the atbegin block.
>
> (3)  Define a value for $id, which should be the keyvalue of the record that is added.
>
> --steve
>
> On 8/27/12 at 5:56 AM, [hidden email] (Jim Sheffer) pronounced:
>
>> 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!
>>
>> [hidden email]          [hidden email]
>> 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
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy               Web Site Builder               Soquel, CA
> <[hidden email]>                  <http://www.StevePiercy.com/>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: atBegin questions

Jim Sheffer-3
Wow!

No Server Crash!!!

Just so I understand correctly.  This will be run at each page load, correct?  If the page fails, it will record the failure into the database?

I plan to run this at "off" times so as not to slow anything down...


James Sheffer,

On Aug 27, 2012, at 7:33 AM, Jim Sheffer <[hidden email]> wrote:

> Steve-
>
> Thanks!
>
> I did that and ran the page (Not in the startup folder ) and everything "seems" to work - It didn't add anything but then again there is no error.  Without the "atbegin/atend tags, it does work, and adds a record to the db..
>
> So I guess I'll be brave and try adding it to the startup folder again...
>
>
> James Sheffer,
>
>
> On Aug 27, 2012, at 6:03 AM, Steve Piercy - Web Site Builder <[hidden email]> wrote:
>
>> (1)  Get this to work in a page of its own, no define_atbegin/atend stuff.  Once you get it to work in a page of its own, *then* throw it into the at... stuff.
>>
>> (2)  Move the -add outside of the atend block, but within the atbegin block.
>>
>> (3)  Define a value for $id, which should be the keyvalue of the record that is added.
>>
>> --steve
>>
>> On 8/27/12 at 5:56 AM, [hidden email] (Jim Sheffer) pronounced:
>>
>>> 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!
>>>
>>> [hidden email]          [hidden email]
>>> 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
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>> Steve Piercy               Web Site Builder               Soquel, CA
>> <[hidden email]>                  <http://www.StevePiercy.com/>
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: atBegin questions

Jim Sheffer-3
Ok everyone-

I've been running this script for a few days and so far no errors have been reported!

I guess that's a good thing but my mind likes to think it is because the script isn't working :-)

I did try something that I thought would throw an error and it didn't:

I added an abort tag to a page and then hit the page several times.  I thought the abort tag would throw an error but nothing was reported.  The page loaded until hte abort tag and stopped as it should.

Why wouldn't an abort tag cause an error to be reported (Or should it have and there is something wrong)?

Also, just to be sure, am I to assume that this script runs on every page loaded?

Also, what is the difference between these two:


[Define_AtBegin] defines a tag, type, or compound expression that should be invoked prior to processing each page in the current site

[Site_AtBegin] Returns an array of elements that will be called before each page is processed. Requires site administrator privileges to call.

Thanks again!


James Sheffer,
The HigherPowered Team!


On Aug 27, 2012, at 7:37 AM, Jim Sheffer <[hidden email]> wrote:

> Wow!
>
> No Server Crash!!!
>
> Just so I understand correctly.  This will be run at each page load, correct?  If the page fails, it will record the failure into the database?
>
> I plan to run this at "off" times so as not to slow anything down...
>
>
> James Sheffer,
>
> On Aug 27, 2012, at 7:33 AM, Jim Sheffer <[hidden email]> wrote:
>
>> Steve-
>>
>> Thanks!
>>
>> I did that and ran the page (Not in the startup folder ) and everything "seems" to work - It didn't add anything but then again there is no error.  Without the "atbegin/atend tags, it does work, and adds a record to the db..
>>
>> So I guess I'll be brave and try adding it to the startup folder again...
>>
>>
>> James Sheffer,
>>
>>
>> On Aug 27, 2012, at 6:03 AM, Steve Piercy - Web Site Builder <[hidden email]> wrote:
>>
>>> (1)  Get this to work in a page of its own, no define_atbegin/atend stuff.  Once you get it to work in a page of its own, *then* throw it into the at... stuff.
>>>
>>> (2)  Move the -add outside of the atend block, but within the atbegin block.
>>>
>>> (3)  Define a value for $id, which should be the keyvalue of the record that is added.
>>>
>>> --steve
>>>
>>> On 8/27/12 at 5:56 AM, [hidden email] (Jim Sheffer) pronounced:
>>>
>>>> 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!
>>>>
>>>> [hidden email]          [hidden email]
>>>> 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
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>> Steve Piercy               Web Site Builder               Soquel, CA
>>> <[hidden email]>                  <http://www.StevePiercy.com/>
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: atBegin questions

stevepiercy
The atbegin/end stuff should not report errors.  It should add a
record when the page starts execution, and delete the same
record at the end of execution.  If the page never ends
execution, then the record should remain.

--steve


On 8/28/12 at 11:28 AM, [hidden email] (Jim Sheffer) pronounced:

>Ok everyone-
>
>I've been running this script for a few days and so far no
>errors have been reported!
>
>I guess that's a good thing but my mind likes to think it is
>because the script isn't working :-)
>
>I did try something that I thought would throw an error and it didn't:
>
>I added an abort tag to a page and then hit the page several
>times.  I thought the abort tag would throw an error but
>nothing was reported.  The page loaded until hte abort tag and
>stopped as it should.
>
>Why wouldn't an abort tag cause an error to be reported (Or
>should it have and there is something wrong)?
>
>Also, just to be sure, am I to assume that this script runs on every page loaded?
>
>Also, what is the difference between these two:
>
>
>[Define_AtBegin] defines a tag, type, or compound expression
>that should be invoked prior to processing each page in the
>current site
>
>[Site_AtBegin] Returns an array of elements that will be called
>before each page is processed. Requires site administrator
>privileges to call.
>
>Thanks again!
>
>
>James Sheffer,
>The HigherPowered Team!
>
>
>On Aug 27, 2012, at 7:37 AM, Jim Sheffer <[hidden email]> wrote:
>
>>Wow!
>>
>>No Server Crash!!!
>>
>>Just so I understand correctly.  This will be run at each page load, correct?
>If the page fails, it will record the failure into the database?
>>
>>I plan to run this at "off" times so as not to slow anything down...
>>
>>
>>James Sheffer,
>>
>>On Aug 27, 2012, at 7:33 AM, Jim Sheffer <[hidden email]> wrote:
>>
>>> Steve-
>>>   Thanks!
>>>   I did that and ran the page (Not in the startup folder )
>>>and everything "seems"
>to work - It didn't add anything but then again there is no
>error.  Without the "atbegin/atend tags, it does work, and adds
>a record to the db..
>>>   So I guess I'll be brave and try adding it to the startup
>>>folder again...
>>>    James Sheffer,
>>>    On Aug 27, 2012, at 6:03 AM, Steve Piercy - Web Site Builder
><[hidden email]> wrote:
>>>
>>>> (1)  Get this to work in a page of its own, no define_atbegin/atend stuff.
>Once you get it to work in a page of its own, *then* throw it
>into the at... stuff.
>>>>   (2)  Move the -add outside of the atend block, but within
>>>>the atbegin block.
>>>>   (3)  Define a value for $id, which should be the keyvalue
>>>>of the record that
>is added.
>>>>   --steve
>>>>   On 8/27/12 at 5:56 AM, [hidden email] (Jim
>>>>Sheffer) pronounced:
>>>>
>>>>> 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!
>>>>>   [hidden email]          [hidden email]
>>>>> 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
>>>>> [hidden email]
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>   -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>-- -- -- --
>>>> Steve Piercy               Web Site Builder               Soquel, CA
>>>> <[hidden email]>                  <http://www.StevePiercy.com/>
>>>>   #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>   #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso
>>[hidden email]
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list Lasso
>[hidden email]
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: atBegin questions

Ke Carlton-3
In reply to this post by Jim Sheffer-3
The script in question would only log pages where Lasso crashes
completely — with Lasso 9 that very rarely happens.

If you want to log errors you'd need to change the routine to update
the record with the error detail if there's an error — as opposed to
always deleting the record... ie. delete if error_code == 0 otherwise
update with error details.

Ke

On 28 August 2012 17:28, Jim Sheffer <[hidden email]> wrote:
>
> I've been running this script for a few days and so far no errors have been reported!
>
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>