News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Matthew Turland's Blog:
EAV Modeling - Square Peg in a Round Hole?
July 25, 2008 @ 11:14:15

Matthew Turland has posted about a topic that was the subject of a recent cover story in php|architect magazine - EAV modeling.

The mental image that came to me when reading about this approach to data modeling was taking the traditional relational table and turning it on its head. [...] EAV actually has to circumvent, work around, or reimplement features that most mainstream database servers today provide "for free" to the traditional relational counterparts of EAV in order to get equal functionality.

He talks about features the structure has (including row-level referential integrity and schema metadata) and points out some of the other document-focused database systems like Lucene and CouchDB.

Check out the story in the June 2008 issue of php|architect for that cover story from Carl Welch.

0 comments voice your opinion now!
eav modeling document based database storage system



Havard Eide's Blog:
SplObjectStorage
July 23, 2008 @ 08:47:44

Havard Eide has a recent post to his blog that looks at a part of the Standard PHP Library (SPL) that can be used with objects to store them for later use - SplObjectStorage.

In this post I will look at SplObjectStorage: a container that allows to store objects uniquely without the need to compare them one by one.

He lets the code to most of the talking, showing how to do the standard operations for a data store - adding objects (both unique and the same), updating objects in the store, checking to see if an object is already added and removing an object from storage.

0 comments voice your opinion now!
splobjectstorage add unique update check data storage object remove


Vinu Thomas' Blog:
MemProxy 0.1 - Memcache Proxy Server in PHP
June 25, 2008 @ 11:13:27

Vinu Thomas points out a new "server" project that's been created to aid in caching for your app - MemProxy.

A pretty cool project in PHP - Memproxy is a caching proxy "server" that uses memcached for storing the cache. This project uses PHP scripts to handle caching using memcache.

The server uses memcached to store the information and automatically manages things like TTL, custom headers and is "application agnostic" all wrapped up in a small codebase with minimal dependencies.

0 comments voice your opinion now!
server proxy project memcached storage ttl header custom


Hasin Hayder's Blog:
Facebook data storage api can really be the replacement of memcache
April 09, 2008 @ 13:58:22

Hasin Hayder has proposed an interesting replacement for the usual caching mechanism - using the Facebook data storage API to cache copies of pages/data/etc.

Why not! All you need is a fast-n-furious caching storage for your Facebook application which stores values against a key, same like a hash table. Facebook data storage API does the same for you. using the batch API in Facebook rest client you can seriously think it as an alternative of memcache.

He shows the simple process for making the object (manually in a preexisting application), inserting data into the object through the API they provide and how to pull that data back out.

0 comments voice your opinion now!
facebook storage api replace memcache object


Jim Wynia's Blog:
WebDAV, PHP and You
December 14, 2007 @ 11:13:00

Jim Wynia has posted some thoughts about a recent announcement of the development of a WebDAV library for PHP to his blog today:

However, over the past few years, WebDAV has started gaining traction as the underlying protocol for Subversion repositories over the web and in several other places. That makes this story about a new PHP library for working with WebDAV interesting.

He notes that he's moved a lot of his file storage to Amazon's s3 service and having this new PHP library would make it even easier for him to get at his content directly from his applications.

0 comments voice your opinion now!
webdav library application amazon s3 storage file webdav library application amazon s3 storage file


Davey Shafik's Blog:
PHP Streams Rock my World!
September 12, 2007 @ 14:14:12

Davey Shafik has gotten more than a little excited by the streams functionality in his latest blog post:

PHP streams are absolutely amazing. As mentioned by Elizabeth Smith (a great read if you don't know how to use streams) PHP streams are super powerful. Streams is something that is (to my knowledge) unique to PHP. The closest thing I've seen to it, is Linux's FUSE "user space" (i.e. not kernel module) file systems.

He shows an example of a stream in action and suggests an interface he'd like to see - an automatic connection to the Amazon S3 storage.

0 comments voice your opinion now!
streams filesystem amazon s3 storage readfile streams filesystem amazon s3 storage readfile


Evert Pot's Blog:
PHP Arrays vs. Objects
August 17, 2007 @ 10:27:00

Wanting to test out a new way of doing things, Evert Pot decided to write up some tests using a Value Object style of data storage versus just in arrays:

In a lot of cases arrays are used in PHP to store object-like information, like the results of a database query. I do this a lot too, but I kind of want to change things around to make use of VO's. I feel this makes a lot more sense, since most of the application I build are heavy OOP anyway, and I get all the added OOP benefits, like type-hinting, inheritance.. well, you know the deal.

In his tests he creates an array of data, a value block of three "properties", looped 1000 times) and a block of three actual properties on an object. Between each, he's using the XDebug memory usage functions to check to see which uses less resources.

Overall, there's really not that much of a difference between using either of them. So, basically, it's up to you which storage method is the simplest for you to use.

0 comments voice your opinion now!
array object memoery usage property storage method array object memoery usage property storage method


Zend Developer Zone:
The Storage Medium
December 04, 2006 @ 14:48:00

The Zend Developer Zone is continuing on from previous parts of a series in this new tutorial posted today - part three of the "Ajax Chat Tutorial" tutorial series.

As our chat application gathers pace we return to the server side of the application. At this point we have setup the Zend Framework with an IndexController class to handle server requests. When we receive a new chat message from the user, we will need to store it. For this tutorial I've selected a file based solution using XML.

They start with a look at the storage method - XML on the backend, pushed into a MySQL database (along with the message format). There's a quick refresher on SimpleXML before they show how to integrate this storage method into the current system.

0 comments voice your opinion now!
tutorial ajax chat storage medium xml mysql database format tutorial ajax chat storage medium xml mysql database format


Application Development Trends:
New LAMP Layer FileMaker API for PHP?
August 02, 2006 @ 06:42:26

According to this new article from Application Development Trends today, a collaboration has been formed between FileMaker users familiar with PHP and Zend to create a new kind of API to the FileMaker system.

FileMaker's senior product manager Kevin Nathanson says that FileMaker is addressing two audiences with the API beta: existing users of the company's database software, and PHP developers looking for simpler database software than DBMSs such as MySQL.

In fact, developers have been interested in connecting this everyman database software with the popular embedded scripting language for some time, and FileMaker's PHP API has a predecessor: FX.php, an independently developed, open-source PHP class designed to pull data from FileMaker Pro using the XML output by Server Advanced for FileMaker 7 or the Web Companion for FileMaker 5 and 6.

Developers are reminded that the library is still in a beta format and that constant work is being done to enhance its functionality. You can get complete information about the library here.

0 comments voice your opinion now!
filemaker api storage simple backend zend filemaker api storage simple backend zend


Sara Goleman's Blog:
What the heck is TSRMLS_CC anyway?
June 02, 2006 @ 05:56:55

Sara Goleman, a definite specialist in the internals of PHP, has posted This new item on her blog today with details on a construct that's a bit mysterious, but pervasive in the code - TSRMLS_CC.

Those who know what this is typically answer questions from those who don't with "Don't worry about what it is, just use it here here here and here. And if the compiler says you're missing a tsrm_ls, put it there too..." This isn't laziness on the part of the person answering the question (okay, maybe it is a little bit), it's just that the engine goes so far out of its way to simplify what this magic values does, that there's no profit in a new extension developer knowing the mechanics of it. The information is like a cow's opinion, it doesn't matter, it's Moo.

Since I love to listen to myself rattle on about pointless topics (and I havn't blogged much this month), I thought I'd cover this topic and see if anyone manages to stay awake through it.

In the remainder of the post, she breaks it down into its components and explains what each means. At its base level, it helps manage the differences between code using the "Zend Thread Safety" functionality and the code that's not. To illustrate the point, she provides two examples - one with globals and one with "non-global globals". Of course, this functionality isn't any good if you can't get to the constructs you need, so she includes an example macro to accomplish just that.

0 comments voice your opinion now!
php source tsrmls_cc thread resource zend local storage php source tsrmls_cc thread resource zend local storage



Community Events











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


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

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