Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
indexing script problem - indexes entire page...
Old 06-25-2006, 09:04 AM indexing script problem - indexes entire page...
Junior Talker

Posts: 2
Name: Miro
Location: Londno (but i am Bulgarian)
Trades: 0
Hiya everyone,

I need some serius help.

i have a php script which indexes my website. The problem is that it indexes EVERYTHING including unwanted things like my html menu. This means that when i search, it is displayed.... Have a look at http://hairandbeautypages.com/find/?...d&searchType=2 (the first result).


The file which controls the indexing is the class.index php file. In it, i have this:


Quote:
CODE// Has this page got any script tags?
while(preg_match('%<script[^>]*>.*?</script>%is', $pageData, $ignore_matches)) {
$pageData = str_replace($ignore_matches[0], '', $pageData);
}
unset($ignore_matches);

// Only grab the contents of the page body and then
// strip out any script tags
eregi("(<body[^>]*>.*</body>)", $pageData, $bodyArray);



if (sizeof($bodyArray) > 0) {
$strippedPageData = strip_tags($bodyArray[1]);
} else {
$strippedPageData = '';
}

unset($bodyArray);

The bolded is what i think i need to change. I tried adding <spider></spider> tags to my page, and changed body to spider in the script, but it still dosent work.

Any help will be gratley appreciated! Any ides on how i can get the script to index the contant between the <spider></spider> tags only?

THANK YOU VERY MUCH FOR ALL YOUR HELP!
mitov is offline
Reply With Quote
View Public Profile Visit mitov's homepage!
 
 
Register now for full access!
Old 06-25-2006, 03:29 PM Re: indexing script problem - indexes entire page...
Extreme Talker

Posts: 170
Name: XpIndia.Com
Trades: 0
Try www.freefind.com its a beautiful free / paid script. You can customize the script to index desired pages.
XpIndia.Com is offline
Reply With Quote
View Public Profile
 
Old 06-25-2006, 04:05 PM Re: indexing script problem - indexes entire page...
Junior Talker

Posts: 2
Name: Miro
Location: Londno (but i am Bulgarian)
Trades: 0
Well thats not going to help as i need a specific part of the page indexed...
mitov is offline
Reply With Quote
View Public Profile Visit mitov's homepage!
 
Reply     « Reply to indexing script problem - indexes entire page...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11489 seconds with 12 queries