View Full Version : How to exclude part of page in a PHP file

12-17-2003, 07:22 AM
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 -->
<!-- phpdigInclude -->

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

But the part of my page is indexed...

Thank you

12-17-2003, 10:05 AM
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.

12-17-2003, 11:13 PM
Thank you very much !!

it's working ...;