Hi Alexandre, Sorry, I still don't understand one point. What are you expecting ${RESIN} to be? Are you setting this as an environment variable or is that something you think the container should set?
Aside from that point, relative include paths are interpreted relative to the root directory of the webapp, so that might help in this particular case. For example, if your include path was: include_path=WEB-INF/php This would pick up all the php files in your webapps WEB-INF/php directory. Hope that helps, Emil On Thu, Aug 26, 2010 at 07:29:11PM -0400, Alexandre Bertails wrote: > 2010/8/26 Emil Ong <e...@caucho.com>: > > Hi, > > > > I don't think we support the ${RESIN} variable in php.ini at the moment, > > but out of curiosity, why do you need the Resin root if you're using > > Jetty? > > I'm trying to write a Java/Scala wrapper for some existing code in PHP. > > The first step is to make everything to work without modification in > the existing code. There are plenty of require_once-like functions > spread all over the code and I need to modify include_path because of > them. > > I have found some examples on the web (basically in the forums) where > you can set variables directly in "web.xml" but none of them worked > for me, I don't know why. If you have an example using ${RESIN}, > that's of course a perfect workaround. > > Alexandre Bertails, W3C Systems, Team. > > > > > Thanks, > > Emil > > > > On Wed, Aug 25, 2010 at 07:57:48PM -0400, Alexandre Bertails wrote: > >> Hi all, > >> > >> I have this worky partial web.xml: > >> [[ > >> <servlet> > >> <servlet-name>Quercus Servlet</servlet-name> > >> > >> <servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class> > >> <init-param> > >> <param-name>ini-file</param-name> > >> <param-value>WEB-INF/php.ini</param-value> > >> </init-param> > >> </servlet> > >> ]] > >> > >> and this WEB-INF/php.ini: > >> [[ > >> include_path = ".:${RESIN}/webapps/WEB-INF/php" > >> ]] > >> > >> The include_path value is set as expected. > >> > >> The question is: how can I make Quercus to interpret ${RESIN}? > >> > >> (I'm using Quercus 4.0.10 and Jetty.) > >> > >> Alexandre Bertails, W3C Systems Team. > >> > >> > >> _______________________________________________ > >> resin-interest mailing list > >> resin-interest@caucho.com > >> http://maillist.caucho.com/mailman/listinfo/resin-interest > > > > > > _______________________________________________ > > resin-interest mailing list > > resin-interest@caucho.com > > http://maillist.caucho.com/mailman/listinfo/resin-interest > > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest