 | News Feed |
Sections
Community Events
|
| feed this: |  |
IBM developerWorks: Build Web services with PHP in Eclipse
posted Wednesday May 14, 2008 @ 13:46:50
voice your opinion now!
BY CHRIS CORNUTT
The IBM developerWorks website has a new tutorial posted showing how to create a web service with the combination of PHP and the Eclipse IDE.
Learn how to build Web services in PHP using the PHP Development Tools plug-in in Eclipse Europa. Become familiar with the PDT project, and learn how to create and deploy useful PHP projects, learn about the philosophy behind contract-first development, and understand the basic parts that make up a Web Services Description Language (WSDL) file.
You'll have to register/sign in to get to it. They give an introduction to the PHP Development Tools for Eclipse, creating a WSDL file visually in the IDE and integrating it all to work with your Eclipse front-end.
tagged with: webservice eclipse tutorial ibm developerworks
John Maver's Blog: How to create a Bebo application using PHP 5
posted Monday May 12, 2008 @ 17:21:17
voice your opinion now!
BY CHRIS CORNUTT
In this new post on his blog, John Maver gives a step-by-step guide for creating a PHP5 application for the popular social networking site Bebo.com.
I have been answering a lot of email requests for how to get started with a Bebo application. Since applications can be written in any language that supports interaction with the Bebo REST API, developers have a lot of choices in how they build their application. The focus of this article will be on the "officially supported language" - PHP.
He defines the parts of the application first (the callback, canvas page, profile box, invitation and news stories). Much like the Facebook API, the Bebo system has you host the application on your own servers and use their developer libraries to interface with their systems. He makes a simple application that has a "story" published to it that shows to each visitor.
He also tosses in a method for knowing a bit more about the user - like if they've just added the application, if they're a normal user or if they've just removed it from their application list.
tagged with: bebop application php5 tutorial callback canvas profile news invitation
Developer Tutorials Blog: Testing PHP with the interactive shell
posted Monday May 12, 2008 @ 07:57:34
voice your opinion now!
BY CHRIS CORNUTT
Akash Mehta shares a helpful hint in this new post to the Developer Tutorials Blog today - testing out PHP code via the command line PHP binary.
Thankfully, PHP provides the interactive shell, allowing you to test out PHP interactively with immediate feedback. Here's how to take advantage of this mature feature of PHP.
With the help of the "-a" flag on the command line, the PHP binary will hand you an environment where you can code PHP and instantly see the results. He does mention a few quirks that make it different than working with PHP through a web server, namely moving in and out of code blocks and remembering to finish out with a semi-colon when the line is done.
tagged with: test interactive shell binary tutorial commandline
Padraic Brady's Blog: Zend Framework Blog Tutorial - Part 6 Zend_Form & Zend_Auth
posted Thursday May 08, 2008 @ 09:33:36
voice your opinion now!
BY CHRIS CORNUTT
Padraic Brady has continued his series about making a sample blogging application with the Zend Framework in a new blog post, part six - a focus on Zend_Form and Zend_Auth.
In the previous entry, we created a new Administration Module to hold blog management functionality, added a Module specific layout for it, and discussed the upcoming need to ensure this is only accessible by authorised Authors. In this entry I'll unravel some of Zend_Form's mysteries in adding a login form, before using Zend_Auth to implement authentication for authors.
He includes the code (controller and view) to add the login form as a part of the Author functionality and, using a few decorators to help him build the form how he likes it, extends the Zend_Form component to make his form with username, password and submit elements. He throws in some validation and a bit of error checking to finish it off.
tagged with: zendframework blog application tutorial zendform zendauth
DevShed: Comparing Files and Databases with PHP Benchmarking Applications
posted Thursday May 08, 2008 @ 07:58:38
voice your opinion now!
BY CHRIS CORNUTT
DevShed is wrapping up their series looking at benchmarking your PHP applications with the third part - a look at comparing execution times of scripts that can either pull from a database or from a flat file.
This large, complex subject offers numerous possibilities for experimentation, which means that you'll surely have tons of fun creating timing systems with PHP. [...] his article, then, will be focused on evaluating different scripts that fetch sets of records, first from a database, and then from flat files.
They use the Timer class they defined in a previous part of the series and wrap it around both a database class (pulling user information from a MySQL database) and a fetch to a flat file for similar information. General exceptions are handled as a part of the resource connection class.
tagged with: database file compare timer class tutorial exception benchmark
DevShed: Setting Up a Web-Based Image Gallery
posted Wednesday May 07, 2008 @ 09:31:45
voice your opinion now!
BY CHRIS CORNUTT
DevShed has started a new series off today with this new tutorial, a look at a few image galleries written in PHP and how to get them up and working on your site.
In this article, we are going to tackle this subject and present some real-world applicable solutions.First of all, this article presumes that you either have a web server of your own or one that you pay for (as a web space) with the necessary server-side services already running and configured appropriately (PHP, MySQL, Apache, etc.). Second, we are going to consider free options for the applications we'll present throughout this article.
The two pieces of software they look at are 4images Gallery and the Coppermine Gallery. Simple installation instructions are included (more can be found in the project's documentation, though) and screenshots show some of the end results.
tagged with: image gallery tutorial install 4images gallery coppermine
Developer Tutorials Blog: Iterating PHP objects, and readable code too!
posted Tuesday May 06, 2008 @ 14:34:58
voice your opinion now!
BY CHRIS CORNUTT
The Developer Tutorials blog has a recent post that talks about manipulating objects in PHP with the help of the iterators that the Standard PHP Library has to offer.
It's a generally accepted fact that more readable code is more maintainable and easier for other developers to pick up. [...] Today I'm going to take a look at object iteration, most commonly found in the Standard PHP Library, and explore using the Iterator interface to simplify looping.
The main part of the tutorial shows how to implement the Iterator interface of the SPL to create your own custom methods, theirs being a Database version with methodsfor rewinding, reading and getting the current record you're working with.
tagged with: spl iterator tutorial database implement
|