Manipulating Existing Images PHP / Dynamic Images
Another function of the GD Graphics Library is the ability to manipulate images that have already been created and are available on your site.
Error Handling PHP / Debugging and Error Handling
Every website will encounter errors from time to time. Most sites will not have any error handling in place and the visitor will most likely receive a cryptic programming error. This can turn visitors away as they don't know what is happening. The way around this is to provide some error handling in your scripts. By testing for errors at crucial stages (e.g accessing a database) you can provide a friendly error message for the user. This tutorial will show you how the error handling functions for the LATEdownload v2 script have been written and how you can use them in your own site.
File Processing: Introduction PHP / File Operations
An alternative to using a database to store data is to use what are known as flat files. These are basically text files that are stored on your server that you can use to store your data, change, manipulate and generally use how you want.
Viewsource PHP / Functions
A number of websites, including php.net, allow you to view the source code of their PHP pages. This is usually to allow you to see how the page is put together and how the PHP code itself is written. Usually, it is not possible to view the PHP source but with a built in function in PHP, you can.
HTML Templates PHP / Templates
Most sites use a standard template throughout the whole website. The header and footer data is stored in a .php file and loaded for each page allowing easy maintenance. This tutorial will show you how to get PHP to dynamically choose which file to include based upon the page currently being viewed.
Counting Rows PHP / Databases
You might want to be able to count the number of rows within a database table to show useful information to users. This has been done on the Tutorials Index on Olate to show how many tutorials are available. It is very easy to do with only a few lines of code because PHP has a built in row (or record) counting function - mysql_num_rows.
Basic C++ Functions C and C++ / Functions and Classes
Functions are bits of code that the program jumps to in order to do certain tasks. The main function holds the main code (the code that is executed first) and where the other functions are called from. Variables can be passed into and returned from a function.
Control Structures - Introduction ASP / Getting Started
A control structure is a programming structure that allows your script/program to make decisions based on a certain set of commands and on the information provided. Controlling the flow of your program allows you to make more flexible programs - you will struggle to find a complicated program without a control structure in it.