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

PHPBuilder.com:
PHP Scripts for Interacting with Networks
December 15, 2010 @ 13:49:31

On PHPBuilder.com there's a new tutorial showing you some of the PHP functions that you can use to interact with the network surrounding (and even vaguely related to) your application.

PHP has a great many tools for interacting with a network and also with the Internet. In this article, I examine some of those tools and functions to show how exactly you can use them to make your scripts more useful in a network environment. Click here to download the accompanying source code.

They show how to use fopen to access remote sites, gethostbyname and gethostbyaddr for DNS resolution, getprotobynumber to check the port number for a TCP/IP type and quite a few more. This also includes a brief look at the PEAR Net_Whois package. You can download the examples if you'd like to just jump into the code.

0 comments voice your opinion now!
network interaction tutorial tcpip socket dns


Christoph Dorn's Blog:
Gain insight into your cache interaction with FirePHP Companion
August 25, 2010 @ 11:21:54

Christoph Dorn has a new post about using his recently released FirePHP Companion to get a better perspective on how your application works with its cache (information like the location of the cache file).

I thought I would rework the example I included in my php|architect article. You will see how much easier it now is to accomplish the same, and with much less code, using FirePHP Companion instead of the existing FirePHP extension.

In his example he has a site with an RSS feed that's cached and compares the old way of doing things to the simpler, easier way to use the features the Companion offers to record the process the script takes to build the feed and pushes the results back out at the end of the script.

A screencast is included in the post to show you how his example PHP code and the plugin all fit together.

0 comments voice your opinion now!
firephp companion cache interaction tutorial screencast


PHP Zone:
The Architecture of Flex and PHP Applications
June 02, 2010 @ 12:31:54

In a new article to the PHP Zone (part of the DZone.com site) today Mihai Corlan has written up an introduction to the architecture of the interactions that happen between PHP and Flex applications.

When I did my first web project using Flex, boy oh boy, it was quite a switch! The clean separation between the client and the server, (the business logic on the client side in addition to business logic on the server side), client-side technology that is compiled instead of interpreted, two languages on the client, all these required a different mind-set from traditional web development. [...] I want to share with you some of the things that are specific to Flex in relation to PHP. And I want to show you how common tasks for building HTML/PHP applications are done with Flex and PHP.

He talks about the SOA architecture model that the Flex/PHP interaction follows (connecting to services) and illustrates a basic Flex client to PHP server request/response pattern for a simple application. He even includes a sample illustration of an AIR application's interaction with a backend PHP server.

0 comments voice your opinion now!
flex interaction architecture adobe air


Quality Assurance in PHP Projects:
Testing Database Interaction
March 27, 2009 @ 07:59:36

On the Quality Assurance in PHP Projects site, Mike Lively has written up a few thoughts on how developers and development environments should work with testing databases as resources (case study).

Proper interaction with relational databases is incredibly important in most pieces of software. The importance of this interaction is underscored by the fact that many software architectures have at least one entire layer or system devoted to data persistence and data loading. When dealing with critical data in enterprise level applications it becomes even more important to make sure your data is being stored and retrieved correctly.

He talks about a case study on the topic (still in development) that will talk about testing techniques, functionality and how to create the tests needed to ensure your development environment can correctly use the database resource via unit tests and functional tests.

0 comments voice your opinion now!
testing database interaction casestudy mikelively unittest functional


DevShed:
Object Interaction and Mediator Classes in PHP 5
March 21, 2007 @ 11:16:00

DevShed wraps up yet another in their design pattern series of articles today with this new tutorial - the final part in their look at using Mediator classes in PHP5.

At this stage I believe that implementing the mediator pattern with PHP 5 should be a pretty painless process to you, but if the examples that I showed you in the first article weren't enough to help you completely grasp this pattern, over the course of this last tutorial I'm going to expand the original mediator class that you learned previously. The expansion will make it capable of maintaining three classes in perfect synchronization.

They start off with the base Mediator class they developed in previous parts of the series and expand it out some more with the functionality needed to keep three (not just two) objects synchronized. To help out, they build some more file handling classes, ones that work with the three different types - numeric, alpha, and alphanumeric content.

0 comments voice your opinion now!
designpattern interaction mediator php5 object designpattern interaction mediator php5 object


CodeSnipers.com:
Ruby on Rails makes nice with PHP
May 10, 2006 @ 05:59:33

On CodeSnipers today, there's a new post looking at two aspects of getting Ruby on Rails to cooperate nicely with PHP, specifically in dealing with sessions and the structure/layout of the files that make up the site.

Not all projects can jump ship from a home grown PHP site to Rails, especially projects where there are exactly 1.3 programmers for the project. I was surprised there wasn't much information on integrating php and rails site (spare me the flame wars). All new development will be done in Rails and old PHP will be written in Rails as time permits. I was exploring some of the ways that this could be possible and what possible problems might arise.

Each of the topics is covered in a paragraph detailing what things look like for either side and a possible solution for cross-communication.

0 comments voice your opinion now!
rubyonrails sessions file structure interaction rubyonrails sessions file structure interaction


DevArticles:
Sending Email with AJAX - Interacting with the Server
January 31, 2006 @ 12:09:58

DevArticles has posted the last part in their "Sending Email with Ajax" series today - an explaination of the last piece of the puzzle, server-side interaction.

Welcome to the last tutorial of the series "Sending email with AJAX." As you may have guessed regarding the title, this three-part series explains the development of a fairly simple AJAX-driven email client application, which offers some interesting capabilities for sending email, as well as for displaying and adding contacts, all without the need to involve page reloads.

They start off with a quick recap of the previous parts, and move quickly on to the script you'll need to accept the Ajax messages from the client (in this case, PHP). They show you how to have it add a contact to an XML file and send off the message to the server to be handled through PHP's mail() function...

11 comments voice your opinion now!
ajax email sending server interaction ajax email sending server interaction



Community Events





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


introduction framework security series voicesoftheelephpant laravel version composer community mvc release language package symfony interview library update tool opinion podcast

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