In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Adrian D'Costa") wrote:
> > > 1. Open the html file in read only mode
> > > 2. Start reading the html file till I encounter a <td> tag (I don't know
> > > how to do this)
> > > 3. Grab that data after the <td> tag (and then what?)
> >
> > See <http://php.net/manual/en/function.fopen.php> and
> > <http://php.net/manual/en/function.fgetss.php> plus the chapter for
> > whatever DBMS you want to drop the file contents into.
>
> Thanks. One thing just reading the manual without the idea of how the
> function works is of no use.
It should be exactly "of use". Explaining how a function works, and how to
use it, is the point of a manual. If there are finer points that you need
clarification on *after reading the manual entry*, that's understandable.
But for the most part the manual is clear and accessible, even to a newbie.
I learned PHP, as a complete novice to that language and programming in
general, by simply reading the manual through.
> Some examples would help.
..which is why most manual entries include 1-2 "official" examples, plus
several others in the user annotations. If you're not reading the
annotated version of the manual (as in the links provided), then you're
only scratching the surface of what the manual has to offer.
> In fact I did use
> fopen, fgets, fgetss but the problems is that the html tag that I am
> looking is <td>. Now this is easy but if <td width="25%"> or <td
> colspan="7"> would give a problem.
See <http://php.net/manual/en/function.strip_tags.php> (as is noted in the
"see also" note and user annotation for fgetss, BTW; did you bother to read
the links provided before proclaiming them "of no use"?)
--
CC
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]