10-11-2025 20:04:12.20658[0][4] - Elapsed time: 4.862 milliseconds
[conversation_start.php][Called outside of function][56]
Conversation starting. Current system specs:
  Program O version:            2.6.11
  Server Software:              LiteSpeed
  PHP Version:                  7.4.33
  OS:                           Linux
  OS Version:                   #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025
  MySQL Version:                11.4.8-MariaDB-cll-lve
  Multi-byte functions enabled: true 
-----------------------
10-11-2025 20:04:12.20683[4][4] - Elapsed time: 0.248 milliseconds
[load_aimlfunctions.php][Called outside of function][16]
AIML function include files loaded 
-----------------------
10-11-2025 20:04:12.20702[4][4] - Elapsed time: 0.193 milliseconds
[load_convofunctions.php][Called outside of function][16]
Convofunction include files loaded 
-----------------------
10-11-2025 20:04:12.20711[4][4] - Elapsed time: 0.091 milliseconds
[load_userfunctions.php][Called outside of function][14]
userfunctions include files loaded 
-----------------------
10-11-2025 20:04:12.20751[4][4] - Elapsed time: 0.399 milliseconds
[load_addons.php][Called outside of function][19]
Loading addons 
-----------------------
10-11-2025 20:04:12.20752[4][4] - Elapsed time: 0.012 milliseconds
[conversation_start.php][Called outside of function][69]
Loaded all Includes 
-----------------------
10-11-2025 20:04:12.20765[1][4] - Elapsed time: 0.132 milliseconds
[conversation_start.php][Called outside of function][118]
PHP ERROR [Warning] -session_id(): Cannot change session id when session is active in /home/siew8359/public_html/dannus.siega23.com/Program-O/chatbot/conversation_start.php on Line 118 
-----------------------
10-11-2025 20:04:12.20798[0][4] - Elapsed time: 0.325 milliseconds
[conversation_start.php][Called outside of function][122]
Debug level: 4
session ID = 7821c12fa727a0d6c50ba56e4a490a11 
-----------------------
10-11-2025 20:04:12.20799[4][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][125]
Conversation continuing. User said 'nama saya abel'. 
-----------------------
10-11-2025 20:04:12.20800[4][4] - Elapsed time: 0.016 milliseconds
[intialise_conversation.php][read_from_session][155]
Reading from session 
-----------------------
10-11-2025 20:04:12.20801[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_default_bot_values][110]
Loading db bot personality properties 
-----------------------
10-11-2025 20:04:12.20802[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_default_bot_values][118]
load db bot personality values SQL: SELECT * FROM `siew8359_dannu`.`botpersonality` WHERE `bot_id` = 1; 
-----------------------
10-11-2025 20:04:12.20828[4][4] - Elapsed time: 0.260 milliseconds
[intialise_conversation.php][check_set_convo_id][643]
Obtaining the convo id from form vars. Value: f2ebbf46c4226a8c591f9705f2fa4053 
-----------------------
10-11-2025 20:04:12.20829[2][4] - Elapsed time: 0.012 milliseconds
[intialise_conversation.php][check_set_bot][581]
Checking and/or setting the current bot. 
-----------------------
10-11-2025 20:04:12.20830[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][check_set_bot][599]
Making sure the bot exists. SQL = SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1 AND `bot_active` = 1; 
-----------------------
10-11-2025 20:04:12.20859[2][4] - Elapsed time: 0.288 milliseconds
[intialise_conversation.php][check_set_bot][616]
BOT ID: 1 
-----------------------
10-11-2025 20:04:12.20860[2][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][check_set_user][672]
Checking and setting the user info, as needed. 
-----------------------
10-11-2025 20:04:12.20883[3][4] - Elapsed time: 0.234 milliseconds
[intialise_conversation.php][check_set_user][705]
Loading client properties from the DB - sql:
SELECT `name`, `value` FROM `siew8359_dannu`.`client_properties` WHERE `user_id` = 131 AND `bot_id` = 1; 
-----------------------
10-11-2025 20:04:12.20911[2][4] - Elapsed time: 0.274 milliseconds
[spell_checker.php][run_spell_checker_say][36]
Starting function and setting timestamp. 
-----------------------
10-11-2025 20:04:12.20917[2][4] - Elapsed time: 0.056 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on nama. 
-----------------------
10-11-2025 20:04:12.20918[2][4] - Elapsed time: 0.012 milliseconds
[spell_checker.php][load_spelling_list][117]
Loading the spellcheck list from the DB. 
-----------------------
10-11-2025 20:04:12.20958[2][4] - Elapsed time: 0.406 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 20:04:12.20960[2][4] - Elapsed time: 0.018 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on saya. 
-----------------------
10-11-2025 20:04:12.20962[2][4] - Elapsed time: 0.015 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on  . 
-----------------------
10-11-2025 20:04:12.20963[2][4] - Elapsed time: 0.011 milliseconds
[spell_checker.php][spell_check][60]
Preforming a spel chek on abel. 
-----------------------
10-11-2025 20:04:12.20964[4][4] - Elapsed time: 0.017 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'nama saya abel' 
-----------------------
10-11-2025 20:04:12.20979[4][4] - Elapsed time: 0.143 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMA SAYA ABEL' 
-----------------------
10-11-2025 20:04:12.20980[2][4] - Elapsed time: 0.011 milliseconds
[conversation_start.php][Called outside of function][200]
Details:
User say: NAMA SAYA ABEL
Convo id: 7821c12fa727a0d6c50ba56e4a490a11
Bot id: 1
Format:  
-----------------------
10-11-2025 20:04:12.20981[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][check_set_format][752]
Using format: json 
-----------------------
10-11-2025 20:04:12.20981[2][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_that][769]
Loading the THAT array. 
-----------------------
10-11-2025 20:04:12.20982[3][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][load_that][784]
Getting conversation log entries for the current user. SQL:
SELECT `input`, `response` FROM `siew8359_dannu`.`conversation_log` WHERE `user_id` = 131 AND `bot_id` = 1 ORDER BY `id` DESC limit 10; 
-----------------------
10-11-2025 20:04:12.21073[1][4] - Elapsed time: 0.911 milliseconds
[intialise_conversation.php][load_that][804]
Inputs returned:Array
(
    [0] => halo
    [1] => HELLO
)
 
