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.

Learning PHP, Part 1: Register for an account, upload files for ...

Jun 14, 2005 ... This tutorial walks you through building a simple workflow application with PHP.
Users will register for an account, upload files for approval, and view and
download approved files. Users designated as administrators can view uploaded
files and approve them to make the files available to all users.

Command-line PHP? Yes, you can!

Mar 13, 2007 ... Save your file and make sure to mark it with executable permissions. On most
systems, you would do this with chmod +x hello-world or something similar. Then,
execute the PHP file (by running ./hello-world or, if necessary, php hello-world )
and see whether it runs. If it does, your installation of PHP includes ...

Debugging techniques for PHP programmers

Nov 29, 2005 ... Explore various methods for debugging PHP applications, including turning on
error reporting in Apache and PHP, and by placing strategic print statements to
locate the source of more difficult bugs through a simple example PHP script. The
PHPeclipse plug-in for Eclipse, a slick development environment ...

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

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

Jan 3, 2013 ... This tutorial is Part 2 of a three-part 'Learning PHP' series teaching you how to
use PHP through building a simple workflow application. Take this tutorial if you
have a basic understanding of PHP and want to learn about uploading files from
the browser, sessions, or using PHP to process XML or JSON.

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.

Build PDF files dynamically with PHP

Jun 28, 2011 ... Walk through the entire process of building PDF files dynamically using PHP.
Experiment with open source tools, such as the Free PDF library (FPDF) or
PDFLib-Lite, and PHP code for control of the PDF format of your content.

Use jQuery and PHP to build an Ajax-driven Web page

Mar 3, 2009 ... Now that the basics of jQuery are out of the way, let's build a simple phone-book
application with PHP and MySQL. This application consists of three pieces: A
MySQL table that will hold your people and phone numbers; An index.php file
with a search form; A find.php page that queries the database table.

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, deploy, and manage your apps in the cloud

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