Ik heb een nieuwsbericht van macosx.nl afgehaald, alleen wanneer ik over de links ga krijg ik:
http://www.dreamix-design.com/newsflash.php?id=712
ipv
http://www.macosx.nl/newsflash.php?id=712
Hoe kun je ook bij dit script een stylesheet opgeven/toevoegen aan de code die je al heb?
hier is de code die ik nu gebruik:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Totaal bezoekers</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
body {
font-size: 11px;
font-family:Verdana, Arial, Helvetica, sans-serif
}
-->
</style>
</head>
<body>
<?php
$info = file_get_contents("http://www.macosx.nl");
$stand = explode("<h3>Nieuwsflitsen</h3>", $info);
$stand_2 = explode("</a></li></ul>", $stand[1]);
echo "$stand_2[0]";
?>
</body>
</html>
resultaat:
http://www.dreamix-design.com/nieuws.php