Skip to content

Instantly share code, notes, and snippets.

@BrocksiNet
Created December 5, 2022 09:42
Show Gist options
  • Save BrocksiNet/aecdce4bb3752e9afff92fca874c497e to your computer and use it in GitHub Desktop.
Save BrocksiNet/aecdce4bb3752e9afff92fca874c497e to your computer and use it in GitHub Desktop.
Updated sitemap_link_checker
@BrocksiNet
Copy link
Author

This version was updated to work with PHP 8.1.12, TIMEOUT was added and some ERROR message when there is an curl_error.

@BrocksiNet
Copy link
Author

BrocksiNet commented Dec 5, 2022

If you have an htaccess with password protection you can add this after line 102:

// you can set some htaccess username and password if needed
curl_setopt($handle, CURLOPT_USERPWD, "$username:$password");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment