Testing Error Handling

An error occurred in script '/home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php' on line 38: Undefined variable: var
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
        )

    [HTTP_COOKIE_VARS] => Array
        (
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
            [PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [REQUEST_TIME] => 1660350443
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
            [PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [REQUEST_TIME] => 1660350443
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
        )

)

#0  my_error_handler(8, Undefined variable: var, /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php, 38, Array ([GLOBALS] => Array ( *RECURSION*,[_ENV] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ),[HTTP_ENV_VARS] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ),[_POST] => Array (),[HTTP_POST_VARS] => Array (),[_GET] => Array (),[HTTP_GET_VARS] => Array (),[_COOKIE] => Array (),[HTTP_COOKIE_VARS] => Array (),[_SERVER] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ,[PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[REQUEST_TIME] => 1660350443,[argv] => Array (),[argc] => 0),[HTTP_SERVER_VARS] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ,[PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[REQUEST_TIME] => 1660350443,[argv] => Array (),[argc] => 0),[_FILES] => Array (),[HTTP_POST_FILES] => Array (),[_REQUEST] => Array ())) called at [/home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php:38]

An error occurred in script '/home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php' on line 38: Invalid argument supplied for foreach()
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
        )

    [HTTP_COOKIE_VARS] => Array
        (
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
            [PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [REQUEST_TIME] => 1660350443
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
            [PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [REQUEST_TIME] => 1660350443
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
        )

)

#0  my_error_handler(2, Invalid argument supplied for foreach(), /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php, 38, Array ([GLOBALS] => Array ( *RECURSION*,[_ENV] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ),[HTTP_ENV_VARS] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ),[_POST] => Array (),[HTTP_POST_VARS] => Array (),[_GET] => Array (),[HTTP_GET_VARS] => Array (),[_COOKIE] => Array (),[HTTP_COOKIE_VARS] => Array (),[_SERVER] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ,[PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[REQUEST_TIME] => 1660350443,[argv] => Array (),[argc] => 0),[HTTP_SERVER_VARS] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ,[PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[REQUEST_TIME] => 1660350443,[argv] => Array (),[argc] => 0),[_FILES] => Array (),[HTTP_POST_FILES] => Array (),[_REQUEST] => Array ())) called at [/home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php:38]

An error occurred in script '/home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php' on line 39: Division by zero
Array
(
    [GLOBALS] => Array
 *RECURSION*
    [_ENV] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
        )

    [HTTP_ENV_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
        )

    [_POST] => Array
        (
        )

    [HTTP_POST_VARS] => Array
        (
        )

    [_GET] => Array
        (
        )

    [HTTP_GET_VARS] => Array
        (
        )

    [_COOKIE] => Array
        (
        )

    [HTTP_COOKIE_VARS] => Array
        (
        )

    [_SERVER] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
            [PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [REQUEST_TIME] => 1660350443
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [HTTP_SERVER_VARS] => Array
        (
            [DOCUMENT_ROOT] => /home/martinfr/public_html
            [GATEWAY_INTERFACE] => CGI/1.1
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_ENCODING] => br,gzip
            [HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
            [HTTP_CONNECTION] => Keep-Alive
            [HTTP_HOST] => martinfrancis.org
            [HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/)
            [PATH] => /bin:/usr/bin
            [QUERY_STRING] => 
            [REDIRECT_STATUS] => 200
            [REMOTE_ADDR] => 44.197.230.180
            [REMOTE_PORT] => 49464
            [REQUEST_METHOD] => GET
            [REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [SERVER_ADDR] => 109.203.109.150
            [SERVER_ADMIN] => webmaster@martinfrancis.org
            [SERVER_NAME] => martinfrancis.org
            [SERVER_PORT] => 80
            [SERVER_PROTOCOL] => HTTP/1.1
            [SERVER_SIGNATURE] => 
            [SERVER_SOFTWARE] => Apache
            [UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ
            [PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php
            [REQUEST_TIME] => 1660350443
            [argv] => Array
                (
                )

            [argc] => 0
        )

    [_FILES] => Array
        (
        )

    [HTTP_POST_FILES] => Array
        (
        )

    [_REQUEST] => Array
        (
        )

)

#0  my_error_handler(2, Division by zero, /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php, 39, Array ([GLOBALS] => Array ( *RECURSION*,[_ENV] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ),[HTTP_ENV_VARS] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ),[_POST] => Array (),[HTTP_POST_VARS] => Array (),[_GET] => Array (),[HTTP_GET_VARS] => Array (),[_COOKIE] => Array (),[HTTP_COOKIE_VARS] => Array (),[_SERVER] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ,[PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[REQUEST_TIME] => 1660350443,[argv] => Array (),[argc] => 0),[HTTP_SERVER_VARS] => Array ([DOCUMENT_ROOT] => /home/martinfr/public_html,[GATEWAY_INTERFACE] => CGI/1.1,[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,[HTTP_ACCEPT_ENCODING] => br,gzip,[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5,[HTTP_CONNECTION] => Keep-Alive,[HTTP_HOST] => martinfrancis.org,[HTTP_USER_AGENT] => CCBot/2.0 (https://commoncrawl.org/faq/),[PATH] => /bin:/usr/bin,[QUERY_STRING] => ,[REDIRECT_STATUS] => 200,[REMOTE_ADDR] => 44.197.230.180,[REMOTE_PORT] => 49464,[REQUEST_METHOD] => GET,[REQUEST_URI] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_FILENAME] => /home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SCRIPT_NAME] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[SERVER_ADDR] => 109.203.109.150,[SERVER_ADMIN] => webmaster@martinfrancis.org,[SERVER_NAME] => martinfrancis.org,[SERVER_PORT] => 80,[SERVER_PROTOCOL] => HTTP/1.1,[SERVER_SIGNATURE] => ,[SERVER_SOFTWARE] => Apache,[UNIQUE_ID] => Yvbv623LbZYAAKc3eH4AAAAJ,[PHP_SELF] => /addon_self_taught/php6_mysql5/ch07/handle_errors.php,[REQUEST_TIME] => 1660350443,[argv] => Array (),[argc] => 0),[_FILES] => Array (),[HTTP_POST_FILES] => Array (),[_REQUEST] => Array ())) called at [/home/martinfr/public_html/addon_self_taught/php6_mysql5/ch07/handle_errors.php:39]