View Single Post
Old 02-21-2011, 05:37 AM  
Zyber
Confirmed User
 
Industry Role:
Join Date: Aug 2001
Posts: 832
Quote:
Originally Posted by Danmixz View Post
PHP Code:
<?php
$homepage 
"/";
$currentpage $_SERVER['REQUEST_URI'];
if(
$homepage==$currentpage) {
echo 
'Adcode here' ;
}
?>
Why create unnecessary variables - when less can do it?

Code:
<?php
if($_SERVER['REQUEST_URI'] == '/') {
 echo 'Adcode here';
}
?>

Last edited by Zyber; 02-21-2011 at 05:39 AM..
Zyber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote