Broadcast on Broadcast off
The Documentation for Project Zero has moved. Please update your bookmarks to: http://www.projectzero.org/documentation/
Table of
Contents...
Hide
 

Libraries and dependency resolution

PHP, in Project Zero, supports the standard include and require functionality. The include, require, include_once, and require_once API all behave as you'd expect. You can modify the include path by editing the php.ini file. In addition to these created includes, the Project Zero system can modify the include path at runtime to include scripts contributed by Ivy dependencies.

Zero applications and Ivy dependencies both contribute PHP scripts in the same way. To do this, simply add your PHP files to the app/scripts directory. For example, you might have a PHP application with the zero.data.php dependency in config/ivy.xml. If you were to browse the zero.data.php dependency in the local repository, you would see an app/scripts directory that contained a file named JSONResultHandler.php. The code below demonstrates how to include this file.

<?php

include "JSONResultHandler.php";

?>

Zero applications can also include PHP scripts from their own app/scripts directory. Any scripts placed there are protected in that they cannot be downloaded directly from the running application. Applications should place any scripts containing sensitive information in this location.

r8 - 29 Oct 2007 - 16:17:55 - madhu
Syndicate this site RSS ATOM
Copyright 2007 © IBM Corporation | Privacy | Terms of Use | About this site