News Feed
Sections

News Archive


Community Events






Don't see your event here?
Let us know!


feed this:

Doug Brown's Blog:
Zend_Cache is Saving me Money!
0 comments :: posted Friday July 04, 2008 @ 07:55:01
voice your opinion now!

Doug Brown has posted a new entry to his blog about how the Zend_Cache component of the Zend Framework has saved him some money.

He and his site were taken offline by his own hosting company because of one little detail - the limit on usage for the shared server was 3% and his site was using 30%. Going through his logs, he found the culprit - a "too many connections" message from MySQL due to the number of requests.

I'll admit, I was in a huge hurry to get this project done, so I wasn't thinking about the long term effects. Needless to say, I wasn't caching my MySQL query results. I know, tisk tisk.

He added a new private method to his class (using Zend_Cache to store the date) and dropped the call into his controller to pulled the cached info whenever it needed it.

tagged with: zendcache zendframework hosting shared mysql connection usage cache


ThinkPHP Blog:
Using LDIF to simulate LDAP transactions with PHP
0 comments :: posted Tuesday July 01, 2008 @ 08:45:18
voice your opinion now!

On the ThinkPHP blog today, there's a new post from Stephanie Ehrling about simulating an LDAP connection and data request to PHP with LDIF.

An LDIF file is a simple text file that can contain those LDAP information, which can be separated into two groups. On the one hand, it can hold exported LDAP data in a text format. The other purpose of LDIF is to use it for importing data into an LDAP based system. So it can contain data to be imported or just commands that shall be processed. This is an important fact, because that opens the door to an interesting workaround.

This workaround allows you to import large amounts of data quickly and easy by dumping it into the server via a simple PHP script. The code is included in the post, but you'll need to have the binaries to get the LDIF and LDAP functionality working together.

tagged with: ldif simulate ldap connection data import binaries ldapmodify

Christopher Jones' Blog:
Oracle at PHPSC - Grupo de Usuarios de PHP do Estado de Santa Catarina
0 comments :: posted Wednesday June 18, 2008 @ 09:32:14
voice your opinion now!

Christopher Jones has a quick post with some information about a user group meeting happening in Brazil where the upcoming topic will cover the powerful combination of PHP and Oracle.

Elton Luís Minetto wrote to tell me that "PHPSC - a PHP user group of Santa Catarina in Brazil - is organizing an event dedicated to PHP that will take place at Chapeco on June 20." [...] He's presenting a session on PHP and Oracle, and will show some great results of using PHP's OCI8 with Oracle 11g connection pooling (DRCP).

