Return to Snippet

Revision: 47795
at June 16, 2011 10:09 by batfan


Initial Code
<?php
  if ( $_SERVER[SCRIPT_NAME] == '/page2.php' ) {
  echo 'Some text!';

  } else {
	echo '';

  }
?>

Initial URL


Initial Description
Echo content only if you are on a certain page.  Change  ==  to  !=  in order to echo on every page except a certain page.

Initial Title
Echo if Page Equals

Initial Tags


Initial Language
PHP