PHP programming tutorials

PHP: Delete or unlink a file on the server

Contributed by qmchenry on July 10, 2006 under PHP programming

PHP has the capacity to work with server-side files in many ways creating, opening, reading, and writing. When you are done with a file, it is a simple matter to delete it using a PHP script.

Comments
 

Solve PHP error: Cannot modify header information – headers already sent

Contributed by qmchenry on under PHP programming

This error message is commonly seen by programmers starting to use PHP. Understanding why this error occurs will help find the solution.

Comments
 

PHP: Password Protect Your pages.

Contributed by William_Wilson on June 25, 2006 under PHP programming

A simple PHP implementation which will prevent unwanted access to certain pages.

Comments
 

PHP: Upload Files to the server

Contributed by William_Wilson on under PHP programming

With PHP, it is simple to upload any file to your server.

Comments
 

PHP: Generate Dynamic Images from Text

Contributed by William_Wilson on under PHP programming

How to create images from text dynamically (quote generator)

Comments
 

PHP: Create a File on your Server

Contributed by William_Wilson on June 19, 2006 under PHP programming

Create an empty file on the server that can be written to.

Comments
 

Solve PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried…

Contributed by Rex on November 25, 2004 under PHP programming

This error message can spring up in a previously functional PHP script when the memory requirements exceed the default 8MB limit. Don’t fret, though, because this is an easy problem to overcome.

Comments
 

PHP: Break apart strings with explode

Contributed by Rex on September 19, 2004 under PHP programming

PHP has a wonderful built-in function to break apart a string using substring separators. This recipe describes the use of the explode() function.

Comments