The schedule for the event can be found here with details on which talks will be given when (including Elton's at 8am on the 21st.

tagged with: phpsc2008 conference brazil event oracle talk oci8 connection pooling

Christopher Jones' Blog:
PHP Connection Pooling Whitepaper with Benchmark Available
1 comment :: posted Friday April 25, 2008 @ 10:23:47
voice your opinion now!

Christopher Jones has pointed out a new whitepaper that's been published by oracle about the scalability the connection pooling affords for current versions of PHP.

The whitepaper talks about the changes in the PHP OCI8 1.3 extension, explains some of the concepts behind DRCP and FAN, and gives best practices and tuning tips. It includes a new PHP benchmark which shows up to 20,000 connections being handled by Oracle on commodity hardware using only 2G RAM.

The paper also talks about the FAN support that's built in - the ability for PHP to use the Oracle RAC cluster functionality to make for high availability (switching between nodes). The latest beta with all of this functionality in it can be grabbed from its page on the PECL site.

tagged with: connection pooling whitepaper benchmark rac cluster oracle

Christopher Jones' Blog:
PHP PECL OCI8 1.3.2 Beta Available
0 comments :: posted Friday April 18, 2008 @ 09:32:00
voice your opinion now!

Christopher Jones has posted an announcement about the latest release of the PECL OCI8 package (version 1.3.2 Beta) hitting the streets:

I've released PECL OCI8 1.3.2 Beta - the latest release of PHP's OCI8 extension with support for Connection Pooling and Fast Application Notification. The release is based on the current PHP 5.3 development branch.

He notes another change in this release - a "session release" bit of functionality persistent connections will do when nothing is referencing them anymore, mking them work a bit more like normal connections. Issues that could be caused by this can be corrected with a new setting (oci8.old_oci_close_semantics) in your php.ini.

tagged with: oracle oci8 pecl beta release connection pooling fast application notification

Christopher Jones' Blog:
Customer Interview on PHP & Oracle 11g Connection Pooling (DRCP) in Oracle
0 comments :: posted Thursday April 17, 2008 @ 07:58:16
voice your opinion now!

Christopher Jones has pointed out a new customer interview that was done covering PHP and the connection pooling in Oracle 11g for Oracle Magazine.

Oracle Magazine's May/June 2008 issue contains a "Developer Nation" article. In it, David Kelly interviews Levi Dixon from Community Connect about using PHP and Oracle.

The article references the Oracle/PHP "strange combination" that used to exist and how it's evolved into a vital, living part of Oracle's stack (like with the OCI8 extension).

tagged with: oracle interview connection pooling drcp magazine

Matthew Turland's Blog:
Interesting Bug in the HTTP Streams Wrapper
0 comments :: posted Monday April 14, 2008 @ 08:49:04
voice your opinion now!

Matthew Turland has come across an "interesting bug" in PHP's stream wrappers functionality - some strange 404 or 500 HTTP errors in one of his scripts.

I wrote a small script a while back that's gained a surprising amount of popularity thanks to a plug from the site that it posts to. [...] I learned that this [connection from the script] could be done with streams, I attempted to implement it in that fashion, but ran into strange issues where I would get 404 or 500-level HTTP errors rather than the response I was expected.

He eventually found the bug related to his problem (in the 5.2.x branch) but happily notes that it has been corrected and will be patched in the upcoming 5.3 (and 6) branches.

tagged with: bug streams wrapper issue 404 500 connection header contenttype

Christopher Jones' Blog:
Updated connection pooling in PHP's OCI8 extension
0 comments :: posted Friday February 01, 2008 @ 10:16:00
voice your opinion now!

In this new post to his Oracle blog, Christopher Jones mentions some updates he's made to the OCI8 extension for PHP:

I've merged connection pooling (DRCP) and Fast Application Notification (FAN) support to PHP 5.3's OCI8 extension. The PHP 5.3 OCI8 code is Beta - in fact, PHP 5.3 itself is still really "Development". (It would be handy to have problems reported before PHP 5.3 goes Production).

He also includes instructions on how to get this new version installed inside of the latest PHP 5.3 snapshot (http://snaps.php.net) to build the new support in.

tagged with: oci8 extension update connection pooling install instruction php5

Richard Heyes' Blog:
SMTP class rehash
0 comments :: posted Friday December 07, 2007 @ 12:56:00
voice your opinion now!

Richard Heyes has posted his STMP class for download (after some good testing):

With the help of a few anonymous people (thanks), I've rehashed the smtp class for PHP5 and made it available. It should be considered beater quality at the moment, so don't go using it for production code unless you like to live dangerously (Ooooh...).

He includes both a code example and a link to download the library.

tagged with: stmp class connection download php5 stmp class connection download php5

Felix Geisendorfer's Blog:
Enforce utf8 for multiple db connections
0 comments :: posted Monday November 12, 2007 @ 12:55:00
voice your opinion now!

Felix Geisendorfer has another quick CakePHP tip - an update from a previous tip for forcing utf8 connections on multiple databases:

This is just a quick update for Dessert #6 - MySql & UTF-8. I've been using the approach outlined in that old post pretty much until today, when I realized that it has two major flaws: It does not work when using multiple db connections (i.e. using load balancing or connecting to a 3rd party db), and it might interfere with other databases that don't need this utf8 thing to be set.

He includes some code (a quick 13 liner) to take care of this small issue. Check out the comments on the post for an even easier way too.

tagged with: caekphp framework multiple database connection utf8 encoding caekphp framework multiple database connection utf8 encoding


ajax conference mysql releases job PEAR book PHP5 zend security developer zendframework framework application example database package cakephp code release

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework