novice PHPer - pls help

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
stuff
-


Joined: 30 May 2004
Posts: 4

PostPosted: Sun May 30, 2004 12:38 am    Post subject: novice PHPer - pls help Reply with quote

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 View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Sun May 30, 2004 1:21 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
stuff
-


Joined: 30 May 2004
Posts: 4

PostPosted: Sun May 30, 2004 10:29 am    Post subject: Reply with quote

yeap, i knew it was something stupid.....
now it works.

thanks a lot.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group