The right way to read files with PHP

Feb 13, 2007 ... Learn how to use the different file functions of PHP. Review basic file functions,
such as fopen, fclose, and feof, learn reading functions, such as fgets, fgetss, and
fscanf. And discover functions that process entire files in one or two lines of code.

Reading and writing the XML DOM with PHP

Dec 6, 2005 ... Reading XML using the DOM library. The easiest way to read a well-formed XML
file is to use the Document Object Model (DOM) library compiled into some
installations of PHP. The DOM library reads the entire XML document into
memory and represents it as a tree of nodes, as illustrated in Figure 1.

Read and write Excel data with PHP

Oct 4, 2005 ... Now, you can read or write Excel or Word files using XML tools like Extensible
Stylesheet Language Transformation (XSLT) or the XML Document Object Model
(DOM) functions built into the PHP programming language. In this article, I show
how to build a PHP Web application that uses these formats to ...

Command-line PHP? Yes, you can!

Mar 13, 2007 ... If the code didn't run properly, things can get a bit hairy. There are a few different
possibilities as to the cause. If you get a PHP-related error (other than something
to the effect of "program not found"), then your problem is a typo in the code. If the
PHP executable file isn't found, make sure you used the ...

XML for PHP developers, Part 1: The 15-minute PHP-with-XML starter

Feb 27, 2007 ... This first article of a three-part series introduces PHP5's XML implementation and
helps those relatively new to using XML with PHP to read, parse, and manipulate,
and write a short and uncomplicated XML file using the DOM and SimpleXML in
a PHP environment.

Develop multitasking applications with PHP V5

Aug 7, 2007 ... PHP does not support threading. Despite this, and in contrast to what most PHP
developers with whom I've spoken believe, PHP applications can multitask. Let's
start with as clear a picture as possible of what "multitasking" and "threading"
mean for PHP programming.

Learning PHP, Part 2: Upload files and use XML or JSON to store ...

Jan 3, 2013 ... Before you start. In this tutorial you will learn how to use sessions with PHP, how
to manipulate XML data with the DOM, and how to create, use, and read JSON
data in PHP. About this tutorial. This tutorial teaches you how to use PHP by
demonstrating the construction of a web-based workflow application.

Python basics for PHP developers

Feb 9, 2010 ... This article approaches the world of Python development from a PHP developer's
perspective, translating familiar PHP concepts, such as variables, lists ... needs to
deal with folders and files, you need to import the os module, as it contains
various functions and methods that help you list files, read files, and ...

XML for PHP developers, Part 2: Advanced XML parsing techniques

Mar 6, 2007 ... XML for PHP developers, Part 1: The 15-minute PHP-with-XML starter · XML for
PHP developers, Part 3: Advanced techniques to read, manipulate, and ... DOM
passes on information to the application by creating a tree of objects that
duplicates exactly the tree of elements from the XML file, with every XML ...

Using PHP and cURL for server-side caching of dynamic web pages

Jun 18, 2013 ... When using cURL to cache your website, always go through the dynamic path in
case the PHP code was modified. We will introduce a new GET variable to get
around this. The relevant sessions are not stored and should be restored when a
cache file is loaded. Minimize the cached HTML by using an ...

Develop, deploy, and manage your apps in the cloud

The IBM Cloud platform has everything you need to get started.