Recent Posts

Caution: Greetings to all visitors. The site is working in short. Links Please skip the link to view any topic and thank you for visiting
header ads

Updating an old script to detect 404 errors

I used to run this script in my 404 page.
It was sending me an email with each 404 error. Sadly, it's not working any more, it's very old code. Can anyone help me to update it? Thanks in advance.
<?php
    $to = "email@domain.com";
# Gather visitor information
    $ip = getenv ("REMOTE_ADDR");                // IP Address
    $server_name = getenv ("SERVER_NAME");       // Server Name
    $request_uri = getenv ("REQUEST_URI");       // Requested URI
    $http_ref = getenv...
Code (markup):
Updating an old script to detect 404 errors

from PHP https://ift.tt/3i66J7S
via IFTTT

Post a Comment

0 Comments