Need PHP skills - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > PHP » Need PHP skills


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 06-30-2006   #1 (permalink)
david_5675@yahoo.com
Junior Member
 
Join Date: Jun 2006
Age: 38
Posts: 5
Default Need PHP skills

Hi everyone,
I’m in a bit of a problem, and am looking for someone with exceptional PHP skills to help me out. To make a problem short, i have a php script, which indexes my site. However, when you search, it displays words from the top down, which will include the menu. I basically need someone to try and configure it so that it only indexes content between two specific tags, for example:Menus.... <spider> ...what i want indexed comes here </spider> copyright text etc. etc.
Thanks
David
david_5675@yahoo.com is offline   Reply With Quote


Old 07-05-2006   #2 (permalink)
robtrevino
Member
 
Join Date: Jul 2006
Age: 26
Posts: 30
Default

use fopen() to read the site then use STRreplace and strireplace() (look for them in php.net) so that you can eliminate the rest of the file.
robtrevino is offline   Reply With Quote

Old 07-06-2006   #3 (permalink)
dilipnambiar
Junior Member
 
Join Date: Jul 2006
Age: 27
Posts: 3
Default

The problem may be due to some chars in contents(like <,>) , manytimes single quote and double quote conflict result in problem you are facing. Try using regular expressions (and functions like preg_replace etc.) to replace such chars (better use &gt insted > and &lt for <).
dilipnambiar is offline   Reply With Quote

Old 07-11-2006   #4 (permalink)
imehesz
Senior Member
 
imehesz's Avatar
 
Join Date: Jul 2006
Age: 30
Posts: 258
Default replace

here is a link how to use it:
preg_replace
__________________
--
iM
imehesz is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

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


footer left
All times are GMT. The time now is 08:09 PM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Personal Loans | Mobile Phones | Mortgage | Credit Card | Vienna Austria Hotels

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49