PHP General Development tutorials
sanitising or cleaning a variable is standard practice to ensure that a variable used within a page or even within a dynamic SQL query is clean from any nasties which would cause harm to the script or database.
Related Tutorials
HTTP Request Variables
This tutorial describes: What are the predefined variables that store information from the HTTP request, A sample script to test request variables, How to promote request variables to stand alone variables.
PHP variables
This article explains PHP variables, and shows how to create, change, and use variables, as well as how to name PHP variables.
Variables in PHP
If you did not guess, variables are the most important thing in php and most other programming languages. I'll be telling you about simple variables and how to use them.
Intro To Object: Option Variables
We're going to make it where we can do different code based on the variables passed to the function.
PHP Variables
Variables in PHP are represented by a dollar sign followed by the name of the variable.
Constants
Constants just as variables are used to store information. The main difference between constants and variables is that constant value can not be changed in the process of running program. It can be mathematic constants, passwords, paths to files, etc.
Multiple variable assignment
This post shows how it is possible to assign multiple variables with the same value with PHP. This can be useful if initializing multiple variables with the same initial value or if needing to make multiple copies of a value and then manipulate each separately.
Using arrays
Instead of having our information (variables or numbers) in variables like $Mydata1, $Mydata2, $Mydata3 etc, by using arrays our information may be contained in an unique variable. Very often, we will create an array from data obtained from a table with only one column.
Using arrays: basics
Instead of having our information (variables or numbers) in variables like $Mydata1, $Mydata2, $Mydata3 etc, by using arrays our information may be contained in an unique variable. Very often, we will create an array from data obtained from a table with only one column.
Variables
Let's learn a little about Variables.
Shopping cart using SESSION variables
In this post I will show you how to create an effective shopping cart using PHP session variables.
Data Types and Variables
This tutorial describes: What are PHP data types, How to define variables, references, and variable variable names, How to define and use constants.
Import Request Variables
A more elegant way to import request variables in PHP.
Password Protection with PHP, MySQL, and Session Variables
Learn how to implement password protection using PHP, MySQL and session variables.
Variable Basics
Learn about variables in PHP and how they work.
PHP and MySQL - Introduction
The topics covered in this tutorial include: * PHP basics, including script structure, variables, supported types, constants, expressions, and type conversions * Condition and branch statements supported by PHP, including if, if...else, and the switch statements * Looping statements * Arrays and array library functions * Strings and string library functions * Regular expressions * Date and time functions * Integer and float functions * How to write functions, reuse components, and determine the scope and type of variables * An introduction to PHP object-oriented programming support * Common mistakes made by programmers new to PHP, and how to solve them.
Form Calculations
In this tutorial you will be learning : assigning variables, operators, outputting info.
Covering the basics of PHP
This PHP tutorial covers the echo, the if...else statement and integer variables.
PHP Contact Form
I made a simple form, but it gets the job done. You can customize it if you want, but remember to use the same form variables.
PHP Function
When you have a set of variables or want to make your code simpler, you will use a function. Creating a function is really easy.
Getting Started with PHP
Covers the basics of PHP. Introduces the PHP tags, variables, arrays, function syntax, if/else statements, and more.
PHP, The Nitty Gritty: Lesson 1
This is an introductory article on PHP programming. Some of main topics covered include: Variables, Strings, Arrays, Comparison Operators, and Control Structures.
Variables
A variable is a holder for a type of data. So, based on its type, a variable can hold numbers, strings, booleans, objects, resources or it can be NULL.
Navigation Using Switch
So these days there are ways to exploit your PHP automated navigation with selecting files from modules and including them autimatically according to the URL variables. Not good. Today I'm going to explain to you a simple method, which is safe and easily customizeable.
Using Multiple Files in PHP Programming
A detailed explanation of the methods for making and using include files in PHP, as well as passing values between included and parent files without using global variables.
Variable Scope
PHP - When traveling between two countries, you declare your goods at the border. Apply this analogy and declare variables at the border of the function that is, right when you get into a function.
Creating Your Own Log Files
Don't have access to your server logfile? Here, you will find how to create your own logfile using PHP. It is basically a small PHP script that extracted all the appropriate environment variables, put them together as a Common Logfile Format entry and write it to a file.
Using Arrays In Php
Arrays are widely used, because of the lack of features in normal variables. That's why you can find arrays is most of the common programming languages. PHP also uses arrays in a very easy way. This tutorial will cover the basics of arrays.
Sessions & Cookies
Sessions and cookies. What are they? Smoking marijuana and eating biscuits? Hell no - in the web development world they are very important functions of interactive design! The difference between sessions and cookies, though, basically revolves around where the variables are stored.
Session Management with PHP4
One of the new great features with PHP4 is the session management feature. It allows you to store variables in a session 'object' during a user visit.
PHP Arrays
When i first started learning PHP arrays confused me. I learned Perl first; arrays and variables in Perl are represented with different symbols. Not so in PHP, an array looks exactly the same as a variable, it starts with the dollar ($) sign.
Setting array keys and displaying the data
Arrays in PHP are variables which can hold more than one data item. Actually, they can hold many. This is useful if you need to hold a recordset or list of data, often needed in PHP scripts.
Collecting Form Data Variables
This is going to be another small tutorial on collecting data sent from a form and then doing something with it in PHP.
File Upload
In this tutorial we'll be creating a basic File Upload System. This tutorial only requires you (preferably) to have a basic understanding about PHP variables and loops. Although, some pre knowledge about PHP arrays wouldn't hurt either!
Introduction to Serializing
Serializing is a technique that allows you to turn variables, arrays, functions or objects from PHP into a form that can be used to store them, and when needed, convert them back into PHP. Serializing is useful for flatfile applications that store things in arrays, and are good for CMS features that can let you edit how it works to an advanced degree.
Welcome to PHP
This is a comprehensive article / tutorial on programming in PHP. It covers a variety of key topics including PHP Structure, Scalar Variables and Data, Data collection: Arrays, Operations and Comparisons, PHP Comparison Operators, PHP Logical Operators, Control Statements, The Function of Functions, and Object Orientation.
The $_FILES Global Variable
The $_FILES variable in PHP is one of the more complicated global variables in PHP. With it, you can upload files to the server and find a bunch of stuff out about those files.
Passing JavaScript variables to PHP
JavaScript is mainly used as a client side scripting language, while PHP is a server side technology. Unlike Java or ASP.Net, PHP doesn't have tools to make it work client side. That is why you need to combine JavaScript and PHP scripts to develop powerful web-applications.
Restricting External Access to .PHP Files
Sometimes, when you are writing your PHP script, you'll write Classes and Functions that you will use in your script in external files so that they might be included( ) or required( ) at any time. The same could be said about configuration files - You have certain settings in the form of variables in a external configuration file that you load in the different pages of your script so that they might be shared and edited with ease.
A Default Config.php For All Your Projects
This file contains my most commonly used functions and serve as the base from which I build whatever website/application I am working on. Instead of re writing my config files differently for each application, I have a common setup that works for me.* Application Information* Variables* FunctionsIts very simple and Ive included all the code below with numerous comments, as well as included the config.php file for download .
 
Categories