php backend for portlets