-----------------------
10-11-2025 20:04:12.21074[4][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][load_that][805]
Loading previous responses into the ~THAT~ array. 
-----------------------
10-11-2025 20:04:12.21075[1][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_that][806]
Responses returned:Array
(
    [0] => Halo! Senang bertemu dengan Anda. Bagaimana kabar Anda?
    [1] => Halo! Saya pedro salto, siap membantu Anda. Ada pertanyaan?
)
 
-----------------------
10-11-2025 20:04:12.21076[2][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21077[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  Saya pedro salto
    [2] =>  siap membantu Anda
    [3] =>  Ada pertanyaan
    [4] => 
)

 
-----------------------
10-11-2025 20:04:12.21077[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21078[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
10-11-2025 20:04:12.21078[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
10-11-2025 20:04:12.21079[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Saya pedro salto siap membantu Anda Ada pertanyaan ' 
-----------------------
10-11-2025 20:04:12.21080[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
10-11-2025 20:04:12.21081[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
10-11-2025 20:04:12.21081[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' to the front of the [that] array 
-----------------------
10-11-2025 20:04:12.21084[4][4] - Elapsed time: 0.026 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that array 
-----------------------
10-11-2025 20:04:12.21091[4][4] - Elapsed time: 0.070 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
10-11-2025 20:04:12.21092[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
10-11-2025 20:04:12.21093[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
10-11-2025 20:04:12.21093[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN' 
-----------------------
10-11-2025 20:04:12.21094[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21095[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Halo
    [1] =>  Senang bertemu dengan Anda
    [2] =>  Bagaimana kabar Anda
    [3] => 
)

 
-----------------------
10-11-2025 20:04:12.21095[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21096[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'Halo Senang bertemu dengan Anda Bagaimana kabar Anda ' 
-----------------------
10-11-2025 20:04:12.21096[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Halo Senang bertemu dengan Anda Bagaimana kabar Anda ' 
-----------------------
10-11-2025 20:04:12.21097[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Halo Senang bertemu dengan Anda Bagaimana kabar Anda ' 
-----------------------
10-11-2025 20:04:12.21098[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
10-11-2025 20:04:12.21098[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
10-11-2025 20:04:12.21099[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' to the front of the [that] array 
-----------------------
10-11-2025 20:04:12.21100[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
10-11-2025 20:04:12.21100[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
10-11-2025 20:04:12.21101[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
10-11-2025 20:04:12.21101[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' 
-----------------------
10-11-2025 20:04:12.21102[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_that][835]
Loading previous user inputs into the ~INPUT~ array. 
-----------------------
10-11-2025 20:04:12.21103[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21104[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => HELLO
)

 
-----------------------
10-11-2025 20:04:12.21104[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21105[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'HELLO' 
-----------------------
10-11-2025 20:04:12.21105[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'HELLO' 
-----------------------
10-11-2025 20:04:12.21106[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'HELLO' 
-----------------------
10-11-2025 20:04:12.21106[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HELLO' 
-----------------------
10-11-2025 20:04:12.21107[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HELLO' 
-----------------------
10-11-2025 20:04:12.21107[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HELLO' to the front of the [input] array 
-----------------------
10-11-2025 20:04:12.21108[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank input array 
-----------------------
10-11-2025 20:04:12.21109[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21109[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => halo
)

 
-----------------------
10-11-2025 20:04:12.21110[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21110[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'halo' 
-----------------------
10-11-2025 20:04:12.21111[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'halo' 
-----------------------
10-11-2025 20:04:12.21111[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'halo' 
-----------------------
10-11-2025 20:04:12.21112[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'HALO' 
-----------------------
10-11-2025 20:04:12.21112[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'HALO' 
-----------------------
10-11-2025 20:04:12.21113[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'HALO' to the front of the [input] array 
-----------------------
10-11-2025 20:04:12.21164[2][4] - Elapsed time: 0.512 milliseconds
[intialise_conversation.php][load_bot_config][343]
Loading config data for the current bot. 
-----------------------
10-11-2025 20:04:12.21165[3][4] - Elapsed time: 0.013 milliseconds
[intialise_conversation.php][load_bot_config][352]
load bot config SQL: SELECT * FROM `siew8359_dannu`.`bots` WHERE bot_id = 1; 
-----------------------
10-11-2025 20:04:12.21187[4][4] - Elapsed time: 0.222 milliseconds
[intialise_conversation.php][load_bot_config][357]
Loading bot details from the database. 
-----------------------
10-11-2025 20:04:12.21189[0][4] - Elapsed time: 0.013 milliseconds
[conversation_start.php][Called outside of function][220]
Default debug level = 4 
-----------------------
10-11-2025 20:04:12.21189[0][4] - Elapsed time: 0.006 milliseconds
[conversation_start.php][Called outside of function][222]
Current debug level = 4 
-----------------------
10-11-2025 20:04:12.21190[0][4] - Elapsed time: 0.005 milliseconds
[conversation_start.php][Called outside of function][235]
Say = NAMA SAYA ABEL: raw say = nama saya abel 
-----------------------
10-11-2025 20:04:12.21190[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][add_new_conversation_vars][184]
New conversation vars 
-----------------------
10-11-2025 20:04:12.21191[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'NAMA SAYA ABEL' to the front of the [user_say] array 
-----------------------
10-11-2025 20:04:12.21192[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank user_say array 
-----------------------
10-11-2025 20:04:12.21193[0][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][add_new_conversation_vars][188]
User RAW = nama saya abel, RAW say = nama saya abel 
-----------------------
10-11-2025 20:04:12.21193[2][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'nama saya abel' to the front of the [input] array 
-----------------------
10-11-2025 20:04:12.21194[4][4] - Elapsed time: 0.008 milliseconds
[make_conversation.php][make_conversation][22]
Making conversation 
-----------------------
10-11-2025 20:04:12.21195[4][4] - Elapsed time: 0.005 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'NAMA SAYA ABEL' 
-----------------------
10-11-2025 20:04:12.21196[4][4] - Elapsed time: 0.009 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'NAMA SAYA ABEL' 
-----------------------
10-11-2025 20:04:12.21196[4][4] - Elapsed time: 0.006 milliseconds
[find_aiml.php][get_aiml_to_parse][909]
Running all functions to get the correct aiml from the DB 
-----------------------
10-11-2025 20:04:12.21224[4][4] - Elapsed time: 0.280 milliseconds
[find_aiml.php][find_userdefined_aiml][821]
Looking for user defined responses 
-----------------------
10-11-2025 20:04:12.21227[3][4] - Elapsed time: 0.024 milliseconds
[find_aiml.php][find_userdefined_aiml][870]
User defined SQL:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `template` FROM `siew8359_dannu`.`aiml_userdefined` WHERE
    `bot_id` = 1 AND
    `user_id` = 'f2ebbf46c4226a8c591f9705f2fa4053'
    AND (
        'NAMA SAYA ABEL' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%')))
   ORDER BY `id` ASC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 20:04:12.21251[2][4] - Elapsed time: 0.242 milliseconds
[find_aiml.php][find_userdefined_aiml][896]
User defined rows found: '0' 
-----------------------
10-11-2025 20:04:12.21252[4][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][975]
Finding the aiml matches from the DB 
-----------------------
10-11-2025 20:04:12.21252[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][find_aiml_matches][981]
Bot ID = 1. Bot Parent ID = 1. 
-----------------------
10-11-2025 20:04:12.21277[4][4] - Elapsed time: 0.254 milliseconds
[find_aiml.php][find_aiml_matches][992]
Stored topic = '' 
-----------------------
10-11-2025 20:04:12.21279[3][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][find_aiml_matches][1052]
Core Match AIML sql:
SELECT `id`, `bot_id`, `pattern`, `thatpattern`, `topic`, `filename`, `template` FROM `siew8359_dannu`.`aiml` WHERE
    bot_id = 1 AND (
        'NAMA SAYA ABEL' LIKE (REPLACE(REPLACE(`pattern`, '*', '%'), '_', '%'))
        OR 'HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA' LIKE (REPLACE(REPLACE(`thatpattern`, '*', '%'), '_', '%'))
        OR `pattern` LIKE 'RANDOM PICKUP LINE'
    )
    # ORDER BY `id` ASC, `topic` DESC, `pattern` ASC, `thatpattern` ASC; 
-----------------------
10-11-2025 20:04:12.21313[3][4] - Elapsed time: 0.340 milliseconds
[find_aiml.php][find_aiml_matches][1054]
Query Process time... 
-----------------------
10-11-2025 20:04:12.21314[2][4] - Elapsed time: 0.009 milliseconds
[find_aiml.php][find_aiml_matches][1061]
FOUND: (2) potential AIML matches 
-----------------------
10-11-2025 20:04:12.21341[1][4] - Elapsed time: 0.275 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][35]
Current THAT = HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA 
-----------------------
10-11-2025 20:04:12.21342[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][48]
NEW FUNC Searching through 2 rows to unset bad matches 
-----------------------
10-11-2025 20:04:12.21343[4][4] - Elapsed time: 0.005 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][62]
Blue 5 to Blue leader. Starting my run now! Looking for 'NAMA SAYA ABEL' 
-----------------------
10-11-2025 20:04:12.21353[4][4] - Elapsed time: 0.096 milliseconds
[find_aiml.php][unset_all_bad_pattern_matches][195]
Found 2 relevant rows 
-----------------------
10-11-2025 20:04:12.21354[4][4] - Elapsed time: 0.011 milliseconds
[find_aiml.php][score_matches][255]
Scoring the matches. 
-----------------------
10-11-2025 20:04:12.21386[4][4] - Elapsed time: 0.322 milliseconds
[find_aiml.php][score_matches][548]
Sorted array $allrows:
Array
(
    [0] => Array
        (
            [id] => 1219
            [bot_id] => 1
            [pattern] => NAMA SAYA *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
            [score] => 256
            [current_that] => halo senang bertemu dengan anda bagaimana kabar anda
            [aiml_id] => 1219
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: nama (2 points), direct word match: saya (2 points), star word match (1 points)
        )

    [1] => Array
        (
            [id] => 1190
            [bot_id] => 1
            [pattern] => *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <random>
        <li>Maaf, saya kurang memahami pertanyaan Anda.
        Bisakah Anda mengatakannya dengan cara lain?</li>
        <li>Hmm, saya belum mengerti maksud Anda.
        Bisa dijelaskan lebih detail?</li>
        <li>Maaf, saya masih belajar.
        Bisakah Anda bertanya dengan kalimat yang berbeda?</li>
        <li>Saya belum dapat memproses itu.
        Coba tanyakan hal lain atau gunakan kata-kata yang lebih sederhana.</li>
      </random>
            [score] => 252
            [current_that] => halo senang bertemu dengan anda bagaimana kabar anda
            [aiml_id] => 1190
            [track_score] => current bot (250 points), no thatpattern to match (1 point), pattern star match (1 points)
        )

)
 
-----------------------
10-11-2025 20:04:12.21388[2][4] - Elapsed time: 0.017 milliseconds
[find_aiml.php][get_highest_scoring_row][642]
Final candidates:

Array
(
    [0] => Array
        (
            [id] => 1219
            [bot_id] => 1
            [pattern] => NAMA SAYA *
            [thatpattern] => 
            [topic] => 
            [filename] => chatbot.aiml
            [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
            [score] => 256
            [current_that] => halo senang bertemu dengan anda bagaimana kabar anda
            [aiml_id] => 1219
            [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: nama (2 points), direct word match: saya (2 points), star word match (1 points)
        )

)

 
-----------------------
10-11-2025 20:04:12.21413[4][4] - Elapsed time: 0.253 milliseconds
[find_aiml.php][get_highest_scoring_row][697]
Best Response: Array
(
    [id] => 1219
    [bot_id] => 1
    [pattern] => NAMA SAYA *
    [thatpattern] => 
    [topic] => 
    [filename] => chatbot.aiml
    [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
    [score] => 256
    [current_that] => halo senang bertemu dengan anda bagaimana kabar anda
    [aiml_id] => 1219
    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: nama (2 points), direct word match: saya (2 points), star word match (1 points)
)
 
-----------------------
10-11-2025 20:04:12.21414[2][4] - Elapsed time: 0.007 milliseconds
[find_aiml.php][get_highest_scoring_row][698]
No results found, so none to pick from. 
-----------------------
10-11-2025 20:04:12.21415[4][4] - Elapsed time: 0.015 milliseconds
[find_aiml.php][get_aiml_to_parse][960]
Will be parsing id:1219 (NAMA SAYA *) 
-----------------------
10-11-2025 20:04:12.21416[3][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][parse_matched_aiml][213]
Run the aiml parse in normal mode (normal or srai) 
-----------------------
10-11-2025 20:04:12.21416[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml.php][set_wildcards][297]
Setting Wildcards. Pattern = 'NAMA SAYA *' 
-----------------------
10-11-2025 20:04:12.21417[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][306]
We have pattern stars to process! 
-----------------------
10-11-2025 20:04:12.21417[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml.php][set_wildcards][310]
RegEx string = ~NAMA SAYA (.+)$~siuU: Searching nama saya abel for a match. 
-----------------------
10-11-2025 20:04:12.21421[2][4] - Elapsed time: 0.038 milliseconds
[parse_aiml.php][set_wildcards][313]
Array
(
    [0] => Array
        (
            [0] => nama saya abel
        )

    [1] => Array
        (
            [0] => abel
        )

)
 
-----------------------
10-11-2025 20:04:12.21423[2][4] - Elapsed time: 0.017 milliseconds
[parse_aiml.php][set_wildcards][318]
Adding 'abel' to the stars stack. 
-----------------------
10-11-2025 20:04:12.21424[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][320]
Star array = Array
(
    [1] => abel
)
 
-----------------------
10-11-2025 20:04:12.21424[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][set_wildcards][329]
Checking for wildcards in pattern-side THAT 
-----------------------
10-11-2025 20:04:12.21425[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][set_wildcards][361]
Checking for wildcards in pattern-side TOPIC 
-----------------------
10-11-2025 20:04:12.21426[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml.php][set_wildcards][394]
AIML array now = Array
(
    [aiml_id] => 1219
    [category_id] => 1219
    [html_template] => 
    [lookingfor] => NAMA SAYA ABEL
    [pattern] => NAMA SAYA *
    [score] => 256
    [stars] => Array
        (
            [1] => abel
        )

    [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
    [thatpattern] => 
    [that_stars] => Array
        (
            [1] => 
        )

    [topic] => 
    [topic_stars] => Array
        (
        )

    [user_raw] => nama saya abel
)
 
-----------------------
10-11-2025 20:04:12.21427[2][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_aiml_as_XML][22]
Parsing the AIML template as XML 
-----------------------
10-11-2025 20:04:12.21427[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][add_text_tags][93]
Adding some TEXT tags into the template, just because I can... 
-----------------------
10-11-2025 20:04:12.21432[4][4] - Elapsed time: 0.053 milliseconds
[parse_aiml_as_XML.php][add_text_tags][120]
Returning template:
<template><set name="nama"><star/></set><text>      Senang berkenalan dengan Anda, </text><get name="nama"/><text>.      Saya akan mengingat nama Anda.</text></template> 
-----------------------
10-11-2025 20:04:12.21447[2][4] - Elapsed time: 0.143 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:04:12.21451[4][4] - Elapsed time: 0.043 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element template at level 0. element XML = <?xml version="1.0"?>
<template><set name="nama"><star/></set><text>      Senang berkenalan dengan Anda, </text><get name="nama"/><text>.      Saya akan mengingat nama Anda.</text></template>
 
-----------------------
10-11-2025 20:04:12.21452[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][242]
function parse_template_tag does not exist. Parsing tag as text. 
-----------------------
10-11-2025 20:04:12.21454[2][4] - Elapsed time: 0.018 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:04:12.21455[4][4] - Elapsed time: 0.015 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element set at level 1. element XML = <set name="nama"><star/></set> 
-----------------------
10-11-2025 20:04:12.21456[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_set_tag does exist. Processing now. 
-----------------------
10-11-2025 20:04:12.21456[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element set to the parse_set_tag function 
-----------------------
10-11-2025 20:04:12.21457[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][557]
Parsing the SET tag. 
-----------------------
10-11-2025 20:04:12.21458[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][tag_to_string][1400]
converting the set tag into text. 
-----------------------
10-11-2025 20:04:12.21458[2][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:04:12.21459[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element star at level 2. element XML = <star/> 
-----------------------
10-11-2025 20:04:12.21460[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_star_tag does exist. Processing now. 
-----------------------
10-11-2025 20:04:12.21460[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element star to the parse_star_tag function 
-----------------------
10-11-2025 20:04:12.21461[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][297]
Parsing a STAR tag. 
-----------------------
10-11-2025 20:04:12.21461[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][299]
parse_star_tag called from the star tag at level 2. element = <star/> 
-----------------------
10-11-2025 20:04:12.21462[4][4] - Elapsed time: 0.009 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][309]
Current AIML Array:
Array
(
    [user_raw] => nama saya abel
    [lookingfor] => NAMA SAYA ABEL
    [category_id] => 1219
    [pattern] => NAMA SAYA *
    [thatpattern] => 
    [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
    [html_template] => 
    [topic] => 
    [score] => 256
    [aiml_id] => 1219
    [stars] => Array
        (
            [1] => abel
        )

    [that_stars] => Array
        (
            [1] => 
        )

    [topic_stars] => Array
        (
        )

)
 
-----------------------
10-11-2025 20:04:12.21463[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][310]
star index = 1. 
-----------------------
10-11-2025 20:04:12.21463[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parse_star_tag][314]
Adding 'abel' to the response array. 
-----------------------
10-11-2025 20:04:12.21464[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_star_tag][316]
Index value = 1, star value = abel 
-----------------------
10-11-2025 20:04:12.21464[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21465[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => abel
)

 
-----------------------
10-11-2025 20:04:12.21465[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21466[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'abel' 
-----------------------
10-11-2025 20:04:12.21466[4][4] - Elapsed time: 0.006 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'abel' to the response array. tag name is star 
-----------------------
10-11-2025 20:04:12.21467[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21468[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => Array
        (
            [0] => abel
        )

)

 
-----------------------
10-11-2025 20:04:12.21468[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21469[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21469[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => abel
)

 
-----------------------
10-11-2025 20:04:12.21470[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21470[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'abel' 
-----------------------
10-11-2025 20:04:12.21471[2][4] - Elapsed time: 0.011 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][568]
Adding 'nama' to the client properties array. Value is 'abel' 
-----------------------
10-11-2025 20:04:12.21472[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][569]
Client properties: Array
(
    [ip_address] => 202.10.43.135
    [name] => Seeker
    [nama] => abel
)
 
-----------------------
10-11-2025 20:04:12.21500[2][4] - Elapsed time: 0.282 milliseconds
[parse_aiml_as_XML.php][parse_set_tag][582]
Inserting data into the DB 
-----------------------
10-11-2025 20:04:12.21521[4][4] - Elapsed time: 0.213 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'abel' to the response array. tag name is set 
-----------------------
10-11-2025 20:04:12.21523[2][4] - Elapsed time: 0.014 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21523[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => abel
)

 
-----------------------
10-11-2025 20:04:12.21524[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21524[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'abel' 
-----------------------
10-11-2025 20:04:12.21525[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'abel' to the response array. tag name is template. 
-----------------------
10-11-2025 20:04:12.21526[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:04:12.21527[4][4] - Elapsed time: 0.012 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>      Senang berkenalan dengan Anda, </text> 
-----------------------
10-11-2025 20:04:12.21528[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 20:04:12.21528[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 20:04:12.21529[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 20:04:12.21529[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '      Senang berkenalan dengan Anda, ' to the response array. tag name is text 
-----------------------
10-11-2025 20:04:12.21530[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21530[2][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] =>       Senang berkenalan dengan Anda, 
)

 
-----------------------
10-11-2025 20:04:12.21531[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21531[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '   Senang berkenalan dengan Anda, ' 
-----------------------
10-11-2025 20:04:12.21532[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'Senang berkenalan dengan Anda, ' to the response array. tag name is template. 
-----------------------
10-11-2025 20:04:12.21532[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:04:12.21533[4][4] - Elapsed time: 0.008 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element get at level 1. element XML = <get name="nama"/> 
-----------------------
10-11-2025 20:04:12.21534[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_get_tag does exist. Processing now. 
-----------------------
10-11-2025 20:04:12.21534[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element get to the parse_get_tag function 
-----------------------
10-11-2025 20:04:12.21535[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parse_get_tag][519]
Client properties(get): Array
(
    [ip_address] => 202.10.43.135
    [name] => Seeker
    [nama] => abel
)
 
-----------------------
10-11-2025 20:04:12.21535[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_get_tag][520]
Parsing a GET tag. Oh, and getting a sandwich while I'm at it. 
-----------------------
10-11-2025 20:04:12.21536[2][4] - Elapsed time: 0.010 milliseconds
[parse_aiml_as_XML.php][parse_get_tag][542]
Client properties(get2): Array
(
    [ip_address] => 202.10.43.135
    [name] => Seeker
    [nama] => abel
)
 
-----------------------
10-11-2025 20:04:12.21537[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding 'abel' to the response array. tag name is get 
-----------------------
10-11-2025 20:04:12.21537[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21538[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => abel
)

 
-----------------------
10-11-2025 20:04:12.21538[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21539[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'abel' 
-----------------------
10-11-2025 20:04:12.21539[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding 'abel' to the response array. tag name is template. 
-----------------------
10-11-2025 20:04:12.21540[2][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][201]
Recursively parsing the AIML template. 
-----------------------
10-11-2025 20:04:12.21541[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][214]
Processing element text at level 1. element XML = <text>.      Saya akan mengingat nama Anda.</text> 
-----------------------
10-11-2025 20:04:12.21541[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][225]
Function parse_text_tag does exist. Processing now. 
-----------------------
10-11-2025 20:04:12.21542[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][229]
Passing element text to the parse_text_tag function 
-----------------------
10-11-2025 20:04:12.21542[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][parse_text_tag][281]
Parsing a TEXT tag. 
-----------------------
10-11-2025 20:04:12.21543[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml_as_XML.php][parseTemplateRecursive][234]
Adding '.      Saya akan mengingat nama Anda.' to the response array. tag name is text 
-----------------------
10-11-2025 20:04:12.21543[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21544[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => .      Saya akan mengingat nama Anda.
)

 
-----------------------
10-11-2025 20:04:12.21544[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21545[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning '.   Saya akan mengingat nama Anda.' 
-----------------------
10-11-2025 20:04:12.21545[4][4] - Elapsed time: 0.005 milliseconds 
[parse_aiml_as_XML.php][parseTemplateRecursive][262]
Adding '.   Saya akan mengingat nama Anda.' to the response array. tag name is template. 
-----------------------
10-11-2025 20:04:12.21546[2][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][137]
Imploding an array into a string. (recursively, if necessary) 
-----------------------
10-11-2025 20:04:12.21546[2][4] - Elapsed time: 0.005 milliseconds
[parse_aiml_as_XML.php][implode_recursive][138]
Input: Array
(
    [0] => abel
    [1] => Senang berkenalan dengan Anda, 
    [2] => abel
    [3] => .   Saya akan mengingat nama Anda.
)

 
-----------------------
10-11-2025 20:04:12.21547[4][4] - Elapsed time: 0.004 milliseconds
[parse_aiml_as_XML.php][implode_recursive][155]
The variable $input is of type array 
-----------------------
10-11-2025 20:04:12.21548[4][4] - Elapsed time: 0.007 milliseconds
[parse_aiml_as_XML.php][implode_recursive][185]
Imploding complete. Returning 'abel Senang berkenalan dengan Anda, abel .  Saya akan mengingat nama Anda.' 
-----------------------
10-11-2025 20:04:12.21548[4][4] - Elapsed time: 0.007 milliseconds 
[parse_aiml_as_XML.php][parse_aiml_as_XML][47]
Completed parsing the template. The bot will say: abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda. 
-----------------------
10-11-2025 20:04:12.21549[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][parse_matched_aiml][227]
normal - Saving for next turn 
-----------------------
10-11-2025 20:04:12.21550[4][4] - Elapsed time: 0.006 milliseconds
[parse_aiml.php][save_for_nextturn][271]
Saving that and that_raw for next turn 
-----------------------
10-11-2025 20:04:12.21550[2][4] - Elapsed time: 0.005 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.' to the front of the [that_raw] array 
-----------------------
10-11-2025 20:04:12.21551[4][4] - Elapsed time: 0.008 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank that_raw array 
-----------------------
10-11-2025 20:04:12.21553[2][4] - Elapsed time: 0.019 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.' to the front of the [that] array 
-----------------------
10-11-2025 20:04:12.21554[4][4] - Elapsed time: 0.010 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'abel Senang berkenalan dengan Anda, abel.' 
-----------------------
10-11-2025 20:04:12.21555[4][4] - Elapsed time: 0.006 milliseconds
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'abel Senang berkenalan dengan Anda, abel.' 
-----------------------
10-11-2025 20:04:12.21556[4][4] - Elapsed time: 0.011 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'ABEL SENANG BERKENALAN DENGAN ANDA ABEL' 
-----------------------
10-11-2025 20:04:12.21556[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'ABEL SENANG BERKENALAN DENGAN ANDA ABEL' 
-----------------------
10-11-2025 20:04:12.21557[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][251]
Cleaning up the ~THAT~ tag: 'Saya akan mengingat nama Anda.' 
-----------------------
10-11-2025 20:04:12.21557[4][4] - Elapsed time: 0.005 milliseconds 
[misc_functions.php][normalize_text][125]
Begin normalization - text = 'Saya akan mengingat nama Anda.' 
-----------------------
10-11-2025 20:04:12.21558[4][4] - Elapsed time: 0.008 milliseconds
[misc_functions.php][normalize_text][150]
Normalization complete. Text = 'SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
10-11-2025 20:04:12.21558[4][4] - Elapsed time: 0.005 milliseconds
[parse_aiml.php][clean_that][258]
Cleaning Complete. output = 'SAYA AKAN MENGINGAT NAMA ANDA' 
-----------------------
10-11-2025 20:04:12.21560[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing 'abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.' to the front of the [parsed_template] array 
-----------------------
10-11-2025 20:04:12.21560[4][4] - Elapsed time: 0.006 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank parsed_template array 
-----------------------
10-11-2025 20:04:12.21561[2][4] - Elapsed time: 0.009 milliseconds
[intialise_conversation.php][push_on_front_convoArr][226]
Pushing '<set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.' to the front of the [template] array 
-----------------------
10-11-2025 20:04:12.21562[4][4] - Elapsed time: 0.007 milliseconds
[intialise_conversation.php][load_blank_array_element][62]
Loading blank template array 
-----------------------
10-11-2025 20:04:12.21563[2][4] - Elapsed time: 0.010 milliseconds
[intialise_conversation.php][log_conversation][403]
Saving the conversation to the DB. 
-----------------------
10-11-2025 20:04:12.21564[3][4] - Elapsed time: 0.011 milliseconds
[intialise_conversation.php][log_conversation][442]
Saving conservation SQL: INSERT INTO `siew8359_dannu`.`conversation_log` (
      `id` ,
      `input` ,
      `response` ,
      `user_id` ,
      `convo_id` ,
      `bot_id` ,
      `timestamp`
    )
    VALUES (
      NULL ,
      'nama saya abel',
      'abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.',
      131,
      'f2ebbf46c4226a8c591f9705f2fa4053',
      1,
      CURRENT_TIMESTAMP
    ) 
-----------------------
10-11-2025 20:04:12.21954[4][4] - Elapsed time: 3.904 milliseconds
[intialise_conversation.php][write_to_session][140]
Saving to session 
-----------------------
10-11-2025 20:04:12.21976[3][4] - Elapsed time: 0.219 milliseconds
[display_conversation.php][get_conversation_to_display][59]
get_conversation SQL: SELECT * FROM `siew8359_dannu`.`conversation_log` WHERE
        `user_id` = :user_id
        AND `bot_id` = :bot_id
        AND `convo_id` = :convo_id
        ORDER BY id DESC  LIMIT 1 
-----------------------
10-11-2025 20:04:12.22004[2][4] - Elapsed time: 0.283 milliseconds
[display_conversation.php][get_conversation_to_display][77]
Found '1' lines of conversation 
-----------------------
10-11-2025 20:04:12.22006[4][4] - Elapsed time: 0.020 milliseconds
[display_conversation.php][get_conversation][92]
Processing conversation as json 
-----------------------
10-11-2025 20:04:12.22007[2][4] - Elapsed time: 0.010 milliseconds
[display_conversation.php][get_json][150]
Outputting response as JSON 
-----------------------
10-11-2025 20:04:12.22011[4][4] - Elapsed time: 0.038 milliseconds
[display_conversation.php][get_json][164]
Returning JSON string: {"convo_id":"f2ebbf46c4226a8c591f9705f2fa4053","usersay":"nama saya abel","botsay":"abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.","botData":{"convo_id":"f2ebbf46c4226a8c591f9705f2fa4053","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"131","totallines":1,"rawSay":"nama saya abel","conversation_lines":"1","remember_up_to":"10","debugemail":"imanueldannu910@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"1219","bot_id":"1","pattern":"NAMA SAYA *","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<set name=\"nama\"><star\/><\/set>\n      Senang berkenalan dengan Anda, <get name=\"nama\"\/>.\n      Saya akan mengingat nama Anda.","score":256,"current_that":"halo senang bertemu dengan anda bagaimana kabar anda","aiml_id":"1219","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: nama (2 points), direct word match: saya (2 points), star word match (1 points)"}}} 
-----------------------
10-11-2025 20:04:12.22043[2][4] - Elapsed time: 0.317 milliseconds
[conversation_start.php][Called outside of function][260]
Closing Database 
-----------------------
10-11-2025 20:04:12.22047[0][4] - Elapsed time: 0.044 milliseconds
[conversation_start.php][Called outside of function][266]
Conversation Ending. Elapsed time: 18.731 milliseconds. 
-----------------------
Debug Level: 4
-----------------------
Debug Mode: 1
-----------------------
CONVERSATION ARRAY
-----------------------
Array
(
    [say] => nama saya abel
    [conversation] => Array
        (
            [convo_id] => f2ebbf46c4226a8c591f9705f2fa4053
            [bot_name] => Pedro Salto
            [bot_id] => 1
            [format] => json
            [unknown_user] => Seeker
            [user_name] => Seeker
            [user_id] => 131
            [totallines] => 1
            [rawSay] => nama saya abel
            [conversation_lines] => 1
            [remember_up_to] => 10
            [debugemail] => imanueldannu910@gmail.com
            [debug_level] => 4
            [debugmode] => 1
            [save_state] => session
            [default_aiml_pattern] => RANDOM PICKUP LINE
            [bot_parent_id] => 1
            [aimlData] => Array
                (
                    [id] => 1219
                    [bot_id] => 1
                    [pattern] => NAMA SAYA *
                    [thatpattern] => 
                    [topic] => 
                    [filename] => chatbot.aiml
                    [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
                    [score] => 256
                    [current_that] => halo senang bertemu dengan anda bagaimana kabar anda
                    [aiml_id] => 1219
                    [track_score] => current bot (250 points), no thatpattern to match (1 point), direct word match: nama (2 points), direct word match: saya (2 points), star word match (1 points)
                )

        )

    [aiml] => Array
        (
            [user_raw] => nama saya abel
            [lookingfor] => NAMA SAYA ABEL
            [category_id] => 1219
            [pattern] => NAMA SAYA *
            [thatpattern] => 
            [template] => <set name="nama"><star/></set>
      Senang berkenalan dengan Anda, <get name="nama"/>.
      Saya akan mengingat nama Anda.
            [html_template] => 
            [topic] => 
            [score] => 256
            [aiml_id] => 1219
            [stars] => Array
                (
                    [1] => abel
                )

            [that_stars] => Array
                (
                    [1] => 
                )

            [topic_stars] => Array
                (
                )

            [parsed_template] => abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.
        )

    [client_properties] => Array
        (
            [ip_address] => 202.10.43.135
            [name] => Seeker
            [nama] => abel
        )

    [raw_that] => Array
        (
            [1] => Array
                (
                    [0] => Halo! Senang bertemu dengan Anda
                    [1] =>  Bagaimana kabar Anda?
                )

            [2] => Array
                (
                    [0] => Halo! Saya pedro salto, siap membantu Anda
                    [1] =>  Ada pertanyaan?
                )

        )

    [that] => Array
        (
            [1] => Array
                (
                    [1] => SAYA AKAN MENGINGAT NAMA ANDA
                    [2] => ABEL SENANG BERKENALAN DENGAN ANDA ABEL
                )

            [2] => Array
                (
                    [1] => HALO SENANG BERTEMU DENGAN ANDA BAGAIMANA KABAR ANDA
                )

            [3] => Array
                (
                    [1] => HALO SAYA PEDRO SALTO SIAP MEMBANTU ANDA ADA PERTANYAAN
                )

            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
            [12] => 
        )

    [input] => Array
        (
            [1] => nama saya abel
            [2] => HALO
            [3] => HELLO
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [time_start] => 1762779852.2017
    [user_say] => Array
        (
            [1] => NAMA SAYA ABEL
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [that_raw] => Array
        (
            [1] => Array
                (
                    [1] => 
                    [2] => Saya akan mengingat nama Anda.
                    [3] => abel Senang berkenalan dengan Anda, abel.
                )

            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
            [12] => 
        )

    [parsed_template] => Array
        (
            [1] => abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [template] => Array
        (
            [1] => <set name="nama"><star/></set> Senang berkenalan dengan Anda, <get name="nama"/>. Saya akan mengingat nama Anda.
            [2] => 
            [3] => 
            [4] => 
            [5] => 
            [6] => 
            [7] => 
            [8] => 
            [9] => 
            [10] => 
        )

    [send_to_user] => {"convo_id":"f2ebbf46c4226a8c591f9705f2fa4053","usersay":"nama saya abel","botsay":"abel Senang berkenalan dengan Anda, abel. Saya akan mengingat nama Anda.","botData":{"convo_id":"f2ebbf46c4226a8c591f9705f2fa4053","bot_name":"Pedro Salto","bot_id":"1","format":"json","unknown_user":"Seeker","user_name":"Seeker","user_id":"131","totallines":1,"rawSay":"nama saya abel","conversation_lines":"1","remember_up_to":"10","debugemail":"imanueldannu910@gmail.com","debug_level":"4","debugmode":1,"save_state":"session","default_aiml_pattern":"RANDOM PICKUP LINE","bot_parent_id":"1","aimlData":{"id":"1219","bot_id":"1","pattern":"NAMA SAYA *","thatpattern":"","topic":"","filename":"chatbot.aiml","template":"<set name=\"nama\"><star\/><\/set>\n      Senang berkenalan dengan Anda, <get name=\"nama\"\/>.\n      Saya akan mengingat nama Anda.","score":256,"current_that":"halo senang bertemu dengan anda bagaimana kabar anda","aiml_id":"1219","track_score":"current bot (250 points), no thatpattern to match (1 point), direct word match: nama (2 points), direct word match: saya (2 points), star word match (1 points)"}}}
)

-----------------------
Total execution time: 18.731 Milliseconds. Goodbye.