PHP - Simple Link Checker
<p>I want to build a simple backlink checker which checks if an URL exsists on an other URL, but I can't figure out how to escape the URL, which needs to be checked properly for preg_match</p>

<pre><code>    $html = file_get_contents($backlink_url[$index]); 
    // Get the content from a webpage
    $check = preg_match("/".$check_url[$index]."/", $html);
    // Check if the link exsists
</code></pre>

<p>I tried urlencode() and addslashes(), but that does not work :/</p>

<p>Some suggestions? thanks!</p>
