PDA

View Full Version : Nearly a hack.


Automated
03-04-2003, 03:32 PM
Hi Guys,

Some of you will probably know that i am obsesed with this Tombot AI hack and i have found a way of increasing it's enlish speaking capabilites Ten Fold.

However what i need is for someone that knows PHP and a little bit of Mysql to help me out with this.

Basically what i need is plain text to be inserted into a database. The plain text is a simple html page with no images or anything and each peice of text is a dictionary definition. A Small sample of the HTML of the page;
<P><B>Yeldhall</B> (<I>n.</I> ) Guildhall.</P>
<P><B>Yeldrin</B> (<I>n.</I> ) Alt. of Yeldrine</P>
<P><B>Yeldrine</B> (<I>n.</I> ) The yellow-hammer; -- called also yeldrock, and yoldrin.</P>
<P><B>Yelk</B> (<I>n.</I> ) Same as Yolk.</P>
<P><B>Yelled</B> (<I>imp. & p. p.</I> ) of Yell</P>
<P><B>Yelling</B> (<I>p. pr. & vb. n.</I> ) of Yell</P>

As you can see the word is between the two bold tags, and the definition is after that.

Now would it be possiable to write a script that would seperate this and put everything between the bold tags in a SQL database table called "word" and then the definition to be put in a table called "definition" and then the record saved to the DB, and the process repeated for the whole page.

Thanks a lot.

Matthew

Automated
03-05-2003, 02:16 PM
anyone ?