 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Oracle Technology Network: New Features in PHP 5.4
by Chris Cornutt April 12, 2012 @ 09:54:39
On the Oracle Technology Network today there's a new article from Rasmus Lerdorf about the current release of the language (PHP 5.4) and what he sees as the future for PHP.
Almost exactly eight years ago I wrote an article for the Oracle Technology Network called, "Do You PHP?". In that article, I talked about PHP's stubborn, function-over-form approach to solving the "Web problem" and the fight to keep things simple. We were getting close to releasing PHP 5.0 at the time. Now here we are almost a decade later with a shiny new PHP 5.4.0 release, and while much has happened during that time, there are also many things that haven't changed at all.
The first talks about what's the same - the ecosystem surrounding the language and the strength of the LAMP stack that PHP helped to "found". He mentions some of the up-and-comers that are alternatives to this traditional setup and some of the extensions that have been added to improve PHP's functionality (DateTime, PDO, JSON support). He talks about other improvements in the language including:
- Better memory management
- Traits
- Short Array Syntax
- Closure binding
- Built-in webserver
- Native session handler interface
- Removal of register_globals, magic_quotes and safe_mode
He briefly looks ahead at "what's next" for the language and points to the "internals" mailing list and the PHP wiki
voice your opinion now!
features language future oracle
Chris Jones' Blog: Building PHP 5.3 with Oracle HTTP Server 11g
by Chris Cornutt March 24, 2011 @ 13:04:07
The latest post on Chris Jones's blog walks you through the process, step-by-step, of how to build PHP 5.3 with support for the Oracle HTTP server included with the 11g version of the database.
I get the impression that not a lot of people in the PHP community are using Itanium. There are enough warnings during PHP compilation that would make me extremely uncomfortable using it for production applications. A PHP on Itanium installation bug that I logged long ago has not been patched, indicating to me that not many PHP people are investing time in the platform. I can't recommend using Itanium platform for PHP. Anyway, I had a need and here are the steps for posterity.
It's a pretty simple process (if you're used to compiling your own software):
- Checks the OS and compiler to ensure needed tools are installed
- Set up the Oracle environment variables
- Set up the PHP environment
- Copy over the needed header files
- Extract PHP and modify its configure slightly
- make distclean and then configure
voice your opinion now!
oracle server http 11g tutorial install
Chris Jones' Blog: More on PHP and Oracle 11gR2 Improvements to Client Result Caching
by Chris Cornutt March 04, 2011 @ 09:56:33
Chris Jones has posted more information to his Oracle blog about the caching and other improvements that come along with the Oracle 11gR2 release that can be used in PHP applications.
Oracle 11.2 brought several improvements to Client Result Caching. CRC is way for the results of queries to be cached in the database client process for reuse. [...] PHP OCI8 as a "client" of the database can use CRC. The cache is per-process, so plan carefully before caching large data sets. Tables that are candidates for caching are look-up tables where the network transfer cost dominates.
Like many of the other server-side tools Oracle has to offer, it's pretty simple to enable this caching. Before you had to add a custom bit to your query to tell it to enable the caching. Now it's as simple as setting it up on the CREATE or ALTER for the table - nothing extra for the developer to do.
voice your opinion now!
oracle caching client result create alter
Chris Jones' Blog: PHP OCI8 and Oracle 11g DRCP Connection Pooling in Pictures
by Chris Cornutt February 22, 2011 @ 10:44:46
Chris Jones has posted some "pictures" of the performance that an Oracle database sees when it uses the connection pooling versus the normal connect/allocate sort of connection with the Oracle OCI8 driver for PHP. As you can see, the differences in memory consumption are huge.
Here is a screen shot from a PHP OCI8 connection pooling demo that I like to run. It graphically shows how little database host memory is needed when using DRCP connection pooling with Oracle Database 11g. Migrating to DRCP can be as simple as starting the pool and changing the connection string in your PHP application.
He also describes the differences between the pooled and non-pooled connections (to the developer it's as easy as putting ":pooled" in the connect string) in his graphs, and notes that using the pooling doesn't just have to be for large site - smaller sites can benefit too.
voice your opinion now!
oci8 oracle connection pooling performance graph result
|
Community Events
Don't see your event here? Let us know!
|