Greetings Dave,
The reason this occurs is because Apache has NO idea what a .php file is
unless you tell it about it. As a "professional webdesigner" you should
know this ;-)
OK, here's what you do. Add the following lines to your httpd.conf file.
Please note that there are *already* some references to these lines in it.
So you would best search for them and add from here what is missing:
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php default.html default.htm
</IfModule>
#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
The above blocks are in two different sections (if you search, as I mentioned
earlier. you would recognise that). :-)
Best Wishes,
C. Hutchinson
H.R. Communications Corp.
http://www.1command.com
http://www.dnswatch.com
> I'm a professional webdesigner, but a recent job i recieved asked me to host the
> webpage on my computer, which means i'm trying to install php on my own system.
>
> I have done so, but when opening a .php file i see the source code and it's
> ignoring that php exists. If i stick <html> on the start to make it an html page
> it translate the html parts into being visible properly, but the php parts are
> still ignored.
>
> What am i doing wrong?
>
> Thankyou
>
> David Lurie
>
>
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
..
............................................
This email was sent using DNSWATCH WebMail.
"Get YOUR account today!"
http://www.dnswatch.com/dnswm112/
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]