> -----Original Message-----
> From: Marc Johnson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 15, 2001 1:05 PM
> To: [EMAIL PROTECTED]
> 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 ([EMAIL PROTECTED])  ||  "There cannot be a crisis next week.
Systems Programmer / WebMaster  ||   My schedule is already full."
     LeTourneau University      ||                    -- Henry Kissinger


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to