@NightShift58Jan 25.2007 — #First, to get the HTML file, you'll use [B]file_get_contents()[/B]. With that file, you'll filter in/out whatever segments you need, as you define it. When done, you can [B]explode()[/B] the remaining contents to an array.
If you use regular expressions, something like: [B]$bokeh = preg_magic()[/B] [NB: not a real function... yet...], then your content may already be in array form. You would then have to convert the results into whatever format you need, either looping through the resulting array or using an existing [B]array function[/B].
@NightShift58Jan 25.2007 — #There's no quick answer to that. It depends on the data you want to parse/filter. If you provide examples, there are a couple of regular expression magicians who routinely look in...
@alxlaauthorJan 26.2007 — #Ok i can write a small "exmple":
File with info.;info.html: [code=html]<HTML> <body> <!-- hello --> Hello world <!-- end hello --> <!-- today--> Today is a blue day <!-- end today--><!-- yesterday--> Yesterday was a green day <!-- end yesterday--><!-- tommorrow--> Tommorrow is a ornage day <!-- end tomorow--> </body> </HTML>[/code]
And i want a file that fetches part of the file, and the output will be like: [code=html]<HTML> <body>
Today is a blue day
Tommorrow is a ornage day
</body> </HTML>[/code]
And if you edit the first file the second will be updated automatic.