Log in

View Full Version : conditional for .php files


aveon
04-30-2007, 06:29 PM
what is the conditional for the php files

for exmple..

i want to show "bla bla" on portal.php else "bla bla bla"


please help me out with this....

Zachery
04-30-2007, 07:31 PM
<if condition="THIS_SCRIPT == something"></if>

Each php script should have a define("THIS_SCRIPT", something) near the top.

aveon
05-01-2007, 02:17 AM
<if condition="THIS_SCRIPT == 'adv_index' "></if>

Each php script should have a define("THIS_SCRIPT", something) near the top.
thanx zachery works like a charm