not parsing php - off topic

L

long eddy

I'm testing a .php file -

<? phpinfo(); >?

however when the page loads I get a box that says:

File Download

Open / Save / Cancel

I'm not certain why it's not parsing php.

Any suggestions would be helpful.

Apache is on.
Win 98
and I've checked my Apache conf. file to be:

ScriptAlias /php4/ "C:/php4/"

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

Action application/x-httpd-php/php4/php.exe

Thank you,
Eddy
 
C

Chris Leeds, MVP - FrontPage

likely your server doesn't know what .php is.
this is a function of MIME type.
Verify that your server has PHP installed.

--
--
Chris Leeds
Contact: http://chrisleeds.com/contact

NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
 
C

Chris Leeds, MVP - FrontPage

oops, should have said, check the .htaccess file.

--
--
Chris Leeds
Contact: http://chrisleeds.com/contact

NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
 
R

Ronx

If it's in the httpd.conf file it should still work, provided php is
installed where the file says it is.

I am not sure if this line is correct though (and I don't know what it
should be if it isn't)

Action application/x-httpd-php/php4/php.exe

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp
 
C

Chris Leeds, MVP - FrontPage

I just thought of something!
rather than <? phpinfo(); ?> try <?php phpinfo(); ?>

--
--
Chris Leeds
Contact: http://chrisleeds.com/contact

NOTE:
This message was posted from an unmonitored email account.
This is an unfortunate necessity due to high volumes of spam sent to email
addresses in public newsgroups.
Sorry for any inconvenience.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top