can't get the php code to work
Posted by: nollymolly (60.53.227.---)
Date: March 17, 2008 06:59AM

hi, i'm new to php and i've tried to test this piece of code. it worked well before with the right output. but when i tried it again it didn't worked out. the same with connection to database, it worked well before but now it doesn't even connected to the database. this is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"[www.w3.org];
<html xmlns="[www.w3.org];
<head>
<title>Today's Date</title>
<meta http-equiv="content-type"
content="text/html; charset=iso-8859-1" />
</head>
<body>
<p>Today's Date (according to this Web server) is
<?php
echo date('l, F dS Y.');
?></p>
</body>
</html>

the output is:
Today's Date (according to this Web server) is

note:it fails to fetch the date from the server.

plz help smiling smiley

Options: ReplyQuote
Re: can't get the php code to work
Posted by: nollymolly (60.53.227.---)
Date: March 17, 2008 07:20AM

hey i've figured the problem already...i should put [localhost] instead of C:\wamp\www\filename.php

silly mistakes! smiling smiley

Options: ReplyQuote


Sorry, only registered users may post in this forum.