PDA

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


mario51
12-17-2003, 08: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 -->
and
<!-- phpdigInclude -->

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

But the part of my page is indexed...



Thank you

Charter
12-17-2003, 11: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.

mario51
12-18-2003, 12:13 AM
Thank you very much !!

it's working ...;