Thread: leapyear.php
View Single Post
  #4 (permalink)  
Old Feb 11th, 2007, 06:07
grahame grahame is offline
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: leapyear.php

Quote:
Originally Posted by Weird1993 View Post
Output from my run:
That appears to be the result of putting your PHP code into a page / URL that wasn't parsed by PHP - perhaps giving the file a ".html" extension rather than a ".php" one? The rest of the code is seen as junk by your browser, leaving just the code you quoted visible. If you do a "view source" you'll see the function and all the PHP.

I doubt whether that's the problem that dcarson was reporting - but it just may be. Actually, this is a very good example of the need to explain how something fails - if it fails in the way you report, it's a file naming issue but if (as I suspect) dcarson is seeing a different set of symptoms, my answer here won't help him.
Reply With Quote