Re: PHP & HTML: newbie question

From: Date: Wed, 16 Jan 2002 21:37:16 +0000
Subject: Re: PHP & HTML: newbie question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-80839@lists.php.net to get a copy of this message
You mispelled the closing "</body>" tag. On Wednesday, January 16, 2002, at 04:33 PM, Nick Wilson wrote:
* On 16-01-02 at 22:29 * Richard said....
Hi there I just signed up for an account at Spaceports so I can play with PHP ­
I
placed some PHP code in an HTML page and uploaded it to the server. But when I checked it in my browser I got the error message: can¹t
parse
line 1 Line 1 is simply the <HTML> tag!! On one of their user forums someone suggested getting rid of the HTML
tags
so I did and just left the PHP code on its own and this works fine ­
so how
can I use PHP with HTML?
<html> <head> <title>RTFM</title> <body> <? print("<h1>The Manual is your friend</h1>"); ?> </hody> </html> -- Nick Wilson Tel: +45 3325 0688 Fax: +45 3325 0677 Web: www.explodingnet.com


« previous php.general (#80839) next »