News Feed
Sections

News Archive


Community Events






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


feed this:

Eran Galperin's Blog:
Handling mail and mime in PHP using the Zend Framework
0 comments :: posted Friday July 18, 2008 @ 08:47:27
voice your opinion now!

On the Techfounder blog (from Eran Galperin) there's a quick tutorial about using the Zend_Mail component of the Zend Framework to send both normal, plain-text emails and ones with MIME attachments.

Using PHP's built in function (aptly named mail() ) is relatively straightforward - until you need slightly more advanced features, such as adding and encoding email headers or sending multiple mails efficiently. Fortunately, the Zend Framework comes with a very capable mail component called Zend_Mail.

He shows how to send a simple email, do something a bit more complex with a custom SMTP server, read messages from a remote POP3 email box and how to attach a binary file/message.

tagged with: zendframework email zendmail mime attachment pop3 read smtp custom


Stefan Priebsch's Blog:
Custom Coding Standards with PHP_CodeSniffer
0 comments :: posted Thursday July 03, 2008 @ 12:02:36
voice your opinion now!

Stefan Priebsch recently posted about his struggles with creating a custom coding started with the PHP_CodeSniffer package:

In CodeSniffer, a coding standard is basically represented by an empty class that extends PHP_CodeSniffer_Standards_CodingStandard. I could not get the CodeSniffer to find my coding standard, though, and found the documentation lacking about where to put it, how to name it, and how to refer to it in the --standard switch.

After an email to Greg Sherwood (developer of the package) Stefan figured out his issue and has shared the solution in this post (step by step).

tagged with: coding standard custom phpcodesniffer gregsherwood package

Vinu Thomas' Blog:
MemProxy 0.1 - Memcache Proxy Server in PHP
0 comments :: posted Wednesday June 25, 2008 @ 11:13:27
voice your opinion now!
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.

tagged with: server proxy project memcached storage ttl header custom

Debuggable Blog:
How to bend Cake's Modelfind() method to your needs
0 comments :: posted Monday June 23, 2008 @ 12:08:32
voice your opinion now!

New on the Debuggable blog, Tim Koschutzki has posted a method to get the fund() method in the CakePHP framework's models to bend to your will.

CakePHP allows you to use your own "find-types" for the Model::find() methodology. Those of your who are familiar with the find() method know that there are currently four types in the core: 'list', 'all', 'first' and 'count'. However, sometimes it is nice to specify your own type.

He shows an example of the end result - a find() call with a custom type that automagically gets translated correctly. His script overrides and enhances the usual find call in an extended object (extended from AppModel) that uses a switch/case statement to define the custom types and their find() search calls.

tagged with: cakephp framework find custom type model switch case

Rob Allen's Blog:
Zend Framework URLs without mod_rewrite
0 comments :: posted Wednesday June 04, 2008 @ 12:50:16
voice your opinion now!

Rob Allen has posted a new entry on getting a Zend Framework application to run correctly even though mod_rewrite (or ISAPI_Rewrite) isn't up and running.

Some of our Zend Framework applications have to run on IIS without ISAPI_Rewrite installed. In these cases we need urls of the form http://www.example.com/index.php?module=mod&controller=con&action=act. I couldn't get this to work out of the box with Zend Framework 1.5, so wrote my own router called App_Controller_Router_Route_RequestVars.

Most of the post is the code for the router (ready for you to cut and paste) but he's also included a usage example of it so you can easily update your bootstrap file to use it.

tagged with: zendframework url moderewrite isapirewrite router custom

Tony Bibbs' Blog:
Cutting Use of Zend_Log in Half
0 comments :: posted Friday May 30, 2008 @ 15:24:20
voice your opinion now!

Tony Bibbs has posted a mini-case study about how, at his work, they cut their use of the Zend_Log component of the Zend Framework in half:

As part of the framework we use at work, we borrow what we feel are the best components out there and logging is a key part of that. Logging should be simple to setup, easy to use and should minimize work on the developer. After all, you are going to do a lot of logging, right?

He shows how, with a few changes to how they log (creation of a custom logger), it reduces the number of calls to load a Zend_Registry object each time something needs to be recorded. His code is included in the post along with examples of it in action.

tagged with: zendlog logging zendframework component zendregistry custom log

