Jump to content
Larry Ullman's Book Forums

Maciek

Members
  • Posts

    3
  • Joined

  • Last visited

Maciek's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I have a question about my solution of the problem in Chapter 17. "Modify the header and other files so that each page’s title uses both the default language page title and a subtitle based upon the page being viewed" My solution. Placing this in header: <title><?php if (basename($_SERVER['PHP_SELF']) == 'index.php'){ echo $words['title'];}; if (basename($_SERVER['PHP_SELF']) == 'forum.php' ){ echo $words['forum_home']; }; if (basename($_SERVER['PHP_SELF']) == 'read.php'){ echo $words['subject']; if (isset($_GET['sub'])){ echo ' about '; echo $_GET['sub']; }; }; ?> </title> I get $_GET['sub'] from forum.php. My question: Is this solution safe? Before displaying the page title i can see the path to the file in the browser (chrome, exploler) where title shows up. I wonder if this is only on localhost or on a live server too.
×
×
  • Create New...