PHP programming tutorials

PHP: Rename or move a file on the server

contributed by qmchenry on July 10, 2006 under PHP programming

Working with server-side files with PHP adds a great deal of flexibility to some applications. A common scenario when working with files involves creating a temporary file through uploading or other means and then renaming this file to a permanent location. This recipe describes changing the name of an existing file using the PHP function rename().

 

PHP: Delete or unlink a file on the server

contributed by qmchenry on 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.

 

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.

 

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.

 

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.

 

PHP: Generate Dynamic Images from Text

contributed by William_Wilson on under PHP programming

How to create images from text dynamically (quote generator)

 

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.

 

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.