I'm having a hard time getting a script to work. I'm simply trying to seperate the html of a page via <br> tags. Its printing the html but not seperating it with the <p> like I wanted it to (see below)...
<?php
$handle = fopen("http://www.wincustomize.com/skins.asp?searchtext=Blue+and+Wire&sort=Name&order=Descending&library=8", "r");
$contents = '';
while (!feof($handle)) {
$contents .= fread($handle, 8192);
}
$html = preg_split("/<br \/>/", $contents, -1, PREG_SPLIT_DELIM_CAPTURE);
for($i=0;$html[$i];$i++)
{
echo htmlentities($html[$i]) . "<p>";
};
?>
Ideally I'm trying to get a few numbers which has similar characteristics and I'm trying to start out small (i.e seperation via br tags)
Any help would be greatly appreciated.