Import Php in a php Page
Posted: Fri Nov 07, 2003 6:10 am
Hi, i'm trying to include some page
in my PHP page.
The page to include is a php page,
that contains some results (this page can be included in other website)
My page is also in PHP, but i experiencing some problems
I have try these codes, i don't see my erros ... so if you can help me
(it doesn't work with html also)
//$file = "http://vbfan.vbhainaut.com/GenClas.php?div=P2BM";
echo $file;
// Load the file into a variable.
$o = fopen($file, "rb");
$c = fread($o, filesize($file));
fclose($o);
echo $c;
// Get stuff between the body tags.
$sA = explode("<body>", $c);
$sB = explode("</body>", $sA[1]);
$contents = $sB[0];
// Echo the contents.
echo $contents;
in my PHP page.
The page to include is a php page,
that contains some results (this page can be included in other website)
My page is also in PHP, but i experiencing some problems
I have try these codes, i don't see my erros ... so if you can help me
(it doesn't work with html also)
//$file = "http://vbfan.vbhainaut.com/GenClas.php?div=P2BM";
echo $file;
// Load the file into a variable.
$o = fopen($file, "rb");
$c = fread($o, filesize($file));
fclose($o);
echo $c;
// Get stuff between the body tags.
$sA = explode("<body>", $c);
$sB = explode("</body>", $sA[1]);
$contents = $sB[0];
// Echo the contents.
echo $contents;