msgbartop
Various ramblings-on, mostly about Red5
msgbarbottom

06 Jun 09 PHP support in Red5

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: , , , , ,



Reader's Comments

  1. |

    […] 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, […]

  2. |

    VERY nice. Makes me excited. As I stated at the flash on tap, Java is not my preferred language.

  3. |

    […] more:

  4. |

    […] See original here: Paul Gregoire's Blog » Blog Archive » PHP support in Red5 […]

  5. |

    […] This post was Twitted by geraudschmit – Real-url.org […]

  6. |

    im using red5, i want to streaming tv tunner and use red5.. but the sound is nothing.. what should i do?
    thanks

  7. |

    VERY nice. Makes me excited. As I stated at the flash on tap, Java is not my preferred language.

  8. |

    I was looked for the example of red5 & php for long time, thank you much!



Leave a Comment


Fatal error: Call to undefined function akismet_counter() in C:\xampp\htdocs\paulgregoireblog\wp-content\themes\googlechrome\footer.php on line 9