Tag Archive

Connecting to PHPCloud.com through Zend Studio 9

Published on 21 November, 2011 By Danny Froberg

PHPCloud.com is the land­ing page for our new cloud offer­ing.  Using the Zend Appli­ca­tion Fab­ric you can build your appli­ca­tions in the same envi­ron­ment as you will be deploy­ing your apps to.  The appli­ca­tion is built on my.phpcloud.com and you can then deploy it onto any plat­form where the Fab­ric is sup­ported.
But how do you get started? […]

AMF">File uploads with Adobe Flex and Zend AMF

Published on 31 August, 2011 By Danny Froberg

Leonardo França writes; Zend AMF is an imple­men­ta­tion done in PHP to work with the com­mu­ni­ca­tion pro­to­col binary AMF (Action Mes­sage For­mat) and is part of Zend­Frame­work. I had to imple­ment a sys­tem to upload files that were a lit­tle dif­fer­ent than what is typ­i­cally used in Flash, with this fea­ture had to be integrated […]

Flex Builder 4.5.x Test Drive for Mobile Tutorials

Published on 2 August, 2011 By Danny Froberg

Here is a very good multi-part tuto­r­ial on the ins and outs of mobile client / server devel­op­ment, that adds some quite use­ful func­tion­al­ity on Android, Apple IOS and Black­berry mobile devices.
In this Test Drive, you are going to cre­ate a Flex mobile appli­ca­tion that retrieves, dis­plays, and mod­i­fies data­base records (see Figure […]

PHP using Flash Builder 4.5.x">Data paging with Flex and PHP using Flash Builder 4.5.x

Published on 2 August, 2011 By Danny Froberg

Flash Builder 4.5 has a built-in data pag­ing fea­ture that gen­er­ates Action­Script code to retrieve data from the data­base incre­men­tally on demand. For exam­ple, sup­pose your data­base has thou­sands of records and you want to fetch only 20 rows at a time and dis­play them in a data grid. When you […]

PHP">Encrypt session data in PHP

Published on 3 May, 2011 By Danny Froberg

Zimuel writes; As promised in my last post I present an exam­ple of strong cryp­tog­ra­phy in PHP to secure ses­sion data.
This is a very sim­ple imple­men­ta­tion that can be used to improve the secu­rity of PHP appli­ca­tions espe­cially in shared envi­ron­ments where dif­fer­ent users have access to the same resources. As you know, […]

XML to JSON in PHP">XML to JSON in PHP

Published on 3 May, 2011 By Danny Froberg

Zimuel writes; Last fri­day, in occa­sion of the April Zend Frame­work Bug-Hunt, I started to look at this bug: ZF-3257. This is an issue related to the Zend_Json class that occurs dur­ing the con­ver­sion from XML to JSON for some spe­cific XML doc­u­ments, like this one:

$xml= ‘bar’;

The result using Zend_Json::fromXml($xml, false) , where false indicated […]

PHP">Create daemons in PHP

Published on 29 March, 2011 By Danny Froberg

 
Kevin van Zon­n­eveld wrote a life sav­ing arti­cle that saved me quite a bit of time; Every­one knows PHP can be used to cre­ate web­sites. But it can also be used to cre­ate desk­top appli­ca­tions and com­man­d­line tools. And now with a class called System_Daemon, you can even cre­ate dae­mons using noth­ing but PHP. And […]

Usage of the Conditional Ternary operator to reduce brace and newline waste when processing optional method parameters

Published on 14 March, 2011 By Danny Froberg

ralph­schindler writes; Usage of the Con­di­tional Ternary oper­a­tor to reduce brace and new­line waste when pro­cess­ing optional method parameters

< ?php
class Coor­di­nate
{
pro­tected $x;
pro­tected $y;
pub­lic func­tion __construct($x = null, $y = null)
{
(empty($x)) ?: […]

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

Published on 29 September, 2010 By Danny Froberg

With the book out and released I now reach the final chap­ter excerpt that I will have. As I said in one of my pre­vi­ous chap­ter excerpts, I did not write this book to cover a wide range of top­ics. I wrote it to cover a nar­row range of top­ics, more fully. […]

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

Published on 24 August, 2010 By Danny Froberg

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 {}

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

Published on 14 July, 2010 By Danny Froberg

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

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

Published on 4 February, 2010 By Danny Froberg

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

PHP on Windows">Microsoft won’t tell Zend how to build PHP on Windows

Published on 17 January, 2010 By Danny Froberg

Justin writes: It all started with a sim­ple bug encoun­tered while try­ing to get PHP and WCF to play nice. Before you know it I was attempt­ing to com­pile PHP on win­dows myself. That’s when I real­ized how deep the rab­bit hole really goes.
via Microsoft won’t tell Zend how to build PHP on Windows.

Bootstrapping Zend_Translate with a LangSelector Plugin

Published on 17 January, 2010 By Danny Froberg
This entry is part 4 of 4 in the series Work­ing with Zend_Translate and Poedit

As an update to the method of hav­ing every­thing related to Zend_Translate and Zend_Locale in the Boot­strap, here is an alter­na­tive using an Con­troller Plu­gin that does the grunt work of val­i­dat­ing, select­ing and updat­ing the Zend_Locale, Zend_Registry & Zend_Session using Zend_Session_Namespace. And we are using poedit .po & .mo files as the source as usual.

Deep Integration between Zend Framework and Doctrine 1.2

Published on 14 January, 2010 By Danny Froberg

There’s been a lot of talk online about find­ing the best approach for bring­ing Zend Frame­work and Doc­trine 1.x together. This video is my hum­ble approach of com­bin­ing some of the learn­ing brought about over the last few weeks on Zend­casts, as well as sug­ges­tions from Doc­trine devel­op­ers.
The goal of this video is to show […]

Get Adobe Flash playerPlugin by wpburn.com wordpress themes