<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1522" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=437114609-25112005><FONT face=Arial color=#0000ff size=2>Hi
Sanyana,</FONT></SPAN></DIV>
<DIV><SPAN class=437114609-25112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=437114609-25112005><FONT face=Arial color=#0000ff size=2>If I
understand you correctly you try to avoid to run more than one HTTP-server on a
single server. </FONT></SPAN></DIV>
<DIV><SPAN class=437114609-25112005></SPAN><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005><FONT face=Arial
color=#0000ff> </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=437114609-25112005>May I suggest
that you take the following into consideration:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=437114609-25112005>1. (This one
your probably already know) You can configure inets to run under a different
port number so it doesn't clash with your Apache;</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=437114609-25112005>2. From your
PHP pages you can submit (server side!) HTTP-requests to inets (although it
would be nice if Erlang had a fully working webservices module available), to
retrieve data from the mnesia database. Your probably have to write a
EWSAPI module to handle some of your requests.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT><FONT face=Tahoma><FONT
size=2><SPAN class=437114609-25112005></SPAN></FONT></FONT><FONT
face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=437114609-25112005>I'm running
several HTTP-servers on a single server. HTTP is nothing more than a
"interface protocol" and the server is nothing more as the remote proxy to a
process.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=437114609-25112005>hope this
helps a bit,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005>regards,</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005>/Twan</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=437114609-25112005> </SPAN>-----Original Message-----<BR><B>From:</B>
Sanjaya Vitharana [mailto:sanjaya@wavenet.lk]<BR><B>Sent:</B> vrijdag 25
november 2005 10:38<BR><B>To:</B> Twan van der
Schoot<BR><B>Cc:</B><B>Subject:</B> Re: inets &
PHP<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV><FONT face=Arial size=2>Hi .... Twan !!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1.) I have PHP pages already running on
Apache</FONT></DIV>
<DIV><FONT face=Arial size=2>2.) Also I have a inets (HTTP Server) httpd
which replies to the specific http requests, accessing the mnesia
db.</FONT></DIV>
<DIV><FONT face=Arial size=2>3.) Since inets is also act as a HTTP
Server, can't I put the php pages on same server rather than using 2 web
servers ? (Apache & inets)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Just interested, no special need to user PHP over
inets.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Also,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Apache, inets, & yaws all 3 are webservers.
So why yaws supports PHP after Apache ? Rather than providing support for PHP
they could guid their user to use Apache, dosen't it ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>So why not thinking about PHP over inets ?
And why Erlang include inets as their web server ? They also could simply put
the Yaws as their web server or redirect their user to yaws. Why they don't do
that?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>These are the questions comes to my
head. Also margins are not clear for me when to use inets & yaws ? As
well as why 2 web servers for Erlang users ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Any how i'm new to inets as
well.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=twanvds@xs4all.nl href="mailto:twanvds@xs4all.nl">Twan van der
Schoot</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sanjaya@wavenet.lk
href="mailto:sanjaya@wavenet.lk">Sanjaya Vitharana</A> ; <A
title=erlang-questions@erlang.org
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, 25 November 2005 02:18
pm</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: inets & PHP</DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT
face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff size=2>Hi
Sanjaya,</FONT></SPAN></DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff
size=2>can you explain why you want to serve PHP over
inets?</FONT></SPAN></DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff
size=2>regards,</FONT></SPAN></DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=734311608-25112005><FONT face=Arial color=#0000ff
size=2>/Twan</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> <A
href="mailto:owner-erlang-questions@erlang.org">owner-erlang-questions@erlang.org</A>
[mailto:owner-erlang-questions@erlang.org]<B>On Behalf Of </B>Sanjaya
Vitharana<BR><B>Sent:</B> vrijdag 25 november 2005 5:52<BR><B>To:</B> <A
href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</A><BR><B>Subject:</B>
inets & PHP<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Hi...!!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1.) What is the possibility of running
PHP on inets? (inets support PHP ?)</FONT></DIV>
<DIV><FONT face=Arial size=2>2.) if it supports, how to configure inets to
work properly with PHP?</FONT></DIV>
<DIV><FONT face=Arial size=2>3.) Are there aditional libraries to add
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT><FONT face=Arial
size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>this because I have write below 3 lines
& save it as test.php on a inets server. But no result</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><?<BR> echo
"test";<BR>?></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Can anybody help on this matter
?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks in advance</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Sanjaya
Vitharana</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>