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.

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 ...

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 ...

Store datasets directly in shared memory with PHP

Jan 17, 2012 ... Read from segments. Reading from shared memory segments is simple. All you
need is an opened segment and the shmop_read function. This function accepts
a few parameters and works similarly to fread . See Listing 3 to read the contents
of a file with PHP.

PHP renewed: Composer for PHP dependency handling

May 13, 2015 ... In April 2011, two PHP developers, Nils Adermann and Jordi Boggiano, decided
that PHP needed a new solution to the dependency-handling problem and
began working on one. They released Composer on March 1, 2012. In Composer
you create a configuration file specifying the third-party libraries that ...

Develop, deploy, and manage your apps in the cloud

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