Created
August 10, 2017 21:53
-
-
Save ko31/bac1567bf31e080be3c6e2826bf93ac7 to your computer and use it in GitHub Desktop.
WordPressかどうかチェックするphpスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$lines = file('url.csv', FILE_IGNORE_NEW_LINES); | |
$count = 0; | |
foreach ($lines as $line) { | |
$val = explode(',', $line); | |
$html = file_get_contents($val[1]); | |
if (strpos($html, 'wp-content') !== false) { | |
echo $val[0] . " is WordPress\n"; | |
$count++; | |
} | |
} | |
echo $count . " counts\n"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment