title: Website Username Check
body: <p>I want to create a function that takes a URL parameter and a username parameter that goes to that url, enters the username and if the page says that the username doesn't exist(error) it will return false, otherwise it will return true. So I tried and I did something a little like this, but it didnt work.</p>
  
  <pre><code>function ($url, $username) {
      $main = file_get_contents($url.$username);
      if (@$main) { return false; }
      else { return true; }
  } 
  </code></pre>
  
  <p>So if you have any ideas on how to make this idea actually work please help me</p>