PHP

WHAT with PHP? Chapter 9">You want to do WHAT with PHP? Chapter 9

Posted by on 27 September, 2010 at 11:45 pm

e_schrade writes; There is a bunch I could say to intro­duce this chap­ter.  How­ever, I think that by read­ing the first few para­graphs you will know what I’m talk­ing about.  For those who are expe­ri­enced devel­op­ers some of these items might seem a lit­tle basic, but there are reams and reams of […]

Zend_Log with multiple writers

Posted by on 12 September, 2010 at 1:22 pm

eschrader writes; So I was sit­ting here think­ing to myself “This is Fri­day and I’m not get­ting much of any­thing done.  Maybe I should write another Fri­day Frame­work High­light.”  I fig­ured that it was a good idea so I pon­dered what I should write.  I came up blank and so I asked […]

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

Posted by 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 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 functions.

< ?php
/**
* Find meth­ods that dif­fer only by the under­score pre­fix.
* by Bill Kar­win August 2010
*
* I release this code […]

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

Posted by 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 this project
FAQ (Frequently […]

Adding Zend_Cache to Flex/Flash Builder 4 Projects

Posted by 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 this […]

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 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 members, […]

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

Posted by 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 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 “application/json” or […]

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

Posted by 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. […]

Zend_Session_SaveHandler_Cookies

Posted by 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 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 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 […]

Creating Usable Forms With Zend Framework

Posted by 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 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:

Get Adobe Flash playerPlugin by wpburn.com wordpress themes