![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| cellog Thu May 24 04:07:49 2007 UTC Modified files: /pearweb/include pear-format-html.php Log: we use APC - Cache_Lite is completely unnecessary for static files # EXPERIMENTAL - please test http://cvs.php.net/viewvc.cgi/pearwe...&diff_format=u Index: pearweb/include/pear-format-html.php diff -u pearweb/include/pear-format-html.php:1.211 pearweb/include/pear-format-html.php:1.212 --- pearweb/include/pear-format-html.php:1.211 Thu May 17 20:34:30 2007 +++ pearweb/include/pear-format-html.php Thu May 24 04:07:49 2007 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.211 2007/05/17 20:34:30 wiesemann Exp $ + $Id: pear-format-html.php,v 1.212 2007/05/24 04:07:49 cellog Exp $ */ PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'error_handler'); @@ -29,11 +29,15 @@ return $extra_styles; } -// needed for error reporting handling in startup -$GLOBALS['_NODB'] = true; -require_once 'pear-cache.php'; -// $dbh is initialized in pear-cache -$GLOBALS['_NODB'] = false; +include_once 'DB.php'; + +if (empty($dbh)) { + $options = array( + 'persistent' => false, + 'portability' => DB_PORTABILITY_ALL, + ); + $dbh =& DB::connect(PEAR_DATABASE_DSN, $options); +} $self = htmlspecialchars($_SERVER['PHP_SELF']); | |||
| Featured Websites | ||||
|
![]() |
| Tags: cvs, include, pearformathtmlphp, pearweb |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pearweb /include pear-rest.php | Greg Beaver | Pear | 0 | 05-27-2007 7:46 PM |
| cvs: pearweb /include pear-rest.php | Greg Beaver | Pear | 0 | 05-27-2007 7:46 PM |
| cvs: pearweb /include pear-format-html.php | Mark Wiesemann | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pearweb /include pear-format-html.php | David Coallier | Pear | 0 | 05-20-2007 7:42 PM |
| Featured Websites | ||||
|