stripping code from another file
| From: | Eric Wood | Date: | Thu, 27 Jul 2000 12:21:56 +0000 |
| Subject: | stripping code from another file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-8538@lists.php.net to get a copy of this message | ||
I'm at a certain page and I'd like to include a *section* of HTML from
another page. I could do a fgets() and test for the start and end strings
for a match and echo everything inbetween or do a file() which throughs
everything into an array, then do the same test.
Is someone seeing how I could do this easier? I may have to resort to
modifing the include() function into accepting a start and stop parameter.
Thanks,
-Eric Wood
<html>
.......
<-- start ABC
<tr>
<td>
</td>
</tr>
<!-- end ABC
.....
</html>