SV: Does Orion support PHP? How to enable it?

2002-04-23 Thread Jesper Rasmussen



http://www.orionsupport.com/articles/php.html

  -Oprindelig meddelelse-Fra: wzfg 
  [mailto:[EMAIL PROTECTED]]Sendt: 23. april 2002 
  03:59Til: Orion-InterestEmne: Does Orion support PHP? 
  How to enable it?
  Hi,Friend,
  As Httpd Server, Does Orion support PHP? if yes, 
  How can I enable it?
  Thanks a 
lot.


Re: Does Orion support PHP? How to enable it?

2002-04-23 Thread sachin mahajan



try this link 

http://www.orionsupport.com/articles/php.html

sachin

  - Original Message - 
  From: 
  wzfg 
  To: Orion-Interest 
  Sent: Tuesday, April 23, 2002 7:29 
  AM
  Subject: Does Orion support PHP? How to 
  enable it?
  
  Hi,Friend,
  As Httpd Server, Does Orion support PHP? if yes, 
  How can I enable it?
  Thanks a 
lot.


Does Orion support PHP? How to enable it?

2002-04-22 Thread wzfg



Hi,Friend,
As Httpd Server, Does Orion support PHP? if yes, 
How can I enable it?
Thanks a lot.


PHP servlet

2002-02-22 Thread Simon Stewart

Has anyone out there managed to get PHP 4.1.1 to compile as a servlet
and work with Orion? It compiles and I can install it, but any attempt
to access a PHP document throws an Unexpected Exception, and you get
a couple of screenfuls of backtrace from the JVM.

To compile PHP use something like 

./configure --with-java --with-servlet

and then copy the phpsrvlt.jar to orion/lib and add the directory with
the libphp4.so to either LD_LIBRARY_PATH or your /etc/ld.so.conf
depending on what you're using.

I'm using Orion 1.5.2, PHP 4.1.1 and the JDK 1.4 on Linux (debian
unstable, kernel version 2.4.17) but a quick google reveals that this
is a problem on other platforms.





RE: PHP servlet

2002-02-22 Thread Fyffe Carl

First thing, you have to be able to run PHP from the command line.  It
must be in path for Orion to find it.  I hope this helps...

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Simon Stewart
Sent: Friday, February 22, 2002 1:46 PM
To: Orion-Interest
Subject: PHP servlet 


Has anyone out there managed to get PHP 4.1.1 to compile as a servlet
and work with Orion? It compiles and I can install it, but any attempt
to access a PHP document throws an Unexpected Exception, and you get a
couple of screenfuls of backtrace from the JVM.

To compile PHP use something like 

./configure --with-java --with-servlet

and then copy the phpsrvlt.jar to orion/lib and add the directory with
the libphp4.so to either LD_LIBRARY_PATH or your /etc/ld.so.conf
depending on what you're using.

I'm using Orion 1.5.2, PHP 4.1.1 and the JDK 1.4 on Linux (debian
unstable, kernel version 2.4.17) but a quick google reveals that this is
a problem on other platforms.






Re: orion + php

2002-02-10 Thread Lachezar Dobrev

  Hi.
  In order for this setup to work you need to compile php as a stand-alone
executable, name it php and put it in the execution path (/usr/bin/ may be a
good location).

  Try it.
  Orion wraps the php pages with a CGI-servlet, which executes external
commands to parse the files.

  Lachezar

 I am getting the following error,

 500 Internal Server Error
 Couldnt find/launch the interpreter, searched for php

 My configuration file has the following,

 servlet
 servlet-namephp/servlet-name
 servlet-
 classcom.evermind.server.http.CGIServlet/serv
 init-param
 param-nameinterpreter/param-name
 param-valuephp/param-value
 /init-param
 /servlet

 I have php working with Apache no problem (mod_php4 port for fbsd).

 Is there something obvious that I'm just missing?

 Thanks,

 Justen Stepka







orion + php

2002-02-08 Thread Justen Stepka

I am getting the following error,

500 Internal Server Error
Couldnt find/launch the interpreter, searched for php

My configuration file has the following,

servlet
servlet-namephp/servlet-name
servlet-
classcom.evermind.server.http.CGIServlet/serv
init-param
param-nameinterpreter/param-name
param-valuephp/param-value
/init-param
/servlet

I have php working with Apache no problem (mod_php4 port for fbsd).

Is there something obvious that I'm just missing?

Thanks,

Justen Stepka






RE: Running PHP on Orion

2001-12-05 Thread Casey Helbling


I've thought about this a few times but never took the time to try it.
I'm thinking of a configuration where you use apache in front of Orion.
That way you could set up apache to recognize the .php extension.  Anyway...

Let me know if it works.  The bigger issue I was thinking about was session
information across apps written on different platforms.  For example.  Is
there some way to store all you session information in some persistent
session db that could be accessed by both php and the appserver.  would
there be synchronization issues with the db having to different applications
(on different platforms) having handles to the same tables.  This setup
would be useful for all the companies that wrote everything right away in
php... to just get it out there... now want to rewrite it and stick it on an
appserver... but want to do it iteratively.

