off topic - php not parsing

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
 
B

Bob Long

long said:
I'm testing a .php file -

<? phpinfo(); >?

I don't know about the following things, but shouldn't that line be:

<? phpinfo(); ?>

(unless you just made a typo here)?
 
L

Leif K-Brooks

long said:
I'm testing a .php file -

<? phpinfo(); >?

That should be ?>, not >?. And short_tags is icky, so use <?php instead
of <?.
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

Looks like you're missing a space. Try:
Action application/x-httpd-php /php4/php.exe
 
?

=?iso-8859-1?Q?Kim_Andr=E9_Aker=F8?=

long said:
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
--------------------------------^

You're missing a space there.

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

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top