Padraic Brady's Blog:
Zend Framework App Tutorial - Part 9 Zend_Vew and Displaying Blog Entries
0 comments :: posted Tuesday May 27, 2008 @ 07:05:22
voice your opinion now!

Padraic Brady has posted part seven of his series on building a blogging application with the Zend Framework as a base. This time he's working on the output of the entries - using Zend_View to standardize the look and feel.

In previous parts we've been using View Helpers without even noticing it. Zend_Form doesn't generate forms by itself, rather it delegates most of the HTML generation to a set of View Helpers like Zend_View_Helper_Form. The problem with such output, is that View Helpers can only generate XHTML 1.0 Strict output if we actually inform them of the standard to use. [...] What we should do, is make the Doctype of our View more dynamic. This is achievable by using the Doctype View Helper.

Padraic talks about the different parts of the View layer in the framework (helpers, partials, placeholders) that were mentioned in previous parts. He shows how to change up his current setup to work with the Doctype View Helper to change the view and make it UTF-8 compliant.

He shows the changes to the bootstrap file, how he's grabbing the entries from the database and how he pushes that out to the view to be displayed. He also creates a custom view helper to create the entry URLs for each of the posts (Wordpress users out there, these are the stubs).

tagged with: zendview zendframework helper placeholder custom entry url doctype

Developer Tutorials Blog:
Five Wordpress Tips for Power Users
0 comments :: posted Wednesday May 07, 2008 @ 07:57:58
voice your opinion now!

On the Developer Tutorials Blog today, there's a new post aimed at WordPress users to help them on the path to becoming "power users" with five tips.

If you're a wordpress power user, you'll inevitably have some questions about how you can improve your blog or add new features. Here are five tips that will make life easier for people wanting to maximize their use of Wordpress.

The list is:

  • Quickly Find Page/Post ID
  • Custom Front Page
  • Password Protect Wordpress
  • Protect from the 'Digg Efect' with HTML
  • Stop Hackers

Each of them with their own explanations (and links to other resources detailing how they're done).

tagged with: wordpress power user tips find custom page password digg hacker

Nexen.net:
Elephpants, 2008 generation
0 comments :: posted Friday May 02, 2008 @ 17:12:40
voice your opinion now!

So you've seen all of the pictures of the elePHPants floating around and want to get your hands on one of your very own? Good news! Damien Seguy and crew have another fresh batch of huggable blue PHPness on the way and you can place your order now:

If you have missed the boat of the first generation of elePHPants, now is the right time to catchup up and participate to the 2008 generation! As for the first generation, this project is open to every PHP User group and aficionados, that want to adopt elePHPants, small or big.

Pricing is 4 Euros per elephant (in a 50 count box only) or 50 Euro for one of the larger elephants. They're even open to having company logos ("your own brood") added to the other side of his back. You can find more details on getting your hands on one at this page on the Nexen.net website or just head right to the order form to get a little blue PHPer to call your own.

tagged with: elephpant order stuffed animal small large custom logo

Developer Tutorials Blog:
Designing and Coding a Wordpress Theme From Scratch
1 comment :: posted Tuesday April 29, 2008 @ 11:17:18
voice your opinion now!

The Developer Tutorials blog has posted a series they've worked up to show bloggers out there running WordPress how to create a custom theme from scratch:

In this multi-part series I'll detail how to create and design a Wordpress theme from nothing more than your imagination using Photoshop, CSS, XHTML and PHP.

Here's the list so far:

  • Part 1 - getting the tools and an overall layout idea
  • Part 2 - splitting it up to make the layout parts
  • Part 3 - converting the Photoshop template to XHTML
  • Part 4 - cleaning up the XHTML and doing some styling with CSS
  • Part 5 - how to preload some images with Javascript to make the page load faster
  • Part 6 - creating the WordPress-specific markup
  • Part 7 - working up the PHP functionality
  • Part 8 - integrating PHP into the template
  • Part 9 - marking up the "framework" of the site (header/footer/sidebar)
  • Part 10 - adding additional files like a links page and changing the posting template
  • Part 11 (?) - deploying the theme out to the public view
tagged with: series tutorial wordpress photoshop xhtml convert layout theme custom


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

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