PHP - MYSQL - LAMP stuff

Mihai Crolan: Debugging Flex and PHP

Zend feed for PHP news & articles - Tue, 2010-05-04 16:10
From Mihai Corlan’s blog: As your projects grow in size and more people get involved you’ll find yourself fixing more and more bugs. When this happens, one of the best friends a developer has is the debugger. In this paper, I’ll talk about some of the workflows and tools you can use to debug Flex and PHP projects. If you want to try the steps outlined here for yourself, you’ll need Flash Builder 4, a PHP and MySQL server ( MAMP or WAMP will do just fine), Eclipse PDT , and XDebug.

Adobe Developer Week Starts May 10, 2010

Zend feed for PHP news & articles - Tue, 2010-05-04 14:53
May 10 – 14 2010. Free, online sessions for PHP developers interested in learning about the Adobe Flash Platform, including: What’s New in Flash Builder 4 for PHP Developers; Using Advanced Features with Flex & PHP ; and A Basic CRUD Application with Zend_AMF and Flex 4

Using SSH in HeidiSQL and MySQL Query Browser: Encrypting Sessions

Dev Shed Articles - Tue, 2010-05-04 13:00
Using a MySQL GUI (Graphical User Interface) makes it easier, more efficient and user-friendly to work with a MySQL database. The two most popular MySQL GUIs, HeidiSQL and MySQL Query Browser, have their default connections to any MySQL server “unencrypted.” This is a problem, but we're going to fix it; just keep reading.
- This tutorial will help you configure these two important MySQL GUIs to connect and do sessions in the SSH (Secure Shell) protocol. This will ensure that communication to your MySQL server is encrypted. Encrypted communication ensures the integrity and security of your data against unauthorized ...

MySQL in SSH: Basic Guide

Dev Shed Articles - Mon, 2010-05-03 13:00
There are some hosting companies that do not offer an SSL (Secure Socket Layer) environment for MySQL. It is important to have an SSL environment for MySQL, because your sessions are protected with “encryption.” Fortunately, if you can't get SSL with your hosting company, there is an alternative: SSH.
- The Secure Socket Layer security feature protects sensitive information (such as credit card information, passwords, SS numbers, etc.) from falling into the hands of an unauthorized third party that might be sniffing the packets as it travels the Internet. Below are some standards that most MyS...

Hashes

Dev Shed Articles - Thu, 2010-04-29 13:00
Hashes in Perl aren't really that hard to understand; they're not that much harder than understanding how a phone book works. This article introduces you to hashes, what they do, and how to use them. It is excerpted from chapter five of the book Beginning Perl, written by James Lee (Apress; ISBN: 159059391X).
- We have talked about two types of data: scalars and arrays. Scalars are single pieces of infor mation, while arrays are single variables containing many different values. Alternatively, some things are better expressed as a set of one-to-one correspondences. A phone book, for example, is a set of...

Zend Framework 1.10.4 Released

Zend feed for PHP news & articles - Wed, 2010-04-28 16:42
On behalf of the Zend Framework community, I'm pleased to announce the immediate availability of Zend Framework 1.10.4, our fourth maintenance release in the 1.10 series. You can download it from our downloads page: http://framework.zend.com/download/latest This release includes approximately 50 bugfixes, the majority of which were contributed during our Bug Hunt Days two weeks ago . The fixes contributed help stabilize and improve the 1.10 series.

Using Multiple Strategy Classes with the Strategy Design Pattern

Dev Shed Articles - Wed, 2010-04-28 13:00
Being one of the most popular contenders in the exciting, but very often complex, terrain of software design, the Strategy design pattern is a well-trusted paradigm. It allows you to build more flexible and efficient applications by appealing to the functionality of two of the big pillars of solid object-oriented programming: favoring Composition over Inheritance, and encapsulating the concepts that vary. This is the conclusion to a six-part series that shows you how to use the Strategy design pattern to validate incoming data.
- As with other design patterns, the implementation of the Strategy pattern isn't subject to a specific programming language or context, and in fact it may vary slightly from case to case. This doesn't imply, though, that its use in real-world projects must be a painful and annoying experience. In rea...

Validating URLs with the Strategy Design Pattern

Dev Shed Articles - Tue, 2010-04-27 13:00
In this penultimate part of the series, I will build a strategy class that validates URLs using the built-in PHP function “filter_var().” This process is similar to defining other strategy classes discussed in previous parts, so you shouldnt have major difficulties understanding its underlying logic.
- As a PHP developer, did you ever think that implementing the Strategy design pattern in a real-word case was a daunting task that would make you suffer premature hair loss? Well, fear not; in this article series you'll learn how to build a customizable web application which will use a bunch of...

Checking Email Addresses with the Strategy Design Pattern

Dev Shed Articles - Mon, 2010-04-26 13:00
In this fourth part of a series on the strategy design pattern, I extend the functionality of the sample validation program by adding another strategy class to it. The new class will check the validity of a supplied email address.
- As you may have heard, the Strategy design pattern is a software design paradigm that allows developers to build flexible and modular applications by taking advantage of the functionality offered by Composition, rather than relying heavily on the benefits brought by Inheritance. While this may sound...

ZendCon 2010 Call for Papers is Now Open

