From 7924868f5728069042287505d24fee8f56309cb4 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 13:20:24 +0800 Subject: [PATCH] NotifySmtpCheck.php --- NotifySmtpCheck.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NotifySmtpCheck.php b/NotifySmtpCheck.php index a7bddbb3..35aa7b61 100644 --- a/NotifySmtpCheck.php +++ b/NotifySmtpCheck.php @@ -30,8 +30,9 @@ class Pman_Core_NotifySmtpCheck extends Pman $ifconfig = file_get_contents("https://ifconfig.co/"); $dom = new DomDocument('1.0', 'utf-8'); $dom->loadHTML($ifconfig); - print_R($dom);exit; + $xpath = new DOMXPath($dom); + $lists = $xpath->query("code[@class='ip]"); -- 2.39.2