PHP comes with a full-featured file and directory manipulation API that allows you (among other things) to view and modify file attributes, read and list directory contents, alter file permissions, retrieve file contents into a variety of native data structures, and search for files based on specific patterns. This file manipulation API is both powerful and flexible - two characteristics that will endear it to any developer who's ever had to work with file manipulation commands.
This second segment of the tutorial on the PHP filesystem API takes you into deeper waters, showing you how to copy, delete and rename files; scan directories; work with uploaded files over HTTP; perform pattern matches on file names; and read and write to processes instead of files.
This tutorial is designed to guide through the initial steps of setting up Apache, MySQL, and PHP on Linux.
Harry takes us one step further into the world of Web Services. Here he explains how to build your own Web Service - a news feed - using PHP and XML-RPC.
Showing how to store and retrieve binary data in a MySQL database by using PHP.
PHP's Mail() function is a great way to send mail using a simple and standard interface that hides the complexity and quirks of various system programs that are responsible for sending mail. This tutorial will introduce you to the basics of sending mail from PHP scripts.
A PHP tutorial that covers all the basics of PHP. It is geared towards web developers with little or no PHP experience.
In contrast with other open source languages like Perl and Python, PHP lacks a robust community effort to develop a math library. This article provides an example of a PHP math library called SimpleLinearRegression that demonstrates a general approach that can be used to develop PHP math libraries.
Conditional probability -- the probability of observing one event as a result of having observed another event -- is a potentially important factor in designing intelligent Web applications. Paul Meagher introduces Bayesian inference by discussing the basic mathematical concepts involved and demonstrating how to implement the underlying conditional probability calculations using PHP.
Describes how to send XHTML with the correct mime type safely using PHP. Includes the ability to "fall back" to HTML if the viewing web-browser does not support XHTML.