phpgroupware-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[phpGroupWare-developers] Tuning: compability and speed


From: Sigurd Nes
Subject: [phpGroupWare-developers] Tuning: compability and speed
Date: Thu, 22 Mar 2007 15:09:57 +0100 (CET)

Hi all,

1)
The utf-encoding is a real pain for IE.
Half of the times IE won't recognise the charset given in the meta-tag - 
causing the page to freeze when redirecting.
A sollution is to set "AddDefaultCharset utf-8" in httpd.conf (not sure what to 
do with non-apache-serves).

I propose a configurable charset - either "iso-8859-1" or "utf-8" to choose 
from when installing the system - given by a variable like:
$GLOBALS['phpgw_info']['server']['charset']

2)
The db-abstraction (referred to as phplib) from .16 is faster (about 34%) than 
adodb used in head.

I propose a configurable variable 
$GLOBALS['phpgw_info']['server']['db_abstraction'] in header.inc.php

There are some minor changes to make the current code  compatibe with both 
adodb and phplib - as:
$GLOBALS['phpgw']->db->resultSet->fetchRow();
replaced with 
$GLOBALS['phpgw']->db->Record

and

$GLOBALS['phpgw']->db->resultSet->fields('fieldname')
replaced with
$GLOBALS['phpgw']->db->Record['fieldname']

the phplib could reside in its one catalog (as /phpgwapi/inc/phplib)

I have already modified setup and header.inc.php.template on my test-server.

To test both the charset and the db-switch - try the code found in 
http://cvs.savannah.nongnu.org/viewcvs/fmsystem/

How about it?

Regards

Sigurd

reply via email to

[Prev in Thread] Current Thread [Next in Thread]