PHP Installation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
iloveny
Forum Newbie
Posts: 3
Joined: Thu Oct 05, 2006 4:18 pm

PHP Installation

Post by iloveny »

Hi !

I need help on setting up and installing PHP!

I have installed PHP 5.20 and Apache 2.2.3 However, after I create my first php page and run it, blank screen appears.

On php.net website, they said that there is something wrong with the setting of Apache. I thought I have followed everything carefully, but maybe missed something.

Many many thanks in advanced!!!
danharibo
Forum Commoner
Posts: 76
Joined: Thu Aug 17, 2006 8:56 am

Post by danharibo »

Does the file have a .php extenction (I did that when testing my linux server :roll: )
iloveny
Forum Newbie
Posts: 3
Joined: Thu Oct 05, 2006 4:18 pm

Post by iloveny »

yes, the file is hello.php

I have followed the instruction on http://www.php.net/manual/en/install.wi ... pache2.php on how to install Apache.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

try

Code: Select all

<?php phpinfo(); ?>
You're invoking the php script via http://localhost/... ?
iloveny
Forum Newbie
Posts: 3
Joined: Thu Oct 05, 2006 4:18 pm

Post by iloveny »

It shows blank screen too.

When I use view source, it shows:

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>

which what my code is.

I am invoking hello.php by just clicking on the file to open it with web browser
Post Reply