Dynamically Typed: Javascript + PHP = ScriptServer
89086
With the third posting in his "Crouching Javascript, Hidden PHP" series, Harry Fuecks has a new script server that allows you to comingle PHP and Javascript in a very interesting way.
126013
On Dynamically Typed today, there's a new posting concerning the PHP Atom Server.
499517
Over on our sister site, AjaxDeveloper.org today, there's a note about the latest release of Joshua Eichorn's HTML_AJAX PEAR package - version 0.3.1.    HTML_AJAX 0.3.1 is out, lots of good bug fixes, and iframe fallback support for Opera and IE with activeX turned off.  More details are available on the release notes on the wiki.  Feature wise were getting close to beta release, its mainly getting a browser compatability test suite added in and doing some basic API review. If you have experience supporting an API without breaking bc, it would be great to get your feedback on HTML_AJAX.    In the release notes, there's mention of several bugs with Internet Explorer implementations and some yet unsolved problems (IE memory leaks and table support in Konqueror). Check out the rest of the notes for more of the bugs and issues they've taken care of...
192641
DevShed has posted the second and last part of a series of two articles based around the Composite design pattern - using it to work with strings in PHP5.   Are you a PHP developer who wants to improve your skills in pattern-based programming in PHP? If the answer to this question is a emphatic yes, then you should begin reading this article now! Welcome to the final part of the series "Implementing the composite pattern with PHP 5." Comprised of two instructive tutorials, this series walks you through the basic concepts of this important design pattern, and shows you how to apply it with some educational examples.   They start by defining a simple StringProcessor class as an abstract interface to build from. From there, they create two other classes - the SingleStringProcessor and the MultipleStringProcessor. Each of these takes in either a single file or multiple filenames and spits back out the value of the string and the length of the string.
124693
Jared White has posted another Willowgarden highlight to his blog today, this time with a focus on the processing of form input.   In the bad old days of processing forms and saving each field to a column in a database row, you'd have to do a lot of manual gruntwork: accessing each field from the $_POST superglobal, checking the values, constructing the SQL query, connecting to the database and executing the query, and so forth. Wouldn't it be great if you could just import the form right into an object, and let it do the validation and the database saving based on just a few simple rules? Let's take a quick look at how that might work.   He shows how to make an instance of the WFFormCreator class in a simple script and add actions to it to handle the successful submission and the errors that might come up.
653298
In the last part of this series, you'll learn how to build a declarative component for an application with a list of customers which is populated from a server-side data handler using AJAX. By David Johnson, Alexei White, and Andre Charland. 0910
644868
The International PHP Magazine has conducted a poll on its website over the past week, this time asking "You Did Not Know That...", asking developers which of the true statements about PHP they didn't know about.   The options this time were:  The trailing '?>' in PHP is Optional You can embed other programming languages in PHP Objects can be made to look like arrays by using Standard PHP Library require is faster than require_once Anything Less than 5.1.0 is Silly All  There wasn't a whole lot of difference in the results of this poll, but the most all-inclusive of the list was the one selected the most - "All". Following that, was that the trailing closing PHP tag is optional, then a tie for third between the "embed other languages" and "Less than PHP 5.1.0" options.   Be sure to cast your vote in their latest poll that asks readers that they're really looking for in their frameworks.
9540
The Hardened-PHP Project has released a new vulnerability for the PHProjekt groupware software.    While searching for applications that are vulnerable to a new class of vulnerabilities inside PHP applications we took a quick look into the current PHProjekt source code and discovered that a (remote) include vulnerability had been (re)introduced.   By overwriting a variable with user input it is possible to inject and execute arbitrary PHP code. Overwriting this variable is possible regardless of the register_globals setting.    They give a few more details further down the posting and note that users should download and install the latest version (at the time of this post, 5.1.2).
466648
Stefan Koopmanschap has pointed out an interesting article over on the CIO magazine website that has some in the PHP community a bit up in arms about comments it makes towards the language.   The article, "You Used PHP to Write WHAT?!", covers the basics of the language - its status in the web programming world, the functionality it offers and the database interfaces it includes. They also include a hit list of reasons PHP is popular and why it's a good choice for your project.   Then things get a little strange - they move from their PHP praise to three things that have more to do with unresearched "facts" than the reality of the language:   Security and PHP Working with PHP and the shell Scaling and PHP (in enterprise environments)   These incorrect assumptions have lead to many comments both from the PHP community and from users of other languages (like Java and ColdFusion) sharing thoughts on the contents of the article and the language in general. Check out the article's comments to see for yourself.
487916
Ajaxian.com has pointed out a new tool that combines PHP and jQuery to make something similar to the Rails helpers (in relation to Prototype/Script.aculo.us).   PQuery is a set of helper classes for JQuery JavaScript library.This library allows you to easily integrate AJAX , Effects and other JQuery functionality into your PHP scripts.IT has a small foot print and is compatible with PHP4 and PHP5.   They've also included an example of the code to show how simple it can be as well as links to download the library, check out some other demos (including an Ajax demo, two Effects demos, and two simple applications - a chat and to-do list), as well as pointing you to the complete documentation for the project.
466365
Cameron Olthuis wants to share the tools that he finds th emost useful with the entire web, so he's posted them here on his blog.   His list includes libraries from all different technologies, not just PHP. Several are Javascript-related, but it's always good to have a complete toolkit on hand when trying to tackle some of the more difficult things.   Included in his list are things like:  Moo.fx - a Javascript effects library Swat - an open source web application toolkit PEAR - the PHP package repository Mochikit - lightweight Javascript library    Be sure to check out the post and its comments for more great resources!
237018
Attack uses CAST statements in its SQL injected script
235938
Ivo Jansch discovered something interesting by way of an applicant's resume - a hidden "trick" that PHP pulls on the user when they try to use a Java-like syntax with System.    So yesterday I was reviewing a code sample that a job applicant had written during a test and I encountered the following line of code:  It's not hard to guess what his background was :), but I was initially stunned that this actually works in php.    After a little investigating (and ruling out the Java Bridge), Ivo found that the line was being interpreted literally and was just being handled as a string instead of a constant. He gives two other examples to help with clarification.
487989
PHPBuilder.com has posted part one of a new series looking at using AJAX functionality on your site (along with PHP_ to create a simple form handling script.   So you're interested in AJAX? AJAX is a powerful addition to JavaScript for browser-to-server intercommunication. We will demonstrate a simple script that sends a GET or POST request to a form handling script on a server, then the server script will return a response to the browser XMLHttpRequest JavaScript object.   They start with a definition of what AJAX is and how it can be used before getting into the examples - the first of a simple text field in a form that sends the contents back to the server and the second to fetch dynamic image information from the server.
597629
On O'Reilly's ONLamp.com website today, there's a new tutorial posted walking you through the creation of online forms through the amazingly helpful PEAR HTML_QuickForm package.   As its name suggests, the PHP Extension and Application Repository (PEAR) library called HTML_QuickForm can be used to quickly and cleanly to produce validating HTML forms, relieving the developer of the tedium that often accompanies such tasks. [...] This tutorial presents a basic implementation of HTML_QuickForm to produce a common email contact form and explores ways to get the most from this powerful library.   They introduce the topic by explaining when is a good time to use the package. Now that you're sure you want to use it, they move on to the code portion of the tutorial - the creation of an email form. They define the fields (their labels, types and required status) and show how to dump that array into the HTML_QuickForm class to create the HTML field output. They also add validation rules to check the contents of the field - in this case, ensuring that all of the entries have values and aren't empty.
28574
Builder.com as posted a quick tutorial on working with the DOM functionality in PHP to create a dynamic XML document (Doctype and all).   Over the course of this article, I'll be introducing you to the main functions in this API, showing you how to programmatically generate a complete well-formed XML document from scratch and save it to disk.   They start off with creating the Doctype declaration before actually adding the content into the file (elements and text nodes), adding some attributes to the nodes, putting CDATA blocks inside them, and pushing out the results on the other side to be saved to a local "order.xml" file.   You can also download this article if you'd like to work with it (and its included PHP files) on your own.
89340
Blog: The software giant follows through on better support for dynamic, or scripting, languages for Web development.