Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

First PHP file

Status
Not open for further replies.

EvertonFC

Technical User
Nov 24, 2004
107
GB
Hello

My first PHP script is:

<html>
<head>
<title>First!</title>
</head>

<? print(Date("l F d, Y")); ?>

<body>
</body>
</html>

But do I save the file as test.php (and a txt file or under All Files), or as test.html (and a txt file or under All Files). Either way, I can't see it working on this SuSE 8.1).

Any advice appreciated, please.

Thanks.
 
save it as test.php (and all files) so it doesn't end up as test.php.txt

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top