Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 02-15-2013, 12:32 PM
jgould jgould is offline
Junior Member
 
Join Date: Feb 2013
Posts: 4
Default Accessing php global variables from Java servlet

Hi, is it possible to get the value of a php global variable from a Java servlet?

Thanks.
Reply With Quote
  #2  
Old 02-15-2013, 03:22 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

You would execute a QuercusPage using the current Env context and use that Env context to lookup global variables, functions, and classes.

1. create a new Env object
2. pass it in to QuercusPage.execute(Env) or QuercusProgram.execute(Env)
3. call Env.getValue(String) to retrieve the global variable
Reply With Quote
Reply

Tags
global, java, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.