I assume you expect the links to be delimited by the backslash ( \ )character? Guessing that's why you are exploding?
If that's the case, you need to loop through each of the values returned in the $content array:
function search() {
global $config,$url;
$filename = "$url";
$handle = fopen($filename, "r");
$read = fread($handle, 100000);
$content = explode("\"", $read);
for($i = 0; $i < count($content); $i++){
$result = array();
$result[] = strpos($content[$i], "http://");
}
if (empty($result)) {
echo "<font size=\"2\" face=\"verdana\">We could not find any links on this page. Please try again!</font>";
} else {
FOREACH($result AS $v){
echo "<font size=\"2\" face=\"verdana\"><b>$v</b><br>";
}
}
This may need some tweaking. I wrote it quickly as I was finishing up my cup of coffee and heading out the door.