akiznin Posted June 19, 2009 Share Posted June 19, 2009 My script I made is not working correctly, its supposed to only echo the IP's it finds on a website but still shows entire site. <?php $fn = "website.com"; $file = file_get_contents($fn); $file = preg_replace('/^(([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]).){3}([1-9]?[0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$/','',$file); echo $file; ?> Link to comment https://forums.phpfreaks.com/topic/162874-echo-only-ips-script-not-working/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.