View Single Post
Old 06-09-2016, 12:03 PM  
AnimeFevers
♫ ♪ ♫ ♪ ▄ █ ▄ █ ▄ ▄ █ ▄ █
 
AnimeFevers's Avatar
 
Industry Role:
Join Date: Apr 2009
Location: Tell your mom, money is on the fridge
Posts: 3,560
Quote:
Originally Posted by Colmike7 View Post
<?php
$homepage = "/";
$currentpage = $_SERVER['REQUEST_URI'];
if($homepage!=$currentpage) {
echo'
<script src="popup.js"></script>';
}
?>


Try this, then. If it doesn't work, do a test and see if something other than / is the output for $currentpage then change $homepage = "/"; to the homepage value. That way you don't need another php file.
oh sheet it worked, good job man, what's your paxum?
__________________
tg - @LJFreeza
email - animefevers(AT)hotmail(DOT)co(DOT)uk
AnimeFevers is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote