Hello.

First - This may well be a problem principally to do with apache,
but if so (it appears to be) specifically with apache/php interaction
so here goes....

I have been experimenting with apache 1.3.23  / php 4.1.2 for several weeks
now and have met with a problem that has me puzzled.

I have built  Apache & php from source on linux and have elected to statically
bind php to apache  (i.e.  httpd -l  reports mod_php4.c)

Om my local apache server, I can execute cgi-bin programs in C and perl perfectly well
to service POST requests from html pages.

I have access to a remote server, which also runs these cgi-bins correctly.

I also built the command line version of php - which executes simple php code
from the console.

php -i > info.html
produces an html page that (as far as I can see) is OK.

As far as I can tell, I have the necessary additions to httpd.conf to
recognise php mime types.

HOWEVER.
        On both my local and on the remote server,  attempts to execute
html  with embedded  <?php  (or any other alternative to this) act as if
the server was treating  the html inclusions as comments.  Nothing is
produced in the displayed page from the php sections, but a `view source'
returns the page with the php code inclusions present .  This happens on both my
local server and the remote one (which I understand) is also running
apache  1.3.23
On the local server,  there are no error reports from either apache
or php in their respective logs.

I guess that apache is probably not even attempting to parse the html page,
and the browser will simply be silently ignoring unknown html tags.

If I am right about this, what then is likely to be missing from
(again a guess)  my httpd.conf

Sound familiar to anyone eh?

Regards, RJP

 
<http://www/sedric.co.uk> 





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

Reply via email to