Zend feed for PHP news & articles - Mon, 2010-04-26 12:56
Join the largest gathering of the PHP Community at 2010 Zend/PHP Conference. ZendCon will be held November 1 – 4, 2010 in Santa Clara, California, and is a unique opportunity to share knowledge and expertise with the PHP Community. Attendees will include developers, architects, development managers, decision makers, core PHP developers, prominent community members, and so many more. The scope of the conference will span the entire development lifecycle from inception through production. We will welcome talk submissions for all skill levels in…

Results of April's ZF Bug Hunt Days

Zend feed for PHP news & articles - Thu, 2010-04-22 16:26
A week ago , Zend Framework held its monthly bug hunt days. During our monthly bug hunts, we try to get contributors to focus on closing out issues in the issue tracker , in order to improve the overall quality of the project. Each month, we offer the contributor who assists in closing the most issues an official Zend Framework t-shirt. This month, php|architect also sponsored 1-year subscriptions to the top 3 contributors, upping the incentive for contributions.

Scalars: Building a Currency Converter

Dev Shed Articles - Thu, 2010-04-22 13:00
In this conclusion to a five-part series on scalars in Perl, we'll put everything we've learned together to build a currency converter. This article is excerpted from chapter two of the book Beginning Perl, written by James Lee (Apress; ISBN: 159059391X).
- Multiple Assignments Weve said that = is an operator, but does that mean it returns a value? Well, actually it does, it returns whatever was assigned. This allows us to set several variables up at once. Heres a simple example of this; read it from right to left: $d = $c = $b = $a = 1; Firs...

Verifying Float Values with the Strategy Design Pattern

Dev Shed Articles - Wed, 2010-04-21 13:00
In this third part of a series on validating incoming data with the strategy design pattern, I create a brand new strategy class that can check whether or not a supplied input value is a float number. The addition of this class extends the capabilities of the sample validation program that Im building in this series.
- Design patterns are well-known, reusable paradigms that allow developers to solve certain problems in a more efficient way, even though their implementation is flexible and not tied to a specific programming language. Due to their variety, they can be placed in different categories (creation, stru...

Build an Enterprise-Grade PHP Stack with Zend Server 5.0 and Oracle 11g

Zend feed for PHP news & articles - Wed, 2010-04-21 12:47
Building an enterprise-grade application with PHP and Oracle, but can't figure out how to get the two of them talking? There's an easy solution: Zend Server 5.0 comes with a modern, secure PHP stack that includes OCI8 support out of the box. Toss in support for Oracle connection pooling, rule-based page caching and industrial-strength code tracing and profiling, and you're ready to play with the big boys!

Open Source Focus Seems to Be Lacking in Mobile Arena

Dev Shed Articles - Tue, 2010-04-20 20:00
In today's world, it seems as if everyone is on the go. The introduction of smart phones and other mobile devices with increasing capability and technology seems to fit the idea that the mobile market is the way of the future. So where is Linux when it comes to mobile technology?
- One person who believes that the mobile market is the way of the future is Google's CEO Eric Schmidt. The recent Atmosphere conference, where many technology leaders presented new thoughts and ideas, was where Schmidt expressed the sentiment of increasing mobile importance. To summarize, Schmidt...

Syntax coloring utility

O'Reilly ONLamp - Tue, 2010-04-20 19:16
I often write HTML pages or documentation that includes code samples. When the code is presented this way, it's much easier to follow if it features syntax highlighting. I had found a script that could highlight Perl code, and then I realized I needed the same thing for C code as well. I've posted a new script on my web site that inserts HTML markup into source code files to provide colored syntax highlighting.

Checking Integers with the Strategy Design Pattern

Dev Shed Articles - Tue, 2010-04-20 13:00
If youre a PHP developer who wants to learn how to implement the Strategy design pattern in a real-world project, then you might want to take a look at this article series. Over the course of its six tutorials, youll walk through the development of a modular and flexible application, which will use this powerful pattern to validate different types of data, including integer and float numbers, email addresses and URLs.
- And now that you've been introduced to the subject covered by this series, its time to review the topics covered in the first tutorial, in case you havent read it yet. In that part I explained in depth the logic that stands behind the Strategy pattern, as well as how to use it for checking the v...

ZendCasts.com: Integrating Zend_Tool Into Your Application

Zend feed for PHP news & articles - Mon, 2010-04-19 19:45
New from ZendCasts.com today there's a screencast posted showing you how to integrate Zend_Tool into your application, allowing it to be easily used from the command-line.

Michelangelo van Dam's Blog: Zend Framework context switching for HTML content

Zend feed for PHP news & articles - Mon, 2010-04-19 15:42
Michelangelo van Dam has a new post to his blog today looking a a method for doing some context switching in his Zend Framework application to use jQuery in his app's static HTML output.

Coding Examples of the Iterator, Countable and ArrayAccess SPL Interfaces in PHP 5

Dev Shed Articles - Mon, 2010-04-19 13:00
Welcome to the final installment of a series that provides an overview of the Iterator, Countable and ArrayAccess SPL interfaces in PHP 5. Made up of six parts, this series teaches you how to build a fully-working MySQL abstraction class that takes advantage of the methods inherited from these native interfaces to manipulate database record sets easily by using an array syntax.
- In the articles that preceded this one I demonstrated in a step-by-step fashion how to develop such a MySQL handling class. It effectively defined all of the methods required by the aforementioned interfaces. In doing so, the class now is not only capable of traversing data sets by way of a plain “...