I’ve updated my “parameterdemo” to include a couple PHP pages. The latest trunk (0.8.1-dev) now supports PHP through the use of Quercus. To enable it simply set a context parameter in your web.xml and include the quercus and resin-utils jars in your WEB-INF/lib. See the zip file for a complete example (eclipse + ant).
Once you deploy the war, go to these urls to test (update your port to match your servers setting):
PHP example getting value from Red5 application:Â
<a href="http://localhost/parameterdemo/getparam.php">http://localhost/parameterdemo/getparam.php</a>
Same example with debug output:Â
<a href="http://localhost/parameterdemo/getparam.php?debug=true">http://localhost/parameterdemo/getparam.php?debug=true</a>
Java servlet example:Â
<a href="http://localhost/parameterdemo/myservlet">http://localhost/parameterdemo/myservlet</a>
The web.xml entry must look like so:
<context-param> <param-name>enable-php</param-name> <param-value>true</param-value> </context-param>
Note: You dont have to install Resin to use Quercus, simply download one of the wars on this page: http://quercus.caucho.com/ and grab the libraries from WEB-INF/lib
Tags: bean, Java, parameter, PHP, Red5, servlet
[...] more from the original source: Paul Gregoire's Blog » Blog Archive » PHP support in Red5 Posted in PHP | Tags: a-context-parameter, and-include, context-parameter, latest-trunk, [...]
VERY nice. Makes me excited. As I stated at the flash on tap, Java is not my preferred language.
[...] more:
[...] See original here: Paul Gregoire's Blog » Blog Archive » PHP support in Red5 [...]
[...] This post was Twitted by geraudschmit – Real-url.org [...]
im using red5, i want to streaming tv tunner and use red5.. but the sound is nothing.. what should i do?
thanks
VERY nice. Makes me excited. As I stated at the flash on tap, Java is not my preferred language.
I was looked for the example of red5 & php for long time, thank you much!