title: getting a webpage content using Php
body: <p>Now this I know is relatively simple to do, but i want to use a form to get the URLs to use in this. I started using file_get_contents but then i switched to fopen.</p>
  
  <pre><code>    &lt;?php
  
    $marki = fopen($page, "rb");
    $page = $_GET['page'];
  
  
    echo $marki;
  
    ?&gt;
  
  &lt;html&gt;
    &lt;body&gt;
      &lt;form method="get" action="index.php"&gt;
        &lt;input type="text" name="page"&gt;
        &lt;input type="submit" value="grade"&gt;
      &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>this is the code i have used so far, I think it the answer could still lie with using file_get_contents but it wont get the page contents as it keeps pointing the get contents to files stored in my server which is not what I am aiming for.</p>