News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

ProDevTips.com:
Extending PHP Doctrine Record - Check Box Groups
August 12, 2008 @ 13:26:36

In the third part of the series dealing with using Doctrine in your PHP applications, ProDevTips has this third part looking at a method for extending the tool's current functionality.

I simply knew we would need the extension capability that the Mdl class allows for sooner or later, I didn't expect it to be this soon though. The main problem here is saving a many to many relationship straight to the database from the $_POST array, to do that we can extend Doctrine Record with a new function I have named fromArrayExt which adds something extra to the normal fromArray method.

He shows how to extend the classes to create custom handlers for a grouping of checkboxes. The new code automatically handles their submitted values and pushes them directly into the database (with a simple save() call).

0 comments voice your opinion now!
doctrine record tutorial checkbox extend group



DynamicWbePages.de:
New PHP Statistics
February 05, 2007 @ 08:49:00

DynamicWebPages.de has posted their new statistics for PHP usage in the community for this past month:

After the small decrease in the last month, PHP made it back up easily. For the first time since April 2006, the 20 million mark on the number of domains has been passed. In contrast to the previous month that means a jump of nearly 800,000 domains. The number of IP addresses, on which PHP is installed, also has numbers worth checking out. With 1,332,514 IP addresses on record, this month's numbers are the highest conditions since September 2004.

You can check out the graph and the statistics for the last year in their statistics page of their site.

0 comments voice your opinion now!
statistics february domain ipaddress install record increase statistics february domain ipaddress install record increase


The Bakery:
Checking for duplicate records (unique record)
January 23, 2007 @ 15:33:00

On The Bakery, there's a new expanded tutorial (from this) that talks about how to check for duplicate records in your CakePHP model.

[Here's how to] validate a form field (such as a user name field), both in add and edit form and make sure that the selected user name does not already exist in the database [via a] function repeated only once (in app/app_model.php).

The example model they give defines an isUnique method that essentially runs an automatic check (a count() call) on the table to see if the given information exists. The example Model, View, and Controller are all given.

0 comments voice your opinion now!
unique record cakephp model form information count database unique record cakephp model form information count database


Inside Open Source:
Viewing Large Record Sets in PHPMyAdmin
January 15, 2007 @ 09:47:00

From the Inside Open Source blog (from APress) there comes a helpful tip for those working with Firefox and PHPMyAdmin on a lower resolution screen:

I'm currently working on an e-commerce project involving a relatively small number of database tables. However the clients table consists of 19 fields, making for difficult data review and debugging within PHPMyAdmin, even at 1280Ã-768 resolution.

The answer is simple, at least if you're using Firefox. Firefox offers three hotkeys for changing the text size, and resultingly, the amount of text you can see on one screen.

The keys for this easy little fix use the Control key and plus (larger), minus (smaller), and zero (return to default size).

1 comment voice your opinion now!
phpmyadmin firefox text size record set resolution phpmyadmin firefox text size record set resolution


Ilia Alshanetsky's Blog:
PHP Release Bonanza
August 18, 2006 @ 05:51:50

Following up on yesterday's double release of PHP 4.4.4 and PHP 5.1.5, Ilia Alshanetsky has posted a few more details about the releases and about the release of PHP 5.2.0RC2.

I think we've set a new PHP release record today, 3 releases in one day, PHP 5.1.5, 4.4.4 and 5.2.0RC2. The first two are aimed at addressing a series of security faults that were discovered in stable branches.

The good thing is that the issues found are mostly local exploits, so upgrading should definitely be a priority to shared hosting providers or multi-user PHP systems. That said, I would still recommend that all users of PHP consider upgrading their installs to the relevant releases. For information about the exploits themselves go to php.net

He links to the downloads of these two new versions and includes more about the latest release candidate for HPP 5.2.0 - RC2. They're shooting for a final release of 5.2.0 sometime in September and asks that anyone and everyone out there help to test the code on their systems to ensure a faster, cleaner result when the final code comes around.

0 comments voice your opinion now!
release bonanza record php5.2.0 php4.4.4 php5.1.2 candidate release bonanza record php5.2.0 php4.4.4 php5.1.2 candidate


Jim Plush's Blog:
I'm Officially a Baker with CakePHP
June 25, 2006 @ 16:39:38

Jim Plush talks in his latest blog entry about being a "baker" with CakePHP, detailing some of his first forays into the CakePHP framework.

I've always dreaded frameworks. Ususually it takes longer to learn a framework than to actually code the project in the first place. Over the years I've checked out various frameworks and all fell short when I tried to do something that needs to be done in the real world. There's always some tradeoff that needs to be made.

Now Zend Framework will no doubt be successfull and most likely in a year from now should have a pretty good feature set but for today it looks like there is a king of the hill for PHP frameworks(for me anyway). CakePHP.

He talks about some of the major advantages that he sees for the project, including its documentation, built-in pagination support, and Active Record functionality. There was an issue with the last of them that he noticed as his code got a bit more complex - performance issues with the Active Record implementation. Outside of that, though, he only found goodness inside of this cake.

0 comments voice your opinion now!
baker cakephp framework initial mvc pagination active record baker cakephp framework initial mvc pagination active record



Community Events









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


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

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