View previous topic :: View next topic |
Author |
Message |
stuff -
Joined: 30 May 2004 Posts: 4
|
Posted: Sun May 30, 2004 12:38 am Post subject: novice PHPer - pls help |
|
|
it must be something lame but i'm new at this, so i need some help.
at first it seemed that my php worked fine. when i use this .php file:
<?
print "Hello, world!";
phpInfo();
?>
i get the php info page and everything looks fine.
....well when i add this code to a .html, like this:
<html>
<head>
<title>Hello in PHP</title>
</head>
<body>
<h1>Hello in PHP</h1>
<?
print "Hello, world!";
phpInfo();
?>
</body>
</html>
i get only the "hello in php" part and nothing else.
anyone knows what the problem is? |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Sun May 30, 2004 1:21 am Post subject: |
|
|
Go to Console > Server Configuration > Advanced > CGI Parameters.
Make sure you add html in your Associated Extensions for PHP.
BTW - Welcome to the forums.:) |
|
Back to top |
|
 |
stuff -
Joined: 30 May 2004 Posts: 4
|
Posted: Sun May 30, 2004 10:29 am Post subject: |
|
|
yeap, i knew it was something stupid.....
now it works.
thanks a lot. |
|
Back to top |
|
 |
|