PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 12-17-2003, 07:22 AM   #1
mario51
Green Mole
 
Join Date: Dec 2003
Posts: 2
How to exclude part of page in a PHP file

Hello !
First: congratulation....
Second : excuse me for my bad english...


i would like to exclude a part of a PHP page for the indexation.

so, i put the text between <!-- phpdigExclude -->
and
<!-- phpdigInclude -->

and i click on "DIG' on the admin page.

But the part of my page is indexed...



Thank you
mario51 is offline   Reply With Quote
Old 12-17-2003, 10:05 AM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. The <!-- phpdigExclude --> and <!-- phpdigInclude --> need to be each on their own line like so:

<!-- phpdigExclude -->
exclude this
<!-- phpdigInclude -->

As you are using PHP to echo or print these, it may be that the HTML source is wrapped so you may have to use \n in order to get them on their own lines.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 12-17-2003, 11:13 PM   #3
mario51
Green Mole
 
Join Date: Dec 2003
Posts: 2
Thank you very much !!

it's working ...;
mario51 is offline   Reply With Quote
Reply

Thread Tools

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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exclude part of a page darrenm How-to Forum 2 06-21-2005 06:28 AM
Targeting a specific part of the page cyrax78 Mod Requests 2 02-07-2005 07:40 PM
exclude a specific file-type Surffritze How-to Forum 1 10-04-2004 06:20 AM
How to index only part of page <title>? visioneer How-to Forum 4 08-24-2004 10:24 PM
Exclude index page teostress How-to Forum 1 12-16-2003 08:53 AM


All times are GMT -8. The time now is 05:58 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.