p
The basic steps to obfuscate a part of a webpage is the same as obfuscating the whole page, which is explained in l^first-example|the first example$.

p
To obfuscate a part of a webpage,

s
first enclose the code that you want to obfuscate inside k^&lt;?php HObfus_begin(); ?&gt;$ and k^&lt;?php HObfus_end(); ?&gt;$, like shown below.

code
kh^&lt;?php echo HObfus_begin(); ?&gt;$
&lt;div&gt;
	&lt;span&gt;
		&lt;?php echo "The current time is ".date("Y-m-d H:i:s"); ?&gt; 
	&lt;/span&gt;
&lt;/div&gt;
kh^&lt;?php HObfus_end(); ?&gt;$
/code

p
Make sure that all paired HTML tags are closed and the HTML is formatted properly. Malformed HTML code can cause issues with HObfus.

s
Include b^hobfus/HObfus.inc.php$ using the b^require_once()$ function, like shown below.

code
kh^&lt;?php require_once("<i>PATH-TO-HObfus.inc.php</i>"); ?&gt;$
.................
.................
.................
.................
.................
&lt;?php echo HObfus_begin(); ?&gt;
&lt;div&gt;
	&lt;span&gt;
		&lt;?php echo "The current time is ".date("Y-m-d H:i:s"); ?&gt; 
	&lt;/span&gt;
&lt;/div&gt;
&lt;?php HObfus_end(); ?&gt;
/code

p
You must replace b^<i>PATH-TO-HObfus.inc.php</i>$ with the actual path to b^hobfus/HObfus.inc.php$. If you are not sure about the path, see l^path-to-hobfus|Find path to HObfus.inc.php$ for more details.

p
The position of b^require_once()$ is usually at the top of the PHP file, however, you can place it anywhere as long as it comes before the first k^&lt;?php HObfus_begin(); ?&gt;$.

tpl
std
