[PHP] Another nube strugaling to get PHP working with Apache.

2005-09-03 Thread Dale Turner
I installed apache and it seems to be working.

I installed PHP and ti seems to translate HTML but it dosent seem to understand 
PHP.

Here is what is did;
   I modified the PATH=..   to PATH= .;C:\php5

   i placed the PHP.ini file in the c:\php5 directory

   I made three modifacations to html.config

# Set the server name to a local variable server name.
ServerName fugbar:80

# For PHP 5 do something like this:
LoadModule php5_module c:/php5/php5apache2.dll

# added the line.
AddType application/x-hpptd-php .php .phtml .html


My browser will find:
http://fugbar/index.html

but will NOT find
http://fugbar/phpinfo.php   Unknown file type.


I could sure use some help






Re: [PHP] Another nube strugaling to get PHP working with Apache.

2005-09-03 Thread Jasper Bryant-Greene

Dale Turner wrote:

I installed apache and it seems to be working.

I installed PHP and ti seems to translate HTML but it dosent seem to understand 
PHP.

# added the line.
AddType application/x-hpptd-php .php .phtml .html


Maybe you'd like to try:

AddType application/x-httpd-php .php .phtml .html

(you had misspelled x-httpd-php in your AddType directive)

Note that if you do that then all .html files will also be treated as 
PHP code, which you might not want. You might like to just do:


AddType application/x-httpd-php .php

--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

If you find my advice useful, please consider donating to a poor
student! You can choose whatever amount you think my advice was
worth to you. http://tinyurl.com/7oa5s

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php