View Full Version : PHP Problems

02-11-2006, 08:38 PM
[n00bish post]http://forums.winforums.org/showthread.php?t=11381
[/n00bish post]

Go there to see the problem.

02-11-2006, 09:03 PM
Don't be lazy. It doesn't hurt to repost your question.

This is his/her question for those of you not wanting to navigate to another forum:

Whenever I run my Apache server, it says that PHP 5.1.2 (My PHP version) is running and whenever I open a PHP file, it always says that windows doesn't recognize the file type if I open it on. When I open one on my web site, it shows the code. Ex:

<title>PHP test</title>
<?php phpinfo() ?>

I can't seem to figure out the problem. I don't know what to do. Can anyone help? (I know what your'e thinking. You think I'm a n00bhead.)

Make a .php file called phpinfo.php and put this only in it.


<?php phpinfo(); ?>

Upload it to your server. Navigate to it. It would help if you gave us a link to your site as well. It could be that your server isn't setup to handle php files.

02-11-2006, 09:41 PM
Do you have the line:
AddType application/x-httpd-php .php
(or something similar)
somewhere in your httpd.conf?
If you have other install problems you could use this tutorial (http://a51.neostrada.pl/).