Hi guys and gals! Please help me out with this.
Can I use include() inside a page that has been fread()
I've tried it and it doesn't seem work.
If no, thes is there a workaround?
Here's the code I'm trying to use:
<?php
$fd= fread(fopen("page.htm", "r"), 100000);
if ($fd)
{
$start= strpos($fd, "startstring");
$finish= strpos($fd, "endstring");
$length= $finish-$start;
$code=Substr($fd, $start, $length);
}
echo $code;
?>
and here is the code for the page.htm
<?php
include ('text.htm');
?>
Thanks Yall.