Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2009, 07:44 AM
Authorized User
 
Join Date: Dec 2007
Posts: 65
Thanks: 9
Thanked 2 Times in 2 Posts
Send a message via AIM to sandeepgreaternoida Send a message via MSN to sandeepgreaternoida Send a message via Yahoo to sandeepgreaternoida
Arrow how to modify built in php's date function

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 !





Similar Threads
Thread Thread Starter Forum Replies Last Post
Gettingerror while usingC# built in Function split mamatharocks Biztalk 1 June 2nd, 2008 07:52 AM
Date Function desireemm SQL Language 1 March 26th, 2007 04:28 AM
between date function surendran SQL Server 2000 2 October 19th, 2006 09:31 PM
is there any in built function to count page count g.tamilselvan MySQL 1 February 15th, 2006 07:43 AM
php's $_FILES[] m3rajk Beginning PHP 7 August 18th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.