PHP

PHP Project files">Finding syntax errors in your PHP Project files

Posted by Danny Froberg on 24 August, 2010 at 2:34 pm

Till posted this lit­tle snip­pet; It’s so use­ful I just had to share it find . \( –name “*.php” –o –name “*.phtml” \) –exec php –l {} \; Just go to your project direc­tory and fire it off, it will help you find those pesky unmatched {}

Search each class for function names that match except for the underscore prefix

Posted by Danny Froberg on 17 August, 2010 at 12:16 am

Bill Kar­win posts a use­ful lit­tle snip­pet that will list and search each class for func­tion names that match except for the under­score pre­fix, pri­vate / pro­tected func­tions. <?php /**   * Find meth­ods that dif­fer only by the under­score pre­fix.   * by Bill Kar­win August 2010   *   * I release this […]

PHP for Android project (PFA)">PHP for Android project (PFA)

Posted by Danny Froberg on 14 July, 2010 at 12:38 pm

Here is an inter­est­ing project that could prove quite use­ful for us PHP buffs; PHP for Android project (PFA) aims to make PHP devel­op­ment in Android not only pos­si­ble but also fea­si­ble pro­vid­ing tools and doc­u­men­ta­tion. We cur­rently have an APK which pro­vides PHP sup­port to ASE (PhpForAndroid.apk). Iron­tec is the com­pany behind this project. About […]

Adding Zend_Cache to Flex/Flash Builder 4 Projects

Posted by Danny Froberg on 28 May, 2010 at 3:18 pm

I have som rather large and time con­sum­ing queries run­ning in the Sta­tis­tics screen of an NOC (Net­work Oper­a­tions Cen­ter) Flex/Flash Builder 4 appli­ca­tion i’we been tin­ker­ing with, to pre­vent the data­base server to be boggen down by mul­ti­ple queries fired by this app in mul­ti­ple places I had to imple­ment caching. And to do […]

PHP Best Practices — Matthew Weier O’Phinney and Lorna Jane Mitchell">Talk: PHP Best Practices — Matthew Weier O’Phinney and Lorna Jane Mitchell

Posted by Danny Froberg on 20 May, 2010 at 3:16 am

Writ­ing main­tain­able code is an art that takes effort and prac­tice to mas­ter. Part of that art is learn­ing what tools and strate­gies will assist you in that effort. In this tuto­r­ial, we will cover a vari­ety of prac­tices and tools that can make your life, and the lives of your team mem­bers, eas­ier as […]

PHP 5.3 namespaces for the rest of us">PHP 5.3 namespaces for the rest of us

Posted by Danny Froberg on 29 March, 2010 at 3:50 pm

Accord­ing to the offi­cial doc­u­men­ta­tion, PHP name­spaces have been designed to pre­vent name col­li­sions between classes from dif­fer­ent pack­ages and to avoid the use of very long names in the code to refer to classes or functions—nobody really wants to have to deal with some­thing called Zend_Db_Adapter_Mysqli or PHPUnit_Framework_Constraint_IsInstanceOf, after all. This means that namespaces […]

JSON and XML POSTs">App_Controller_Helper_Params for JSON and XML POSTs

Posted by Danny Froberg on 4 February, 2010 at 6:29 pm

Matthew Weier O’Phinney shares a bit of very use­ful code to inject request params into a Zend Frame­work request object from a JSON or XML POST request. “Below is a plu­gin I use to trans­late JSON or XML raw post request data to request user para­me­ters. Note that it expects a “Content-Type” header of either […]

PHP">11 easy steps for installing Apache ActiveMQ for PHP

Posted by Danny Froberg on 4 February, 2010 at 3:56 pm

Take a peak at Web Devel­oper Juice’s writeup on how to con­fig­ure and use ActiveMQ (Mes­sage Queues), defen­itely worth the read. Apache ActiveMQ is one good option for imple­ment­ing mes­sage queue in your PHP appli­ca­tion. It can be eas­ily installed on your server and it’s web acces­si­ble admin inter­face really makes administrator’s life easy. It can […]

Zend_Session_SaveHandler_Cookies

Posted by Danny Froberg on 1 February, 2010 at 2:44 pm

Romain Lalaut wants some feed­back on his pro­posal for Zend_Session_SaveHandler_Cookies is a save han­dler which stores data into the cook­ies client. The main ben­e­fit is to avoid the stor­age of such data on the server. It is espe­cially use­ful when you have a farm of servers to man­age. Give him a hand here Zend_Session_SaveHandler_Cookies.

Doctrine Tricks — SoftDelete

Posted by Danny Froberg on 30 January, 2010 at 11:12 pm

While pour­ing over some posts about Doc­trine I stum­bled upon a very nice solu­tion to the Cas­cad­ing Delete issue when using the Soft­Delete behav­iour on an Doc­trine Model. Here is what the guys at Elink Media writes; I have been using Doc­trine ORM for a while now. Here I want to dis­cuss 2 tricky issues […]

Front Controller Pattern in Zend Framework

Posted by Danny Froberg on 30 January, 2010 at 9:55 pm

Bradley Holt writes a good arti­cle about Front Con­troller Pat­terns; I recently gave a Zend Frame­work Intro­duc­tion pre­sen­ta­tion at our local PHP Users Group. I built a demo blog­ging appli­ca­tion called Postr that I used as an exam­ple through­out the pre­sen­ta­tion. There was way too much mate­r­ial to cover in the time avail­able so I […]

Creating Usable Forms With Zend Framework

Posted by Danny Froberg on 28 January, 2010 at 10:27 pm

Chris Hart­jes writes a very nice arti­cle about how to make (re)usable zend_forms; After search­ing around online for some exam­ples of build­ing sim­ple forms, I was dis­mayed to dis­cover there were two dif­fer­ent ways of build­ing the form. I could (a) do it the long way and cre­ate spe­cific instances of the form ele­ments using […]

STABLE Released">Zend Framework 1.10.0 STABLE Released

Posted by Danny Froberg on 28 January, 2010 at 1:55 am

On behalf of the Zend Frame­work team and the framework’s many con­trib­u­tors, I’m pleased to announce the imme­di­ate avail­abil­ity of the sta­ble release of Zend Frame­work 1.10.0. You can down­load it from our down­loads page:

Logging in Users using Doctrine and Zend_Auth

Posted by Danny Froberg on 27 January, 2010 at 7:04 pm

Jon Leben­sold pub­lishes the sec­ond part of his series on using Doc­trine in com­bi­na­tion with Zend_Auth & Zend_Auth_Adaptor; Here’s the sec­ond part of my Doc­trine / Zend_Auth exam­ple. In 15 min­utes, we cre­ate a logout, login and pro­tected area that’s reliant on the ZC_Auth_Adapter adapter we cre­ated in last week’s video. Notice how there’s no […]

Writing a Zend_Auth_Adapter with Doctrine

Posted by Danny Froberg on 26 January, 2010 at 12:37 pm

Jon Leben­sold pub­lishes another install­ment of his pop­u­lar screen cast series, he writes; I’ve been using Doc­trine a lot in my own work, and recently found myself itch­ing to have tighter inte­gra­tion between Zend and Doc­trine when it comes to user logins. Luck­ily, Zend pro­vides a very sim­ple inter­face with regards to Zend_Auth. This way, […]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes