Reading specified lines of html code from a link.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CRazzym3x
Forum Newbie
Posts: 1
Joined: Wed Mar 01, 2006 7:21 pm

Reading specified lines of html code from a link.

Post by CRazzym3x »

Hello, I am trying to make a character searcher for a game called tibia. I did the redericting so that you put a character's name and it sends you to that characters page. But I would like it so that when i ente rthe character it posts lets say the table that the character is showed in. (Example: lines 270-290 of the html code).. these lines never change.

I was wondering where to start i have basic knowladge of php. Thanks in advanzed.

btw the character page is like

http://www.tibia.com/community/?subtopi ... &name=CHAR NAME HERE

for spaces it uses + so
(example)
http://www.tibia.com/community/?subtopi ... Crazzy+m3x

a real link to a character page would be
http://www.tibia.com/community/?subtopi ... ame=Bubble
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

regex appears to work the best for this.

We've got a board specifically for regex, check it out.

viewforum.php?f=38
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Cross posting is not cool nor allowed. Do some research on how to work with regex. If you have questions, post them, don't expect us to do all the work for you..
Post Reply