Dynamic Web Pages: deutschsprachiger PHP Knotenpunkt seit 1999

Dynamic Web Pages : tutorials _


PHP QuickRef

Via QuickRef gelangen Sie direkt zur gesuchten Funktion im Handbuch.



Das PHP Magazin erscheint 2-monatlich zum Preis von 9,80 €. Studenten erfreuen sich über ermäßigte Abos.

Das PHP Journal erscheint 2-monatlich zum Preis von 14,95 €. Studenten und Abonnenten erfreuen sich über bis zu 25% Ermäßigung.

PHP Solutions Magazin
Das PHP Solutions Magazin erscheint alle 3 Monate zum Preis von 8,75 €. Studenten erfreuen sich über ermäßigte Abos.

Der php|architect erscheint monatlich als digitale PDF-Version zum Preis von $3,99 USD und als Print-Version zum Preis von $8,69 USD. Im Abo gibt es Rabatt (30% Print, 15% PDF).

Tutorials: XML
Tutorial in dieser Kategorie hinzufügen
Searching and Replacing Nodes with SimpleXML in PHP 5 (2291 Zugriffe)

Want to learn how to get the most out of the “simpleXML” extension that comes bundled with PHP 5? Welcome to the last part of the series “Working with simpleXML in PHP 5.” In three tutorials, this series covers topics ranging from the basics of parsing XML files with this library, to performing advanced tasks, such as searching, extracting and replacing nodes, and interoperating with the XML DOM.

Tutorial kommentieren  Defekten Link melden

Using XML, Part 5: SOAP and WSDL (1721 Zugriffe)

In the previous article in this series I demonstrated how XML is used to make remote procedure calls with XML-RPC in PHP. This article will focus on SOAP and WSDL (both of which use XML as their underlaying method of describing data) and demonstrate how a PHP script can act as a SOAP client and auto-magically discover detailed information about a web service.

Tutorial kommentieren  Defekten Link melden

Processing XML documents with PEAR::XML_Parser (1029 Zugriffe)

Although the acronym SAX stands for Simple Access (or API) to XML, it is not that easy, that everybody instantly is able to use it. PHP provided a SAX-based parser using the xml_* functions since PHP 3.0.6, but only since PHP5 provides a wider range of XML APIs PHP and XML are getting the attention they deserve. This tutorial will show you how to use XML_Parser, an object oriented wrapper around the native PHP extension, which makes processing XML documents with PHP4 easy as cake.

SAX is an event based parser. That means that the XML document is traversed character by character and whenever the parser finds an entity (like an opening or closing tag, a processing instruction or only plain character data) it will trigger events. You PHP script may then catch these events by supplying PHP functions or methods as callbacks.

Tutorial kommentieren  Defekten Link melden

Create an Image from XML Data (1073 Zugriffe)

I had some time to kill and a silly problem to solve, which means here’s some more SimpleXML fun for you:

The Problem: It’s not really a “problem,” but FeedBurner’s FeedCountTM image is a rigid 88 pixels wide, and I wanted to include it on my homepage under the “syndicate” heading, an area that I’ve defined in my template as having only 80 pixels in width. The 88 pixels were throwing things off, so I used the width attribute of the HTML img tag to solve the problem. Unfortunately, it just squeezes the image, making the text in it appear fuzzy.

Tutorial kommentieren  Defekten Link melden

mbstring comes to the rescue (1023 Zugriffe)

I've been working with SimpleXML a fair amount lately, and have run into an issue a number of times with character encodings. Basically, if a string has a mixture of UTF-8 and non-UTF-8 characters, SimpleXML barfs, claiming the "String could not be parsed as XML."

Tutorial kommentieren  Defekten Link melden

Add Children with SimpleXML (1284 Zugriffe)

I was very excited today while glancing through the code in ext/simplexml/simplexml.c to find some, as of yet, undocumented methods in PHP’s SimpleXMLElement class. This discovery came after I’ve spent several hours over the last couple of nights banging my head against the desk to figure out a way to create a class that extends SimpleXMLElement and adds a new method for adding a child, which would have to use DOM in order to work—or so I thought.

Tutorial kommentieren  Defekten Link melden

Using XML, a PHP Developer's Primer: XML-RPC, PHP and Javascript, Part 2 (1887 Zugriffe)

This is the second half of an article that began last week on XML-RPC and PHP. This week we put together the PHP RPC server and learn more about the emailValidator_validate function!

Tutorial kommentieren  Defekten Link melden

Using XML: A PHP Developer's Primer, Part 4: XML-RPC, PHP and Javascript (1665 Zugriffe)

In this article we will demonstrate how PHP can be used to call upon web services provided by third part sites via an XML-RPC server. We will also show you how to create your own XML-RPC and use client-side Javascript to invoke procedures in your PHP scripts.

Tutorial kommentieren  Defekten Link melden

Using XML: A PHP Developer's Primer, Part 3 (1571 Zugriffe)

In our last article, we touched the surface of Ajax by developing a simple email validation application. In this article we are going to delve deeper into Ajax and explore how XSL can be used on both the client side (using Javascript) and on the server (using PHP) to transform XML data into XHTML.

Tutorial kommentieren  Defekten Link melden

Using XML: A PHP Developer's Primer, Part 2 (2007 Zugriffe)

In the first part of this series, we took a look at how PHP 5 can be used to manipulate and parse XML files. In this installment, we are going to focus on Ajax, one of the most useful and topical applications of XML.
Initially, we are going to introduce Ajax and learn how to use the XMLHTTP object provided by most modern web browsers to create a live email validation form. Then we will pick up where we left off with the theme of XML and introduce XSLT, which we will use to transform our library XML from the previous article into valid XHTML code.

Tutorial kommentieren  Defekten Link melden


Folge DynamicWebPages!

PHP News als RSS abonnieren ...
Auf Twitter folgen ...
Fan werden auf Facebook ...


PHP Newsletter

Bleiben Sie immer "Up-To-Date" mit unseren Newslettern!

PHP Newsletter
PHP Trainingsletter


PHP Releases



powered by Hetzner

top Alle Rechte vorbehalten. © Dynamic Web Pages 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 top

  Seitenaufbau in 0.802 Sekunden