PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   How to exclude part of page in a PHP file (http://www.phpdig.net/forum/showthread.php?t=305)

mario51 12-17-2003 07:22 AM

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

Charter 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.

mario51 12-17-2003 11:13 PM

Thank you very much !!

it's working ...;


All times are GMT -8. The time now is 06:27 AM.

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