• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

php as a servlet

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I was trying to run php as a servlet in websphere application server. But hard luck... i am just not able to figure out how to go about it.... can anyone help me ?

rgds
Mahesh
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a Servlet is Java, PHP is not.

Mark
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In tomcat we have the CGI servlet that lets you run PERL cgi scripts, seems to me you should be able to use it to run PHP scripts.
Bill
 
mahesh narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry Mark for being vague about my question.What i meant was to ask whether i can integrate PHP into a Java Servlet environment. Though i could find some doc on googling, but it couldnt help me how to do tht in websphere application server.It would be really helpful if someone can provide me pointers on how to do it.

thanks
Mahesh
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can call Java Code from PHP - there is a Servlet SAPI module, which you can get if you look on PHP's site. Or you can use the Java Extension stuff (again, look on PHP's site) but that's very definitely at the alpha stage. Take this all with a pinch of salt though - Java is a far richer language than PHP, so you are bound to fine some horrible gotchas trying to use them in the same app.
 
mahesh narayan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Paul.

I have used Java Bridge to call java from Php. And is seems to work fine.

rgds
Mahesh
 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic