Jump to content

!


Rustywolf

Recommended Posts

Indeed it does, and I completely misread your post.

 

<?php
foreach (file('urls.txt') as $url) {
  if (!fsockopen($url, 80, $errno, $errstr, 30)) {
    echo 'blocked';
  } else {
    echo 'Unblock';
  }
}
?>

 

I would also have assumed however that you would have been easily able to take my example and modify it to your needs.[/code]

Link to comment
https://forums.phpfreaks.com/topic/195272--/#findComment-1026218
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.