News Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Zend_Filter_Input / Zend_Validate Messages
September 17, 2007 @ 08:48:00

Rob Allen has been working with the Zend_Filter component of the Zend Framework and has discovered a few things:

The basic usage of Zend_Filter_Input is [a simple call to Zend_Filter_Input with the filter types and data to filter]. The problem is that the message you get out isn't always written as you would like. Consider the output if the body record is empty. The text isn't exactly what I would want to display to a user. To change it you pass in a messages parameter to the $validators array.

There's a long list of these "messages parameters" and Rob includes them in the post - things like NOT_ALNUM, CHECKSUM, QUOTED_STRING, INVALID_DASH and UNDECIPHERABLE_TLD (37 of them in all).

1 comment voice your opinion now!
zendframework zendfilterinput zendvalidate messages list zendframework zendfilterinput zendvalidate messages list


DevShed:
Building the Index Page for a PHP Email Application
November 08, 2006 @ 10:29:20

DevShed is continuing their look at the creation of an email application with the third part of the series. It looks at building the main index page of the application as well as some of the sub-pages that it links to for other features.

The index page displays the newly downloaded messages in a table with five columns. These columns list (among other things) the date, subject and from field of the messages.

They break out the actions the page takes when someone logs in/views email - grab user info, grab messages, and display the navigation panels. Since they've already looked at the first of the list in a previous tutorial, they cover the last two, showing how to create the navigation (and some sub-pages) and how to grab all of the messages for the currently logged in user.

0 comments voice your opinion now!
tutorial email client interface grab messages header tutorial email client interface grab messages header


DevShed:
Creating the Admin Script for a PHP/MySQL Blogging System (Part 3)
October 17, 2006 @ 11:23:00

DevShed continues their look at the creation of a simple blogging script with part three of the series (part 1, part 2) - the creation of an admin utility to work with the contents of the blog.

The idea is to give the owner of the blog the ability to manage the blog by being able to remove users and articles as required, or to alter the status of users by upgrading them to admin status or banning them. It is also a place where the administrator can start new topics that will then garner their own replies.

They go through the creation of the main admin script (functionality managed with a switch statement, including other external PHP files) and the functions that go in each of those individual files to make things work - managing messages, managing users, and managing categories.

0 comments voice your opinion now!
blogging system part3 mysql admin users messages categories blogging system part3 mysql admin users messages categories


Adobe Developer Source:
Using PHP and Flex to Browse a MySQL Database
July 20, 2006 @ 14:12:31

The Adobe Developer Source has posted a new tutorial showing how to, with the combination of PHP and Flex, to browse the contents of a MySQL database.

One critical element to remember about programming with Flex is that it cannot connect to a database directly - it requires some form of middleware in order to access data. You'll be using PHP in order to generate the XML files that Flex will use to manipulate the data from the database.

PHP plays the middle-man in this lengthy tutorial, passing XML messages back and forth between the Flex application and interpreting it into MySQL queries and results. They take the PHP script through, step by step, to ensre you know exactly how it works. Next up is the Flex, complete with the code listing to create the simple database browsing application.

There's explainations, screenshots, and even a little ActionScript here and there, but in the end, you'll have a light, simple database browser to view the contents of your table.

0 comments voice your opinion now!
flex adobe mysql database middleman xml messages flex adobe mysql database middleman xml messages


Nexen.net:
Error Messages in PHP (a Search)
December 29, 2005 @ 07:04:09

PHP can throw out some pretty cryptic error messages sometimes, and those new to the langauge might have a difficult time understanding what they relate to. Well, Nexen.net has created a guide to the errors to help you make your way through them (as mentioned in this post).

The errors that PHP throws can sometimes be confusing and mysterious. It outputs them in an effort to make debugging your scripts easier so you can go and correct the error. To help with deciphering them, we have created a guide by looking at the source code for PHP versions: 4.0.0, 4.0.6, 4.1.2, 4.2.3, 4.3.6 and 5.0.0RC2. versions 4.3.6 and 5.0.0RC2.

On the tool they've created, all you need to do is enter in the error code number that the script spits back and it will show you the relevant information. It also has a listing of some of the samples below it to help you narrow it down quickly if you already know what you're looking for.

The site and the tool are all in French.

2 comments voice your opinion now!
search error messages undefined index parse search error messages undefined index parse



Community Events





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


list library interview api introduction tips community bugfix install podcast release framework opinion laravel deployment symfony package series language voicesoftheelephpant

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