News Feed
Jobs Feed
Sections




News Archive
feed this:

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

Freeaqingme's Blog:
PHP, JS & Service layers Blend like never before
March 17, 2011 @ 11:41:42

On his Tweakblog today Freeaqingme has posted about some work he's done linking Javascript to a PHP service layer and overcoming some of the performance issues he came across.

The past week I've been only programming (clientside) Javascript, and last night I finally got to tying it all to the serverside app, which is written in PHP. While adding some functionality to my Service Layer, it came to mind how much slower this process was in the past. [...] One of the nice things of Service Layers and performing your Access Control there, is that you can have multiple points of entry. So, to lessen the amount of tediousness, one can simply use one controller for all service requests coming from the client.

He was connecting to two via a XMLHttpRequest to a custom URL that would return a different result based on the kind of request. Internal routing handled the request correctly and the result from the view was pushed directly back to the client. He includes code to illustrate - a bit of PHP based on the Zend Framework structure, the Javascript to make the request and an example of invoking the service on the client side.

0 comments voice your opinion now!
javascrupt tutorial servicelayer ajax xmlhttprequest


IBM developerWorks:
Build Ajax-based Web sites with PHP
September 04, 2008 @ 11:19:02

The IBM developerWorks website has a new tutorial for those looking to get into the powerful combination of Ajax and PHP - an introduction to creating Ajax-based websites with PHP.

Learn the process of writing Asynchronous JavaScript + XML (Ajax) applications using native JavaScript code and PHP. This article introduces a few different frameworks and application program interfaces (APIs) that reduce the amount of code you need to write to achieve a complete Ajax-based Web application.

They (briefly) explain what Ajax is and the benefits of it before jumping right in to a sample page. They go for the "manual first" approach so developers know to make basic connections with the XMLHttpRequest object and handle the responses. They do mention some of the libraries offered that help with the connections too (like jQuery, Prototype and Dojo).

0 comments voice your opinion now!
ibm tutorial ajax website manual xmlhttprequest jquery dojo prototype library


The Bakery:
Six New Components/Articles/Tutorials (SOAP, XHR, Tickets, Models, Releases & Flashes)
October 31, 2007 @ 10:24:00

The Bakery has a grouping of six new articles/tutorials/components posted covering things from SOAP to loading models on the fly to some of the latest CakePHP releases:

Check out The Bakery for more great CakePHP related information and tools.

0 comments voice your opinion now!
thebakery cakephp framework soap ticket model release flash xmlhttprequest thebakery cakephp framework soap ticket model release flash xmlhttprequest


DevArticles:
Learning AJAX
August 20, 2007 @ 14:24:00

A new introductory tutorial over on DevArticles looks to help you get acquainted with Ajax through its use in both PHP and JSP:

This is a two-part article. In these two parts I'll try to describe what AJAX is, and how to use AJAX in PHP and JSP. Later we will use some advanced JSP tag libraries to make cool AJAX-based web applications.

This first part looks at the basics of the connection - the XMLHttpRequest object and a simple example putting it to use grabbing the latest date from a background PHP or JSP script (complete with screenshots of the end result).

0 comments voice your opinion now!
ajax tutorial jsp example xmlhttprequest introduction ajax tutorial jsp example xmlhttprequest introduction


PHPBuilder.com:
Dynamic XML with PHP
August 20, 2007 @ 12:48:00

PHPBuilder.com has a new tutorial posted today with a look at the easy creation of dynamic XML with the data from a database.

In this article I will show how to generate dynamic XML documents with Object-Oriented PHP. Before I get started, let's get right to the heart of this functionality. Although the code may look fancy, being packaged up inside objects and inheritance, the key elements of this functionality rest in the the mysql_list_fields() and mysql_num_fields() functions.

The XML is built manually with the tags assigned to a string as they are built. The information is from a simple query to select all from a user-defined table and is output with a UTF-8 character encoding. They also include a Javascript (download) that helps in making an XMLHttpRequest connection to fetch the XML you've created and pull it in.

0 comments voice your opinion now!
dynamic xml create database xmlhttprequest ajax tutorial dynamic xml create database xmlhttprequest ajax tutorial


PHPBuilder.com:
AJAX and PHP Part 2 - XML Communication/Processing
June 29, 2007 @ 16:22:06

PHPBuilder.com has posted part two of their look at combining Ajax and PHP. They take things a step further than last time and look at the actual communication between the script and the server.

AJAX and PHP 5 both have powerful features for processing and using an XML document. XML is a method of formatting data often for communication purposes between different computer systems. In this article, we will show you how to access an XML document with AJAX!

