<?php $Today = date("l F d, Y"); ?>
<HTML> <BODY>
Today's Date: <?php print("<H3>$Today</H3>\n"); ?>
</BODY> </HTML>
when i try to test my code at http://localhost/1-5.php4, they ask me if i want to download the file. it come out as document file not html. why?
Note: forwarded message attached.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
--- Begin Message --- do it like this:
<? $Greet = "Hello World" $Today = date("l F d, Y"); ?>
Today's date is <? print $Today; ?>
or like this:
<? $Greet = "Hello World" $Today = date("l F d, Y"); print $Greet; print "<br>\n"; print "Today is $Today"; ?>
From: Khoo Merry <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [PHP] is my server working Date: Sat, 14 Jun 2003 22:09:12 -0700 (PDT)
I'm using windows me, server apache 1.3 for php.
I had wrote this code and tried it at local host, but the php code didn't work. The code is like this:
<? $Greet = "Hello World" $Today = date("l F d, Y"); ?> <html> <body> Today's date is <? print("$Today\n"); print("$Greet"); ?> </body> </html> Istead of print Today's date is Sunday June 14, 2003 Hello World The out put is only "Today's date is". Is my server working with php? I am really appreciate if anyone can answer my problem. Thank you.
merry
--------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
--- End Message ---
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php