Category :: CGI Articles |
Author :: Rory Canyon  |
| |
| Article Title :: Design an Online Chat Room with PHP and MySQL |
| |
|
In this article, you will learn how to design and develop a
simple online chat room with PHP and MySQL. This tutorial
explains every steps of the development, including both database
design and PHP programming. Basic computer skills and knowledge
of HTML and PHP are required. Ok, let's begin now.
Step 1: Design Database Table. Create table "chat" in MySQL
database to store basic chat information: chtime (chat time),
nick (user nickname) and words (chat message, less than 150
characters)
mysql> CREATE TABLE chat
-> chtime DATATIME,
-> nick CHAR (10) NOT NULL,
-> words CHAR (150);
Step 2: Design Structure. This simple online chat room includes
the following four sections: user log (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Dennis Pallett  |
| |
| Article Title :: PHP:Form Series, Part 1: Validators & Client-side Validation |
| |
|
Introduction Welcome to the first part of a new two-part series
on the PHP:Form web component. In this part, I will give you an
introduction to PHP:Form, its features, and why it is so useful.
I will also discuss the inbuilt validators that PHP:Form
supports. In the second part I will discuss the more advanced
features of PHP:Form.
What is PHP:Form? PHP:Form is a (new) web component, developed
by TGP PHP Scripts (http://phpscripts.pallettgroup.com). It is
designed to help you create forms with a lot less effort. When
you're creating a new PHP script, you will undoubtedly have to
create forms to allow input to be entered. There is (almost) no
PHP script without forms, and forms usually requ (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Dennis Pallett  |
| |
| Article Title :: An Extensive Examination of the PHP:DataGrid Component: Part 1 |
| |
|
An Extensive Examination of the PHP:DataGrid Component: Part 1
Introduction One of the most common tasks in PHP
is retrieving data from a database table, and creating a HTML
table to output that data. It's done in almost every project,
and it's usually a really boring task, because the code is
always nearly the same, but not just same enough to be able to
copy it.
It often looks some like this (in pseudo-code):
Create database connection Get data from a table Output
table header ( (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: this is a test  |
| |
| Article Title :: this is a test |
| |
|
this is a testthis is a testthis is a testthis is a testthis is
a testthis is a testthis is a testthis is a testthis is a
testthis is a testthis is a testthis is a testthis is a testthis
is a testthis is a testthis is a testthis is a testthis is a
testthis is a testthis is a testthis is a testthis is a testthis
is a testthis is a testthis is a testthis is a testthis is a
testthis is a testthis is a testthis is a testthis is a testthis
is a testthis is a testthis is a testthis is a testthis is a
testthis is a testthis is a testthis is a testthis is a testthis
is a testthis is a testthis is a testthis is a testthis is a
testthis is a testthis is a testthis is a testthis is a testthis
is a tes (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Sanjib Ahmad  |
| |
| Article Title :: Open Source Scripts |
| |
|
Commercial web application systems used to be expensive at one
time. With the advent of open source solutions such applications
are not only available for free but in many cases they are
superior to commercial systems.
Now anyone can have access to advanced systems and scripts such
as content management systems, forums, auction scripts,
ecommerce systems, shopping carts, photgallery applications and
more. Some example scripts are provided below.
Content Management Systems * Drupal * Mambo Open Source *
PHPNuke * PostNuke * XOOPS
E-Commerce Systems * OsCommerce
Image Gallery Scripts * Image Gallery
Message Forums * phpBB2
Blogs * Wordpress
You can install the scripts yourself on your (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Sunil Tanna  |
| |
| Article Title :: ASP, CGI and PHP Scripts and Record-Locking: What Every
Webmaster Needs To Know |
| |
|
Many of us install server-side (ASP, CGI or PHP) scripts on our
web sites, and many of this scripts store data on the server.
However, poorly designed scripts can experience performance
problems and sometimes even data corruption on busy (and not so
busy) web sites.
If you're not a programmer, why should this matter to you?
Answer: Even if you're just installing and using server-side
scripts, you'll want to make sure that the scripts that you
choose don't randomly break or corrupt your data.
First, some examples of the types of scripts which store data on
web servers include:
(Of course, many scripts in each of these (and other) categories
are well-designed, and run perfectly well even (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Dennis Pallett  |
| |
| Article Title :: Mastering Regular Expressions in PHP |
| |
|
What are
Regular Expressions? A regular expression is a pattern
that can match various text strings. Using regular expressions
you can find (and replace) certain text patterns, for example
"all the words that begin with the letter A" or "find only
telephone numbers". Regular expressions are often used in
validation classes, because they are a really powerful tool to
verify e-mail addresses, telephone numbers, street addresses,
zip codes, and more.
In this tutorial I will show you how regular expressions work in
PHP, and give you a short introduction on writing your own
regular expressions. I will also give you several example
regular (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Dennis Pallett  |
| |
| Article Title :: Screen scraping your way into RSS |
| |
|
Introduction RSS is one the hottest technologies
at the moment, and even big web publishers (such as the New York
Times) are getting into RSS as well. However, there are still a
lot of websites that do not have RSS feeds.
If you still want to be able to check those websites in your
favourite aggregator, you need to create your own RSS feed for
those websites. This can be done automatically with PHP, using a
method called screen scrapping. Screen scrapping is usually
frowned upon, as it's mostly used to steal content from other
websites.
I personally believe that in this case, to automatically
generate a RSS feed, screen scrapping is (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Dennis Pallett  |
| |
| Article Title :: PHP and Cookies; a good mix! |
| |
|
Introduction Cookies have long been used in PHP scripts,
and are a very useful function. But what exactly are cookies?
Maybe you have used then, but you still don't know exactly what
they are. Or you are completely new to cookies? It doesn't
matter, because in this tutorial I will show you exactly what
cookies are, and what they are used for.
Cookies in a nutshell Cookies are small pieces of
information that is stored on the computer of your visitors.
Each browser handles it differently, but most simply store the
information in a small text file. Internet Explorer has a
special folder, which can be found in your C:Windows or
C:WindowsSystem32 folder. You can delete all your c (read full article) |
| |
 |  |
| |
Category :: CGI Articles |
Author :: Dennis Pallett  |
| |
| Article Title :: PHP On-The-Fly! |
| |
|
Introduction PHP can be used for a lot of different
things, and is one of the most powerful scripting languages
available on the web. Not to mention it's extremely cheap and
widely used. However, one thing that PHP is lacking, and in fact
most scripting languages are, is a way to update pages in
real-time, without having to reload a page or submit a form.
The internet wasn't made for this. The web browser closes the
connection with the web server as soon as it has received all
the data. This means that after this no more data can be
exchanged. What if you want to do an update though? If you're
building a PHP application (e.g. a high-quality content
management system), then it'd be i (read full article) |
| |
 |  |
| |
| |
| [1] 2 3 Next |