They create a script that can load the XML information from a file and echo it back out to the waiting client script. They also include the other half - the client-side javascript that grabs the XML information, parses it, and pushed it into a javascript object for easy access.

1 comment voice your opinion now!
ajax xml communication process client server xmlhttprequest tutorial ajax xml communication process client server xmlhttprequest tutorial


Zend Developer Zone:
"Building Your Own Ajax Web Applications" (Book Review)
September 29, 2006 @ 09:15:00

The Zend Developer Zone has posted a new book review of one of SitePoint's web development related titles - "Building Your Own AJAX Web Applications".

I'm way behind on my book reviews. I've got a stack that's still knee-high and I know that there are more on the way. So let's pop one off the stack and take a peek into it shall we? This time it's "Building Your Own AJAX Web Applications" by Matthew Eernisse and published by SitePoint.

He details the contents, including the Preface. The book gives:

  • an overview of Ajax
  • an inside look at the XMLHttpRequest object
  • the asynchronous nature of it
  • making POST requests
  • making applications compatible with screen readers
  • and a deeper look at what Ajax is and does
Of course, Cal explains them all in the post, giving a more complete look at each of the topics.

0 comments voice your opinion now!
book review ajax web application xmlhttprequest sitepoint book review ajax web application xmlhttprequest sitepoint


Jacob Santos' Blog:
XMLHttpRequest Quirks and PHP
July 24, 2006 @ 06:46:02

New today on his blog, Jacob Santos has posted some of the quirks that he's found in his dealings with PHP and the XMLHttpRequest object for Ajax comunications.

I didn't find the AJAX frameworks much use while I was working on my current project. I'm sure they are well thought out and designed, but after going through two or three, I was more lost than when I started. I decided then that I should learn how this whole AJAX thing works from the ground up. Turns out XMLHttpRequest isn't all that difficult, once you get past a few JavaScript cross browser hiccups.

He starts off talking about the PHP backend including the three methods you can display the information (return the content) back to the calling script. From there, it's on to the (two) quirks:

  • Don't Create an Instance of the Same Object For multiple Tasks
  • Always Call XMLHttpRequest Object First

Both quirks come with their own code an an explaination as to what the real issue is and how to work around it in your code. All of the changes he mentions, though, are on the client-side, leaving the PHP untouched.

0 comments voice your opinion now!
xmlhttprequest ajax quirks return xml html json xmlhttprequest ajax quirks return xml html json


TheDailyWTF.com:
Client-Side PHP
April 13, 2006 @ 07:03:29

The Daily WTF post for today bears mentioning if for nothing less than to show how to not do things. It has an interesting twist on the whole Ajax craze that's going on in the web today, and takes it to a really scary, pointless level.

The introduction of the XMLHttpRequest component (*) opened the doorway for a new breed of "fancy schmancy" web applications like Flickr, GMail, etc. This, in turn, spawned an entire sub-industry and a new series of buzzwords seemingly based on the names of household cleaning chemicals. It even incremented the current version of the Internet to 2.0.

That said, it should come as no surprise that this Borax-technology has also empowered "certain programmers" to create new perversions in information technology never imagined before. Gustavo Carvalho discovered what happens when XMLHttpRequest and the Eval() function in PHP are combined. I'll leave it to your immagination as to what the server-side looks like ...

You should definitely check out the code on this one - using evil() is bad enough, but passing code back to the PHP server like that is just wrong (and a huge security hole).

1 comment voice your opinion now!
thedailywtf client-side ajax xmlhttprequest eval thedailywtf client-side ajax xmlhttprequest eval


Evolt.org:
AJAX Login System using XMLHttpRequest
January 11, 2006 @ 06:50:33

On AjaxDeveloper.org today, there's this new post with a pointer to an Evolt.org article released today about the creation of a login form with Ajax (and some help from PHP).

I started a project on the weekend that I wasn't sure was possible: creating a fully secure "ajax"-powered login system, ideal for blogs, forums, and other similar sites. I had a barebones secure case working within a few hours, and a few more hours gave the final result that I will share today.

They talk about how it's all structured, how the Ajax and PHP work together to make it happen, and what the end result looks like. They also link to a demo of the scripts where you can also download the pieces to get your own login working...

5 comments voice your opinion now!
ajax login form xmlhttprequest backend example ajax login form xmlhttprequest backend example



Community Events











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


hhvm package release component unittest introduction application database composer language opinion security support install hack framework performance facebook podcast symfony2

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