i've still had no luck with this..
i'm trying to include the contents of a page similar to this:
without any the html at the top and bottom.. my current script it:Code:
<html>
<head>
<style>
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.tditem {
font-size: 10px;
font-family: Arial;
text-decoration: none;
color: #333333;
}
</style>
</head>
<body bgcolor="white" text="#000000" link="#0000FF" vlink="#000099" alink="#FF0000">
<font face="Courier New, Courier, mono" size="2">
CONENT | MORE CONTENT | EVEN MORE CONTENT |
CONENT | MORE CONTENT | EVEN MORE CONTENT |
CONENT | MORE CONTENT | EVEN MORE CONTENT |
CONENT | MORE CONTENT | EVEN MORE CONTENT |
CONENT | MORE CONTENT | EVEN MORE CONTENT |
</font>
</body>
</html>
all i get is a page which says "doesnt work!"PHP Code:<?php
$data = file_get_contents('http://www.mywebsite.com/website.html');
if (preg_match('/<font\b[^>]*>\s*(.*?)\s*<\/font>/s', $data, $content)) {
echo $content[1];
}
else
{
echo ("doesnt work!");
}
?>
I'm running php 5.2.1
please help!
