"); if(!preg_match('|^[a-z]+\://|', $target)) whap('Bad URL', "Specify an absolute URL."); // Okay, try to open the beast. $in = @fopen($target, 'r'); if(!$in) whap('Inaccessible URL', "Cannot read $target."); // Need to set this. It's not really correct HTML if it comes before the // HTML tag from the original page. Oh well. //echo "\n"; // Find first non-blank $stuff = ""; // Accumulates blocks of code to translate. $tag = ""; // Accumulates contents of HTML tag. $depth = 0; // Nesting depth of < > characters. $inq = FALSE; // We're inside quotes inside a tag. $rebased = FALSE; // We have generated a tag. $protect = FALSE; // We're in a