RE: [PHP] Using the > key in documents (Newbie needs help)

From: Date: Tue, 15 May 2001 18:41:10 +0000
Subject: RE: [PHP] Using the > key in documents (Newbie needs help)
Groups: php.general 
Request: Send a blank email to php-general+get-52904@lists.php.net to get a copy of this message
> -----Original Message----- > From: Marc Johnson [mailto:metman@metman.com] > Sent: Tuesday, May 15, 2001 1:05 PM > To: php-general@lists.php.net > Subject: [PHP] Using the > key in documents (Newbie needs help) > > > My problem is probably really simple. I am learning to use > PHP via online documents and the first example I am trying > to implement is a simple clock. My script is fine up to > the point I have: > > if ($hours > 12) { > $hours=$hours-12; > $ampm="PM"; > } > > The '>' prior to 12 closes my '<?php' tag and the results > return 12) {... on. > > If there a way I can use the greater-then and NOT close the > damn tag? > > Any help would be greatly appreciated. (As well as any links to > good tutorials/code examples for any aspect of using PHP/MySQL/ > Apache). I expect you'll actually find, if you "view source" in your browser, that PHP hasn't actually processed any of your script at all. You're not seeing the script prior to the > simply because your browser is treating everything between the opening < and your > as just a great big HTML tag that it doesn't recognize. Difficult to offer much in the way of troubleshooting advice without knowing at least what web server software you're using, but I'd certainly start by double-checking your configuration to make sure that you have, in fact, set it up to hand files with the extension you're using off to the PHP interpreter for processing. --- Mark Roedel (roedelm@letu.edu) || "There cannot be a crisis next week. Systems Programmer / WebMaster || My schedule is already full." LeTourneau University || -- Henry Kissinger

« previous php.general (#52904) next »