----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

*** I'd appreciate any help in this matter that anyone can provide.  I haven't been 
able to figure this out for days! ***

Apache JServ: v1.0
PHP: v3.0.12
System: Digital Unix box
OS: Stronghold 2.4.2 (Apache 1.3.6)

The problem I am having is that the output of one of my servlets has php codes in it, 
but my server is not parsing the php codes.

Here is a cut from my httpd.conf:
------------------------------------------------------------------------
<IfModule mod_php3.c>
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .php3s
</IfModule>
------------------------------------------------------------------------

Do I have to set my MIME types a certain way?  My response content type is set to 
TEXT/HTML and I tried setting it to application/x-httpd-php3 but the browser just try 
to download it because it doesn't know how to handle it - which makes sense...  I 
wasn't expecting the browser to be able to parse the PHP codes - but I just tried it 
anyway...  How do I get the servlet response to pass through a PHP interpreter before 
it goes to the browser?

I assume there MUST be a way because a lot of people design their entire sites around 
PHP - and if they need to add servlet support I'm sure this problem would come up.  It 
seems as if many people would opt to develop this application in PHP - but then what 
is the benefit of Servlets over PHP?  That of course is a larger issue - but I choose 
to develop form processing applications in Java because it is not a scripting 
language, has more functions, and is more effiicient in terms of memory management, 
etc.  Although I could be wrong.

The name of the servlet is housing.shapp.  I searched all the mailing lists and 
couldn't find a solution to this problem.  I guess I would have to make the PHP engine 
parse all files that pass through the server - but I don't know how to do that safely. 
 I don't want this to work just for this servlet - I want to be able to do this for 
all servlets.

If someone can PLEASE help me out I'd really appreciate it.

Thanx,


Atul Ohri
NYU School of Law Webteam
[EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to