Searching

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
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Searching

Post by oldtimer »

So far with everything I have seen a search function comes intirely out of a DB. How can you search HTML pages?

Jerry
User avatar
nathus
Forum Commoner
Posts: 49
Joined: Thu Dec 12, 2002 6:23 pm

Post by nathus »

not really sure what you're trying to do searching an html page, so I can't really give too much of an answer. I guess you could try loading the page into an array of strings with file() and search through each line.
oldtimer
Forum Contributor
Posts: 204
Joined: Sun Nov 03, 2002 8:21 pm
Location: Washington State

Post by oldtimer »

I have a pretty big help page system in HTML that I made for our ISP support staff. I want to make this available to the public and have a link for our customers. But I would like to have a search function so they could search for things like homepage and then it would show the areas where you see that. (of course I woud make everything not case specific :D )
Post Reply