NEW STARTER REQUIRING HELP WITH date() function

Problems with the Windows version of XAMPP, questions, comments, and anything related.

NEW STARTER REQUIRING HELP WITH date() function

Postby jwcdemocrew » 02. June 2007 17:04

Hi

I have recently installed XAMPP on my PC - WIN XP PRO SP2 -

I have created a simple blank .php page and I am trying to learn php.

If I put phpinfo() on a line within the BODY tags, and run the page, it produces everything about php starting with the header -- PHP Version 4.4.6.

If I enter this line, <?php date("F j, Y, g:i a"); ?> it does not display anything.

I am a starter and confused. Would appreciate some help.

Thanks

Chris
jwcdemocrew
 
Posts: 2
Joined: 07. October 2006 14:53
Location: United Kingdom

Postby Wiedmann » 02. June 2007 17:18

If I enter this line,
Code: Select all
<?php date("F j, Y, g:i a"); ?>

it does not display anything.

http://www.php.net/manual/en/function.d ... #id3117635
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby jwcdemocrew » 02. June 2007 17:41

Hi Wiedmann

Many thanks - very useful link, i shall study it in more detail later.

By putting " echo " in front of the " date()", like <?php echo date("F j, Y, g:i a"); ?> does return a value.

Thanks again,

Chris
jwcdemocrew
 
Posts: 2
Joined: 07. October 2006 14:53
Location: United Kingdom

Postby kevinduke » 02. June 2007 17:42

<?php echo(date("F j, Y, g:i a")); ?>
kevinduke
 
Posts: 13
Joined: 11. October 2006 16:34


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 124 guests