Search

Search for a tutorial.
You searched for: PHP

Try and catch method in php

Try and catch method in php

By krike ( www.cmstutorials.org ) in PHP

try and catch is a new object oriented way of dealing with errors

Viewed 320 times, 7 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

php upload script

php upload script

By krike ( www.cmstutorials.org ) in PHP

In this tutorial you will learn how to create a php upload script with basic security. You will also learn to pay attention to specific parts of the upload form to help you out when debugging errors.

Viewed 192 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Creating a CAPTCHA in PHP with GD

Creating a CAPTCHA in PHP with GD

By ultramega ( ) in PHP

A CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a system designed to test if input is originating from a human or a computer. This tutorial will explain how to make your own CAPTCHA using PHP and the bundled GD image manipulation library.

Viewed 82 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Simple PHP Page Template System

Simple PHP Page Template System

By ultramega ( ) in PHP

A common use for PHP is managing page templates. This makes is much easier to make changes to the layout on several pages by just editing one file. In this tutorial, I will explain some simple methods for managing templates in PHP. One involves using simple includes, and the others are slightly more advanced and flexible.

Viewed 252 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Creating an Upload Progress Bar in PHP with APC

Creating an Upload Progress Bar in PHP with APC

By ultramega ( ) in PHP

This tutorial will explain how to create an AJAX progress bar for PHP file uploads. There is no method build into PHP for returning the status of an upload in progress, so this requires a module called the Alternative PHP Cache (APC). This allows you to store data across sessions and includes built-in functionality for storing/returning file upload stats.

Viewed 135 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Creating a Calendar in PHP

Creating a Calendar in PHP

By ultramega ( ) in PHP

This tutorial will explain how to create a dynamic calendar from scratch in PHP.

Viewed 134 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Accessing the Command Line From PHP

Accessing the Command Line From PHP

By ultramega ( ) in PHP

This tutorial will explain the different methods of accessing the system command line from a PHP script.

Viewed 87 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Creating a TinyURL Clone

Creating a TinyURL Clone

By ultramega ( ) in PHP

This tutorial will explain how to create a basic clone of the TinyURL service. We will go over the database structure, creating the required PHP script, and using mod rewrite to make nicer URLs.

Viewed 99 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Creating a BBCode Parser

Creating a BBCode Parser

By ultramega ( ) in PHP

This mini tutorial will show you how to create a function that you can use on any string to convert BBCode into its XHTML equivalent.

Viewed 90 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Working With Time Zones in PHP

Working With Time Zones in PHP

By ultramega ( ) in PHP

This tutorial explains how to handle converting times to different time zones using the DateTime and DateTimeZone classes.

Viewed 78 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Autoloading Objects in PHP

Autoloading Objects in PHP

By ultramega ( ) in PHP

When writing object oriented PHP code, keeping track of required classes can be a problem. This tutorial explains how to use the autoload function to let PHP handle the dependencies automatically.

Viewed 83 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Converting Seconds to Readable Time

Converting Seconds to Readable Time

By ultramega ( ) in PHP

Sometimes, you might need to convert an integer representing seconds into a format that is easier to read. These functions can be used to turn a number of seconds into a simple readable format. This can be used for countdown scripts, which is why I also include both a PHP and a JavaScript version.

Viewed 67 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Five Tips for Writing Cleaner PHP Code

Five Tips for Writing Cleaner PHP Code

By ultramega ( ) in PHP

There are many benefits to writing clean code for any project, no matter how small. The importance of clean code becomes most apparent when you need to find an error, especially a syntax error. In the end, cleaner code means less time reading and more time coding.

Viewed 118 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Fetch Twitter Updates in PHP

Fetch Twitter Updates in PHP

By ultramega ( ) in PHP

This tutorial will explain how to access the Twitter API to fetch a user timeline using raw PHP. This will be a very basic use of the Twitter API, but it should give you a starting point if you need to do something more advanced.

Viewed 84 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo

Generating HTML Documents Using DOMDocument In PHP

Generating HTML Documents Using DOMDocument In PHP

By ultramega ( ) in PHP

In this tutorial, we will explore the PHP DOMDocument class by generating an entire HTML page without writing a single bit of raw markup. This may not be practical for most applications, but it should give you a good idea of how the basic DOMDocument methods work.

Viewed 102 times, 0 comments and a rating of

submit rating!
Show some love

delicious digg facebook stumpleupon technocrati twitter yahoo