Thanks.
Casey




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steven De
Schutter
Sent: Wednesday, December 05, 2001 12:26 AM
To: Orion-Interest
Subject: Running PHP on Orion


Hellow ,

Is it possible to run PHP on a Orion-server ?

If yes ... which configurations do I have to do ? And where do I have to put
my php-files ?


Regards
Steven






RE: Running PHP on Orion

2001-12-05 Thread Andreas Maag

it is kind of easy.

add something like:
   servlet
 servlet-namephp/servlet-name
 
servlet-classcom.evermind.server.http.CGIServlet/servlet-class
 init-param
 param-nameinterpreter/param-name
 param-value/usr/local/bin/php/param-value
 /init-param
/servlet

servlet-mapping
servlet-namephp/servlet-name
url-pattern/*.php/url-pattern
/servlet-mapping

servlet-mapping
servlet-namephp/servlet-name
url-pattern/*.php3/url-pattern
/servlet-mapping

to web.xml and/or global-web-application.xml

The only problem is that you need to compile php with other options than
normal: I've compiled it with something like this:

./configure --with-mysql=/usr --disable-force-cgi-redirect
--enable-force-cgi-redirect=/etc/openldap --without-gd --e
nable-calendar --enable-discard-path --enable-trans-sid --with-openssl
--with-imap --enable-inline-optimization

A.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Casey
Helbling
Sent: Mittwoch, 5. Dezember 2001 15:33
To: Orion-Interest
Subject: RE: Running PHP on Orion



I've thought about this a few times but never took the time to try
it.
I'm thinking of a configuration where you use apache in front of Orion.
That way you could set up apache to recognize the .php extension.
Anyway...

Let me know if it works.  The bigger issue I was thinking about was
session
information across apps written on different platforms.  For example.
Is
there some way to store all you session information in some persistent
session db that could be accessed by both php and the appserver.  would
there be synchronization issues with the db having to different
applications
(on different platforms) having handles to the same tables.  This setup
would be useful for all the companies that wrote everything right away
in
php... to just get it out there... now want to rewrite it and stick it
on an
appserver... but want to do it iteratively.

Thanks.
Casey


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Steven De
Schutter
Sent: Wednesday, December 05, 2001 12:26 AM
To: Orion-Interest
Subject: Running PHP on Orion


Hellow ,

Is it possible to run PHP on a Orion-server ?

If yes ... which configurations do I have to do ? And where do I have to
put
my php-files ?


Regards
Steven







Running PHP on Orion

2001-12-04 Thread Steven De Schutter

Hellow , 

Is it possible to run PHP on a Orion-server ? 

If yes ... which configurations do I have to do ? And where do I have to put my 
php-files ? 


Regards
Steven





Orion with php

2001-09-11 Thread Henrik Skafsgaard Larsen

This is not about enabling php in Orion.
I've got that working!
But I had to make a small project using php against mySql,
since I use Orion as development that wasn't any problem.
However - I cannot connect to the database. I keep getting
either TCP/IP 10091 or 10101: Cannot create socket.
So I installed Apache, enabled php and voila! 
No problems connecting to the database.
Can anybody share some light on this difference between the two?

mvh / best regards
Henrik Skafsgaard Larsen






Re: PHP with Orion

2001-09-04 Thread Rafael Alvarez

Hello Marcello,
Yes, it can be done. You need to modify the file global-web-application.xml
in your config directory.There is a servlet used for serving pages
using a CGI interpreter (like php). Below is an example of the servlet
definition I use(change php4 with the path to the php exec)

servlet
 servlet-namephp/servlet-name
 servlet-classcom.evermind.server.http.CGIServlet/servlet-class
 init-param
 param-nameinterpreter/param-name
 param-valuephp4/php/param-value
 /init-param
/servlet

It as worked of so far. You can even have jsp and php pages served in
the same app, but there will be separate session for the jsp and php
pages.

Monday, September 03, 2001, 4:44:25 PM, you wrote:

MM Is it possible to serve PHP pages with Orion ?
MM If yes, is there any kind of document ?

MM TIA,
MM  Marcello





-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






PHP with Orion

2001-09-03 Thread Marcello Mannino

Is it possible to serve PHP pages with Orion ?
If yes, is there any kind of document ?

TIA,
 Marcello





PHP and Orion

2001-03-22 Thread John Miller

Does anyone have any experience of running PHP in Orion. If so how did you
install it etc..

Would appreciate any tips you could give.

Johnny
.




RE: JSP vs PHP

2001-01-10 Thread Wagner, SnowWolf CAR

I have used both PHP and JSP. If you understand PHP you can develop it
faster that JSP. The problem is that PHP is very Perl like which is a steep
learning curve and JSP will scale much better. The problem with this
comparison is you are leaving out Servlets. If you do JSP in the Model 2
style with sevlets you will get the preformace that you get out of PHP and
you get scalability that you would never get out of PHP or any uncompiled
script language. Orion serves JSP as fast an PHP in the test that I have
made. But when I off load the processing logic to servlets or beans and use
JSP for presentation only, JSP on Orion is fast than PHP and the prefromance
does not drop as quickly under load as PHP does.

SnowWolf

-Original Message-
From: Frank Eggink [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 10, 2001 4:29 AM
To: Orion-Interest
Subject: JSP vs PHP


Hi,

I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was 
made that PHP was the better alternative as it is quicker in development 
and gives
you a better runtime performance. I have no hands-on PHP experience. Can 
anyone explain me the benefits of PHP over JSP (and vice versa of course). 
I'm bit
reluctant to rely solely on marketing speak.


Thanks,
FE






Re: JSP vs PHP

2001-01-10 Thread Rafael Alvarez

Hello Frank,
Check this article from JGuru

http://www.jguru.com/jguru/faq/view.jsp?EID=10596

Wednesday, January 10, 2001, 5:28:44 AM, you wrote:

FE Hi,

FE I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was 
FE made that PHP was the better alternative as it is quicker in development 
FE and gives you a better runtime performance. I have no hands-on PHP experience.
FE Can anyone explain me the benefits of PHP over JSP (and vice versa of course).
FE I'm bit reluctant to rely solely on marketing speak.
FE Thanks,
FE FE

-- 
Best regards,
 Rafaelmailto:[EMAIL PROTECTED]






RE: JSP vs PHP

2001-01-10 Thread J.T. Wenting

I guess the discussion was in a Linux environment. The speed issue
(especially development speed) is voiced a lot in Linux circles by PHP
advocates as the number of people in the Linux scene who know PHP far
outnumbers the number of JSP people in there.
Performance of PHP on Linux is likely also a bit better as the Linux JVMs do
not excell where it comes to performance (if only because Linux servers are
generally older, lower spec, machines and  we all know Java does only come
into its own if it has loads of memory).

Jeroen T. Wenting
[EMAIL PROTECTED]

Murphy was wrong, things that can't go wrong will anyway

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Arved
 Sandstrom
 Sent: Wednesday, January 10, 2001 14:02
 To: Orion-Interest
 Subject: RE: JSP vs PHP


 Can't speak for the runtime performance - PHP, JSP, and ColdFusion are all
 pretty fast - but I can't see how one can pin down development time
 differences between PHP and JSP. Maybe with an atomic clock. ColdFusion is
 faster still (higher level of abstraction).

 IMO the only sensible basis of comparison between these HTML-embedded
 scripting languages is platform support and feature-sets.

 Was that a public discussion you refer to? It would be interesting to see
 what arguments could possibly have been made.

 Regards,
 Arved Sandstrom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Frank Eggink
 Sent: Wednesday, January 10, 2001 5:29 AM
 To: Orion-Interest
 Subject: JSP vs PHP


 Hi,

 I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was
 made that PHP was the better alternative as it is quicker in development
 and gives
 you a better runtime performance. I have no hands-on PHP experience. Can
 anyone explain me the benefits of PHP over JSP (and vice versa of course).
 I'm bit
 reluctant to rely solely on marketing speak.


 Thanks,
 FE










SV: JSP vs PHP

2001-01-10 Thread Klaus . Myrseth

Very true. PHP is a strange mix between java, perl and c++, but it has some
very interesting plugins that can speed development. PHP can allso use
javaobjects :) that is a nice feature.Even EJB.

Still when youve done a couple of JSP projects you are likely to have built
yourself a set of good modules of some sort to use in JSP so i dont think
this is something to think about. If you know Java and not PHP, it is
extremely easy to learn yourself JSP.

The speed of PHP comes only in 1 (maby two) configurations, one is if you
integrate it into apache so it dont run it as cgi, or maby (havent tested)
when you compile pure java integration (not cgi)... Somehow i have met some
distros that will only run this thing as cgi :P

Still on a server with lots of memory and a good JSP engine i dont think you
will see any speed differences on solaris or windowsLinux still have a
small issue with speed and memory usage in the vm, this will prolly get
better pretty soon :)

JSP engines exists for virtually any webserver out there on any platform
(allmost) so its a very good choice to know this technology, and i see my
own customers throwing away those old ASP engines and porting applications
over to JSP all the time...

And for those who want to flame me for not liking PHP i can only comment: I
like PHP but i like JSP and its taglibs a bit better, especialy because
there are loads of documentation and a very easy learning how to use if you
are proficient in Java  + you have an excelent server development
spesification called J2EE that is starting to get widely used now.

Have fun!

Klaus

-Opprinnelig melding-
Fra: J.T. Wenting [mailto:[EMAIL PROTECTED]]
Sendt: 10. januar 2001 15:32
Til: Orion-Interest
Emne: RE: JSP vs PHP


I guess the discussion was in a Linux environment. The speed issue
(especially development speed) is voiced a lot in Linux circles by PHP
advocates as the number of people in the Linux scene who know PHP far
outnumbers the number of JSP people in there.
Performance of PHP on Linux is likely also a bit better as the Linux JVMs do
not excell where it comes to performance (if only because Linux servers are
generally older, lower spec, machines and  we all know Java does only come
into its own if it has loads of memory).

Jeroen T. Wenting
[EMAIL PROTECTED]

Murphy was wrong, things that can't go wrong will anyway

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Arved
 Sandstrom
 Sent: Wednesday, January 10, 2001 14:02
 To: Orion-Interest
 Subject: RE: JSP vs PHP


 Can't speak for the runtime performance - PHP, JSP, and ColdFusion are all
 pretty fast - but I can't see how one can pin down development time
 differences between PHP and JSP. Maybe with an atomic clock. ColdFusion is
 faster still (higher level of abstraction).

 IMO the only sensible basis of comparison between these HTML-embedded
 scripting languages is platform support and feature-sets.

 Was that a public discussion you refer to? It would be interesting to see
 what arguments could possibly have been made.

 Regards,
 Arved Sandstrom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Frank Eggink
 Sent: Wednesday, January 10, 2001 5:29 AM
 To: Orion-Interest
 Subject: JSP vs PHP


 Hi,

 I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was
 made that PHP was the better alternative as it is quicker in development
 and gives
 you a better runtime performance. I have no hands-on PHP experience. Can
 anyone explain me the benefits of PHP over JSP (and vice versa of course).
 I'm bit
 reluctant to rely solely on marketing speak.


 Thanks,
 FE










RE: JSP vs PHP

2001-01-10 Thread Juan Lorandi (Chile)

I have extense experience in PHP... had to build large web apps with it;
but soon I've had to dump it because it isn't a tiered solution, nor it
allows for easy instanciation of components
It's array definition sucks(iteration of an array can be a painfully long to
code)

For small things it's the fastest, but lacks some important features like
reuse of code(no components nor taglibs).
There's no satisfactory standard for accessing DB's either there's
different modules for each DB vendor;no ODBC-like 
tech that successfully works with many DB's (there's a Perl module you can
use, but is very restraining and doesn't work with
MS-SQL)
It mostly works on Linux; the compiler is made by Zend whom are aparently
disbanding.

I'll give an example:

JSP APP

Browser -- JSP -- Taglib -- EJB -- Persistence (can be DB, MQ, socket,
file, etc.)

PHP APP

Browser -- PHP -- DB

Usually DB is Postgres/MySQL

So, it depends on your aim...
if you have a small app, can choose platform and DB, go for PHP


My 2c,
JP

-Original Message-
From: J.T. Wenting [mailto:[EMAIL PROTECTED]]
Sent: Mircoles, 10 de Enero de 2001 11:32
To: Orion-Interest
Subject: RE: JSP vs PHP


I guess the discussion was in a Linux environment. The speed issue
(especially development speed) is voiced a lot in Linux circles by PHP
advocates as the number of people in the Linux scene who know PHP far
outnumbers the number of JSP people in there.
Performance of PHP on Linux is likely also a bit better as the Linux JVMs do
not excell where it comes to performance (if only because Linux servers are
generally older, lower spec, machines and  we all know Java does only come
into its own if it has loads of memory).

Jeroen T. Wenting
[EMAIL PROTECTED]

Murphy was wrong, things that can't go wrong will anyway

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Arved
 Sandstrom
 Sent: Wednesday, January 10, 2001 14:02
 To: Orion-Interest
 Subject: RE: JSP vs PHP


 Can't speak for the runtime performance - PHP, JSP, and ColdFusion are all
 pretty fast - but I can't see how one can pin down development time
 differences between PHP and JSP. Maybe with an atomic clock. ColdFusion is
 faster still (higher level of abstraction).

 IMO the only sensible basis of comparison between these HTML-embedded
 scripting languages is platform support and feature-sets.

 Was that a public discussion you refer to? It would be interesting to see
 what arguments could possibly have been made.

 Regards,
 Arved Sandstrom

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Frank Eggink
 Sent: Wednesday, January 10, 2001 5:29 AM
 To: Orion-Interest
 Subject: JSP vs PHP


 Hi,

 I just ran into a discussion regarding PHP vs. JSP (and ASP). A claim was
 made that PHP was the better alternative as it is quicker in development
 and gives
 you a better runtime performance. I have no hands-on PHP experience. Can
 anyone explain me the benefits of PHP over JSP (and vice versa of course).
 I'm bit
 reluctant to rely solely on marketing speak.


 Thanks,
 FE










RE: JSP vs PHP - USE WEBWORK INSTEAD!

2001-01-10 Thread Hristo Stoyanov

Hey folks!
Instead of choosing between JSP, PHP and ASP
go staight to www.sourceforge.net/projects/webwork
and get the latest source snapshot. This is the best
J2EE presentation framework yet and is much better
that STRUTS, COCOON, TAPESTRY, XMLC (to name a few)
The design is supperior (based on JSP and JavaBeans),
it is very easy to use and very powerful!
So give it a shot ... I always make sure that it is
operational with the latest Orion server ...

Regards,
Hristo

--- Arved Sandstrom [EMAIL PROTECTED]
wrote:
 Can't speak for the runtime performance - PHP, JSP,
 and ColdFusion are all
 pretty fast - but I can't see how one can pin down
 development time
 differences between PHP and JSP. Maybe with an
 atomic clock. ColdFusion is
 faster still (higher level of abstraction).
 
 IMO the only sensible basis of comparison between
 these HTML-embedded
 scripting languages is platform support and
 feature-sets.
 
 Was that a public discussion you refer to? It would
 be interesting to see
 what arguments could possibly have been made.
 
 Regards,
 Arved Sandstrom
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On
 Behalf Of Frank Eggink
 Sent: Wednesday, January 10, 2001 5:29 AM
 To: Orion-Interest
 Subject: JSP vs PHP
 
 
 Hi,
 
 I just ran into a discussion regarding PHP vs. JSP
 (and ASP). A claim was
 made that PHP was the better alternative as it is
 quicker in development
 and gives
 you a better runtime performance. I have no hands-on
 PHP experience. Can
 anyone explain me the benefits of PHP over JSP (and
 vice versa of course).
 I'm bit
 reluctant to rely solely on marketing speak.
 
 
 Thanks,
 FE
 
 
 
 
 


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/




Re: SV: Orionserver php

2000-12-13 Thread Joe Walnes


what exactly do you mean by "compile PHP as a servlet"? Isnt PHP written in
C/C++?

It's written in C and comes with different wrappers for executing it, the 
most common being a standalone CGI process or compiled into Apache as a module.

However, there is also a Servlet wrapper, which uses JNI to bind to the 
native code. The advantages of using this over the standalone CGI 
executable are:

- Speed (a new process does not need to be forked for each request, and the 
engine is reused)
- Access to Java objects - PHP can construct objects, access attributes, 
methods and properties.
- Request, Response, Session, RequestDispatcher, etc objects available to 
PHP page
- Runs in same context. Calls to EJBs do not have to be passed over RMI

The downside to running PHP as a Servlet is that it's tricky to install, 
and because it uses JNI it's not protected by the VM.

There will be a howto for setting this up appearing on orionsupport.com 
within the next few days if you're interested.

-Joe Walnes





Re: SV: Orionserver php

2000-12-13 Thread Christian Sell

ha, interesting indeed (not that I intend to migrate my programming to PHP,
I am quite happy with JSP right now, but still...)


- Original Message -
From: "Joe Walnes" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, December 13, 2000 10:30 AM
Subject: Re: SV: Orionserver  php



 what exactly do you mean by "compile PHP as a servlet"? Isnt PHP written
in
 C/C++?

 It's written in C and comes with different wrappers for executing it, the
 most common being a standalone CGI process or compiled into Apache as a
module.

 However, there is also a Servlet wrapper, which uses JNI to bind to the
 native code. The advantages of using this over the standalone CGI
 executable are:

 - Speed (a new process does not need to be forked for each request, and
the
 engine is reused)
 - Access to Java objects - PHP can construct objects, access attributes,
 methods and properties.
 - Request, Response, Session, RequestDispatcher, etc objects available to
 PHP page
 - Runs in same context. Calls to EJBs do not have to be passed over RMI

 The downside to running PHP as a Servlet is that it's tricky to install,
 and because it uses JNI it's not protected by the VM.

 There will be a howto for setting this up appearing on orionsupport.com
 within the next few days if you're interested.

 -Joe Walnes







Orionserver php

2000-12-12 Thread Hernetkoski, Jukka

Hello folks,

has anyone mixed orionserver and php?

If you don't want to install Apache,
but enable php, will it run over orionserver?

Regards, Jukka




Re: Orionserver php

2000-12-12 Thread Joe Walnes

Yes it does, and very well indeed. Nice thing is that PHP can interact with 
Java objects (such as EJB's) so it makes for a nice presentation layer.

I await the flames.

-Joe Walnes

At 10:19 12/12/2000 +0200, you wrote:
Hello folks,

has anyone mixed orionserver and php?

If you don't want to install Apache,
but enable php, will it run over orionserver?

Regards, Jukka





SV: Orionserver php

2000-12-12 Thread Klaus . Myrseth

This is actually VERY easy to do, just compile a normal php cgi executable
without apache integration and install it in your path...

Dont touch anything in orion, but restart it... Then make a file in your
default webapp or something containing the following to test if it works:

info.php - filename
contents:
?php
info();
?

If this shows a nice page with php information youre off and running :)

Klaus Myrseth

-Opprinnelig melding-
Fra: Joe Walnes [mailto:[EMAIL PROTECTED]]
Sendt: 12. desember 2000 13:07
Til: Orion-Interest
Emne: Re: Orionserver  php


Yes it does, and very well indeed. Nice thing is that PHP can interact with 
Java objects (such as EJB's) so it makes for a nice presentation layer.

I await the flames.

-Joe Walnes

At 10:19 12/12/2000 +0200, you wrote:
Hello folks,

has anyone mixed orionserver and php?

If you don't want to install Apache,
but enable php, will it run over orionserver?

Regards, Jukka





Re: Orionserver php

2000-12-12 Thread Joseph B. Ottinger

You're a dork!

On Tue, 12 Dec 2000, Joe Walnes wrote:

 Yes it does, and very well indeed. Nice thing is that PHP can interact with 
 Java objects (such as EJB's) so it makes for a nice presentation layer.
 
 I await the flames.
 
 -Joe Walnes
 
 At 10:19 12/12/2000 +0200, you wrote:
 Hello folks,
 
 has anyone mixed orionserver and php?
 
 If you don't want to install Apache,
 but enable php, will it run over orionserver?
 
 Regards, Jukka
 
 
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://cupid.suninternet.com/~joeo  HOMES.COM Developer





Re: SV: Orionserver php

2000-12-12 Thread Joe Walnes

Or, if you're feeling daring...

Compile PHP as a servlet and then place the classes and necessary 
servlet-mappings in your web-app.

Then from your PHP, you can do stuff like:

%
$ctx = new Java("javax.naming.InitialContext");
$myHome = $ctx-lookup("ejb/MyBean");
$me = $myHome-findByPrimaryKey($id);
%

Name: %= $me-name %
Age: %= $me-age %

(hypothetical example).

It's nice because servlet/JSP controllers can forward to or include PHP 
pages as if they are normal servlet/JSP pages, and PHP can access EJB's, 
ServletRequest, etc etc. Useful when Java is too scarey for web-developers.


-Joe

At 13:35 12/12/2000 +0100, [EMAIL PROTECTED] wrote:
This is actually VERY easy to do, just compile a normal php cgi executable
without apache integration and install it in your path...

Dont touch anything in orion, but restart it... Then make a file in your
default webapp or something containing the following to test if it works:

info.php - filename
contents:
?php
info();
?

If this shows a nice page with php information youre off and running :)

Klaus Myrseth

-Opprinnelig melding-
Fra: Joe Walnes [mailto:[EMAIL PROTECTED]]
Sendt: 12. desember 2000 13:07
Til: Orion-Interest
Emne: Re: Orionserver  php


Yes it does, and very well indeed. Nice thing is that PHP can interact with
Java objects (such as EJB's) so it makes for a nice presentation layer.

I await the flames.

-Joe Walnes

At 10:19 12/12/2000 +0200, you wrote:
 Hello folks,
 
 has anyone mixed orionserver and php?
 
 If you don't want to install Apache,
 but enable php, will it run over orionserver?
 
 Regards, Jukka





Re: SV: Orionserver php

2000-12-12 Thread Christian Sell

what exactly do you mean by "compile PHP as a servlet"? Isnt PHP written in
C/C++?

- Original Message -
From: "Joe Walnes" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, December 12, 2000 3:14 PM
Subject: Re: SV: Orionserver  php


 Or, if you're feeling daring...

 Compile PHP as a servlet and then place the classes and necessary
 servlet-mappings in your web-app.

 Then from your PHP, you can do stuff like:

 %
 $ctx = new Java("javax.naming.InitialContext");
 $myHome = $ctx-lookup("ejb/MyBean");
 $me = $myHome-findByPrimaryKey($id);
 %

 Name: %= $me-name %
 Age: %= $me-age %

 (hypothetical example).

 It's nice because servlet/JSP controllers can forward to or include PHP
 pages as if they are normal servlet/JSP pages, and PHP can access EJB's,
 ServletRequest, etc etc. Useful when Java is too scarey for
web-developers.


 -Joe

 At 13:35 12/12/2000 +0100, [EMAIL PROTECTED] wrote:
 This is actually VERY easy to do, just compile a normal php cgi
executable
 without apache integration and install it in your path...
 
 Dont touch anything in orion, but restart it... Then make a file in your
 default webapp or something containing the following to test if it works:
 
 info.php - filename
 contents:
 ?php
 info();
 ?
 
 If this shows a nice page with php information youre off and running :)
 
 Klaus Myrseth
 
 -Opprinnelig melding-
 Fra: Joe Walnes [mailto:[EMAIL PROTECTED]]
 Sendt: 12. desember 2000 13:07
 Til: Orion-Interest
 Emne: Re: Orionserver  php
 
 
 Yes it does, and very well indeed. Nice thing is that PHP can interact
with
 Java objects (such as EJB's) so it makes for a nice presentation layer.
 
 I await the flames.
 
 -Joe Walnes
 
 At 10:19 12/12/2000 +0200, you wrote:
  Hello folks,
  
  has anyone mixed orionserver and php?
  
  If you don't want to install Apache,
  but enable php, will it run over orionserver?
  
  Regards, Jukka







RE: PHP servlet problems

2000-11-15 Thread Tim Squires

Thanks Sean.  That's exactly the setup I'm running, I've tried swapping the
CGIServlet for the php one but still the same result.

Any more ideas would be appreciated.

Tim.

-Original Message-
From: Sean Leach [mailto:[EMAIL PROTECTED]]
Sent: 14 November 2000 16:02
To: Orion-Interest
Subject: RE: PHP servlet problems


I have it setup and running fine, I use:


servlet
servlet-namephp/servlet-name
  servlet-classcom.evermind.server.http.CGIServlet/servlet-class
  init-param
 param-nameinterpreter/param-name
 param-valuephp/param-value
  /init-param
/servlet
servlet-mapping
  servlet-namephp/servlet-name
  url-pattern/*.php/url-pattern
/servlet-mapping
servlet-mapping
  servlet-namephp/servlet-name
  url-pattern/*.phtml/url-pattern
/servlet-mapping
etc...

And it works great for me.  Hope this helps.  Good luck!

Sean

-
Sean Leach
Director of Technology | eBusiness Services
NetLojix Communications, Inc.   NASDAQ:  NETX
e - [EMAIL PROTECTED]
v - 805.884.6375
f - 805.883.5627
w - www.netlojix.com
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Squires
Sent: Tuesday, November 14, 2000 5:44 AM
To: Orion-Interest
Subject: PHP servlet problems


Hi,

I have a few php things I would like to run on my Orion server so I
installed the php servlet:


In global-web-application.xml changed:
servlet-classcom.evermind.server.http.CGIServlet/s
ervlet-class
to
servlet-classnet.php.servlet/servlet-class

Put the phpsrvlt.jar into the jdk1.3/jre/lib/ext/ directory.
Made sure that php runs on the command line.
Restarted the Orion server (using admin.jar then rebooting the whole system
just to make sure...)


When I access the following page:
html
body
?php echo "Hello"; ?
/body
/html

I receive the following page:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html;
charset=windows-1252"/HEAD
BODY/BODY/HTML

I've tried a few other php pages that work and they deliver the same, but
after 3 or 4 pages I am shown the following error:

500 Internal Server Error
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.evermind.server.http.HttpApplication.wo(JAX)
at com.evermind.server.http.HttpApplication.v6(JAX)
at com.evermind.server.http.HttpApplication.uh(JAX)
at com.evermind.server.http.ed.sp(JAX)
at com.evermind.server.http.ed.so(JAX)
at com.evermind.util.f.run(JAX)

I changed back to the CGIServlet but it came up with the same error, even
after rebooting.

If anyone has PHP running, could they point out what I have missed or done
wrong?

Thanks for your time,
Tim.




Tim Squires

It's not what you know, it's who you tell.








PHP servlet problems

2000-11-14 Thread Tim Squires

Hi,

I have a few php things I would like to run on my Orion server so I
installed the php servlet:


In global-web-application.xml changed:
servlet-classcom.evermind.server.http.CGIServlet/s
ervlet-class
to
servlet-classnet.php.servlet/servlet-class

Put the phpsrvlt.jar into the jdk1.3/jre/lib/ext/ directory.
Made sure that php runs on the command line.
Restarted the Orion server (using admin.jar then rebooting the whole system
just to make sure...)


When I access the following page:
html
body
?php echo "Hello"; ?
/body
/html

I receive the following page:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html;
charset=windows-1252"/HEAD
BODY/BODY/HTML

I've tried a few other php pages that work and they deliver the same, but
after 3 or 4 pages I am shown the following error:

500 Internal Server Error
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.evermind.server.http.HttpApplication.wo(JAX)
at com.evermind.server.http.HttpApplication.v6(JAX)
at com.evermind.server.http.HttpApplication.uh(JAX)
at com.evermind.server.http.ed.sp(JAX)
at com.evermind.server.http.ed.so(JAX)
at com.evermind.util.f.run(JAX)

I changed back to the CGIServlet but it came up with the same error, even
after rebooting.

If anyone has PHP running, could they point out what I have missed or done
wrong?

Thanks for your time,
Tim.




Tim Squires

It's not what you know, it's who you tell.





RE: PHP servlet problems

2000-11-14 Thread Sean Leach

I have it setup and running fine, I use:


servlet
servlet-namephp/servlet-name
  servlet-classcom.evermind.server.http.CGIServlet/servlet-class
  init-param
 param-nameinterpreter/param-name
 param-valuephp/param-value
  /init-param
/servlet
servlet-mapping
  servlet-namephp/servlet-name
  url-pattern/*.php/url-pattern
/servlet-mapping
servlet-mapping
  servlet-namephp/servlet-name
  url-pattern/*.phtml/url-pattern
/servlet-mapping
etc...

And it works great for me.  Hope this helps.  Good luck!

Sean

-
Sean Leach
Director of Technology | eBusiness Services
NetLojix Communications, Inc.   NASDAQ:  NETX
e - [EMAIL PROTECTED]
v - 805.884.6375
f - 805.883.5627
w - www.netlojix.com
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Squires
Sent: Tuesday, November 14, 2000 5:44 AM
To: Orion-Interest
Subject: PHP servlet problems


Hi,

I have a few php things I would like to run on my Orion server so I
installed the php servlet:


In global-web-application.xml changed:
servlet-classcom.evermind.server.http.CGIServlet/s
ervlet-class
to
servlet-classnet.php.servlet/servlet-class

Put the phpsrvlt.jar into the jdk1.3/jre/lib/ext/ directory.
Made sure that php runs on the command line.
Restarted the Orion server (using admin.jar then rebooting the whole system
just to make sure...)


When I access the following page:
html
body
?php echo "Hello"; ?
/body
/html

I receive the following page:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
HTMLHEAD
META http-equiv=Content-Type content="text/html;
charset=windows-1252"/HEAD
BODY/BODY/HTML

I've tried a few other php pages that work and they deliver the same, but
after 3 or 4 pages I am shown the following error:

500 Internal Server Error
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:195)
at com.evermind.server.http.HttpApplication.wo(JAX)
at com.evermind.server.http.HttpApplication.v6(JAX)
at com.evermind.server.http.HttpApplication.uh(JAX)
at com.evermind.server.http.ed.sp(JAX)
at com.evermind.server.http.ed.so(JAX)
at com.evermind.util.f.run(JAX)

I changed back to the CGIServlet but it came up with the same error, even
after rebooting.

If anyone has PHP running, could they point out what I have missed or done
wrong?

Thanks for your time,
Tim.




Tim Squires

It's not what you know, it's who you tell.







RE: PHP

2000-03-24 Thread SnowWolf Wagner

I had to goto www.php.net and download the php library and install it. It now
works fine except I am having a problem creating a socket under it.

SnowWolf Wagner

-Original Message-
From: =?utf-8?Q?Mikael_Andr=C3=A9asson?= [EMAIL PROTECTED] at Internet
Sent: Friday, March 24, 2000 1:23 PM
To: Orion-Interest [EMAIL PROTECTED] at Internet
Subject: PHP


The Orion-server is supposed to be able to run PHP-script isn't it? Well, I
can't seem to enable the CGIServlet that is mapped to handle PHP. Anyone
done this? What to do?

Grateful for replies.

/Mikael AndrAcasson




Re: PHP

2000-03-24 Thread Joe Walnes


The Orion-server is supposed to be able to run PHP-script isn't it? Well, I
can't seem to enable the CGIServlet that is mapped to handle PHP. Anyone
done this? What to do?


Repeat post.

-Joe Walnes

---
Date: Tue, 22 Feb 2000 10:46:14 +
To: Orion-Interest [EMAIL PROTECTED]
From: Joe Walnes [EMAIL PROTECTED]
Subject: Re: CGI, PHP, etc...

 Has anyone successfully managed to get PHP workingwith Orion?  Their is some
 mention of "com.evermind.server.http.CGIServlet", but that doesn't seem to
 come with the Orion package, and the evermind site is in German - or
 something - and I can't find the classes. (I only speak english!:p)

The CGI Servlet is a wrapper to a fork a native CGI. If you install PHP as 
a CGI and ensure the php executable is in your PATH before starting orion, 
it should work.

Briefly, Orion has the following Servlet called php setup:

servlet auto-reload="false"
 servlet-namephp/servlet-name
 servlet-classcom.evermind.server.http.CGIServlet/servlet-class
 init-param
 param-nameinterpreter/param-name
 param-valuephp/param-value
 /init-param
/servlet

This calls the CGIServlet telling it to use 'php' as the interpreter for 
the page. This param-value can easily be switched for any other 
interpreter such as Python, Perl, Bash, Cold-Fusion, Q-Basic(!) etc. If the 
executable is not in the PATH environment variable, use the full path to 
the interpreter in the param-value.

A mapping is then set to map all files that end in .php to the php servlet.

servlet-mapping
 servlet-namephp/servlet-name
         url-pattern/*.php/url-pattern
/servlet-mapping

That's it really.

On another note, the PHP4 beta's 3 and 4 contain some Java mappings which 
allow java objects to be used directly in php. On top of that, a servlet 
wrapper has evolved allowing PHP to be invoked from a servlet without 
having to start a new process each time and have persistent resources (such 
as db connections and session variables) - greatly improving performance. 
Have a look in /ext/java/ and /sapi/servlet/ of the PHP distribution for 
information on this.

-Joe Walnes








Re: CGI, PHP, etc...

2000-02-22 Thread Joe Walnes


Has anyone successfully managed to get PHP workingwith Orion?  Their is some
mention of "com.evermind.server.http.CGIServlet", but that doesn't seem to
come with the Orion package, and the evermind site is in German - or
something - and I can't find the classes. (I only speak english!:p)

The CGI Servlet is a wrapper to a fork a native CGI. If you install PHP as 
a CGI and ensure the php executable is in your PATH before starting orion, 
it should work.

Briefly, Orion has the following Servlet called php setup:

servlet auto-reload="false"
 servlet-namephp/servlet-name
 servlet-classcom.evermind.server.http.CGIServlet/servlet-class
 init-param
 param-nameinterpreter/param-name
 param-valuephp/param-value
 /init-param
/servlet

This calls the CGIServlet telling it to use 'php' as the interpreter for 
the page. This param-value can easily be switched for any other 
interpreter such as Python, Perl, Bash, Cold-Fusion, Q-Basic(!) etc. If the 
executable is not in the PATH environment variable, use the full path to 
the interpreter in the param-value.

A mapping is then set to map all files that end in .php to the php servlet.

servlet-mapping
 servlet-namephp/servlet-name
         url-pattern/*.php/url-pattern
/servlet-mapping

That's it really.

On another note, the PHP4 beta's 3 and 4 contain some Java mappings which 
allow java objects to be used directly in php. On top of that, a servlet 
wrapper has evolved allowing PHP to be invoked from a servlet without 
having to start a new process each time and have persistent resources (such 
as db connections and session variables) - greatly improving performance. 
Have a look in /ext/java/ and /sapi/servlet/ of the PHP distribution for 
information on this.

-Joe Walnes





CGI, PHP, etc...

2000-02-21 Thread Jeremy Pierson

Has anyone successfully managed to get PHP workingwith Orion?  Their is some
mention of "com.evermind.server.http.CGIServlet", but that doesn't seem to
come with the Orion package, and the evermind site is in German - or
something - and I can't find the classes. (I only speak english!:p)

What classes are available for a CGI servlet, and how do we obtain them?

Thanks,
Jeremy