Hi,
I´m using include_path in this way, it´s working fine.
<?php
require_once("rpcl/rpcl.inc.php");
// my includes
require_once("config.php"); // my config.php includes $vPathlib, see it.
set_include_path(get_include_path() . PATH_SEPARATOR . $vPathlib);
// In some cases i have to omit get_include_path() becouse it´s became duplicate with php instalation
//set_include_path( PATH_SEPARATOR . $vPathlib);
require_once("dbModulo.php");
require_once("dbModulo.php");
require_once("funcoes.php");
use_unit("comctrls.inc.php");
use_unit("forms.inc.php");
.
.
.
Note that $vPathlib is a included variable that stays in my config.php
Here is my config.php
<?php
// PostgreSql database host
$DbHost = 'localhost'; // pode ser localhost ou ip
// porta do banco de dados
$DbPort = '5432'; // postgres8; mysql; ...
// PostgreSql database username
$DbUser = 'xxxx';
// PostgreSql database password
$DbPass = 'xxxxxxxx';
// database name
$DbName = 'DATABASENAME';
// database schema
$DbSchema = 'public'; // public = default
// database type
$DbType = 'postgres'; // postgres; mysql; mysqli; oracle ...
// Idioma do site
$DbIdioma = 'Portuguese (Brazil)'; // Sample: 'Spanish (Traditional Sort)' or 'Portuguese (Brazil)' or 'Spanish (Bolivia)' or 'English' or 'Afrikaans' or
// enviar e-mail / send e-mail
$DbSendMail = 'false'; // false // true
// encoding of database
$DbEncoding = 'iso-8859-1'; // database encoding utf-8 or iso-8859-1 or ....
// encoding of interface
$IntEncoding = 'iso-8859-1'; // interface encoding or utf-8 or iso-8859-1 or ....
// time zone - ini_set('date.timezone', 'America/Los_Angeles');
$vTimezone = 'America/Sao_Paulo'; // see
// set locale for date
//
// path para bibliotacas - please, do not change - favor nao alterar
$vPathlib = './rpcl/Zend/framework/library' .PATH_SEPARATOR . '/rpcl/PEAR';
.
.
Enjoy and share
Eduardo
I tried everything I can think of. I can't get to work with Zend components. I copied entire folder to rpcl. I copied just Zend folder to root or htdocs folder.
At first I get this message:
Warning: require_once(Zend/Session/Abstract.php): failed to open stream: No such file or directory in E:\Program Files\Embarcadero\HTML5 Builder\5.0\apache\htdocs\rpcl\Zend\framework\library\Zend\Session.php on line 28 Fatal error: require_once(): Failed opening required 'Zend/Session/Abstract.php' (include_path='.;%RPCLPATH%;%RPCLPATH%rpcl\PEAR;%RPCLPATH%rpcl\Zend\framework\library') in E:\Program Files\Embarcadero\HTML5 Builder\5.0\apache\htdocs\rpcl\Zend\framework\library\Zend\Session.php on line 28
I could not find any info on Zend deployment in H5B docs.
Connect with Us