Hi, this book (php,apache,MySql, Web development ) is very good book.
i have installed apache(throgh installer) , php5 (through installer) on my window XP,SP3. system ...everything is running just fine ....the link in url
http://localhost/anyfile.php is running absolutely fine.
Now i have stuck with the date("n");and date("L"); function in (Using if/else argument)
i type exactly the same as following (as in the book) but nothing appear in browser when i type in url:
http://localhost/leapyear.php
---------------------------------------------------------------
<html>
<head>
<title>Is it a leap year?</title>
</head>
<body>
<?php
$leapyear = date(âLâ);
if ($leapyear == 1) echo âHooray! Itâs a leap year!â;
else echo âAww, sorry, mate. No leap year this year.â;
?>
</body>
</html>
------------------------------------------------------------------
Is there anything i can do with built in PHP's date function.
Pls. help me out !
