...

View Full Version : PHP Problems



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

Go there to see the problem.

_Aerospace_Eng_
02-11-2006, 08: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:

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

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.

phpinfo.php

<?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.

marek_mar
02-11-2006, 08:41 PM
Do you have the line:
[code]
AddType application/x-httpd-php .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/).



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum