Phpinfo.php info not appearing

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
sandmania
Forum Newbie
Posts: 2
Joined: Mon Dec 13, 2004 7:41 am
Contact:

Phpinfo.php info not appearing

Post by sandmania »

Hi,

I am a newbie to php,apache etc..and seem to be having problems getting the php info page to be appear.
I have installed everything...I am using windows xp, apache 2.0.4.3, php 4.2.3.

apache is working all well and good.
i have renamed the config php file to php.ini and moved it. also renamed the other files that need renaming and moving.

Add the relevant lines to the apache config file and made sure that the path is correct to the php file.
Also added the addtype lines

Created a php document for phpinfo and saved into htdocs. Also made sure the hidden extension for notepad has been edited.

When trying to view the phpinfo information in the browser, all I see is the code that I wrote into the notepad file e.g <? phpinfo() ; ?>

I would appreciate any help, as I think I will not have any hair left very soon :)

Thanks

The Sandman
User avatar
CoderGoblin
DevNet Resident
Posts: 1425
Joined: Tue Mar 16, 2004 10:03 am
Location: Aachen, Germany

Post by CoderGoblin »

Is the file extension for the file .html or .php Most common mistake is to name it as an .html file.
Where did you place the php.ini file ?
Also try using <?php instead of just <?
sandmania
Forum Newbie
Posts: 2
Joined: Mon Dec 13, 2004 7:41 am
Contact:

Post by sandmania »

Hi...thanks for the reply!

The file was named .php, and not .html
Yeah it is a common mistake that can happen.

The php.ini file was moved into the windows folder.
I thought that maybe there needed to be a copy of it in the php folder as well but I tried that and that it didn't work.

I had also tried having the content named <?php instead of <?, but that does not seem to be the case.

Hmm......

Thanks again
Post Reply