Fatal error: Call to undefined function preg_match() in /usr/local/share/pear/PEAR/Frontend/CLI.php on line 57
/usr/local/bin/pecl remove the '-n'
exec $PHP -C -n -q $INCARG -> exec $PHP -C -q $INCARG
Tíz technológia amit mindenképp ismerned kell
1, OOP PHP
2, FreeBSD
3, SQL (MySQL, Postgresql)
4, Memcached
5, ZFS
6, HTTP (apache, lightthpd)
7, Smarty
9, PEAR
10, SVN, (git, cvs)
how to pear mdb2 statement prepare, execute, free
mdb2 = new &MDB2::factory($dsn, $options);
$sql = 'SELECT * FROM schema.table WHERE valueinteger = ? AND valuetext = ? AND valueboolean = ?';
$types = array('integer', 'text', 'boolean');
$statement = $mdb2->prepare($sql, $types);
$data = array('integer', 'text', true);
$resultset = $statement->execute($data);
$statement->free();
while ($rows = $resultset->fetchRow(MDB2_FETCHMODE_ASSOC)) {
//todo
}
pear HTML_TagCloud error sorting tags wrong order
error: pear HTML_TagCloud error sorting tags wrong order
solution: set your locale before use html_tagcloud like
setlocale(LC_ALL, 'en_US.UTF-8');
remember, set back locale to right value, after use html_tagcloud if is necessary
Call to undefined method MDB2_Error::execute()
Error: Call to undefined method MDB2_Error::execute()
Solution: sql query check (missing table, missing column, missing data?)
Call to undefined method MDB2::prepare()
Call to undefined method MDB2::prepare()
Fixing solution: pear install -a -f MDB2_Driver_pgsql