/ Published in: PHP
Echo content only if you are on a certain page. Change == to != in order to echo on every page except a certain page.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if ( $_SERVER[SCRIPT_NAME] == '/page2.php' ) { echo 'Some text!'; } else { echo ''; } ?>