Web Hosting Talk







View Full Version : php file problem


haddojh
12-17-2003, 05:05 AM
so i got apache installed.. and i think i have php up and running, in my browser i typed in the test line.. http://localhost/phpinfo.php and it brought up all the info, but when i try to bring up any other php file that i made.. it just pops open notepad... and shows the script? i've also over looked my addtype line.. to make sure it is working properly? can anyone help? i am running windows xp home.. with apache 2.0 and php4.. can anyone tell me what's wrong? i'm thinkin it is within my addtype lines? i need to know what they are suppose to look like.. to make sure if that is the probelm or not? help would be appreciated, thanks.. james

digitok
12-17-2003, 08:11 AM
For PHP, you need AddType to look like this:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

I can't think of no reason this would happen... So phpinfo.php works? No idea, sorry.

Hope this helps.

kneuf
12-17-2003, 08:42 AM
All i can think of is to make sure your server is running and to make sure your calling it with localhost, or whatever, and not the file on the system itself. E.g., don't call it from, say, C:\blah\somepage.php.

Hope this somewhat helps.