| TOTAL: 11 Page: 1 of 1 |
|
Generating random strings within PHP
You may use this code snips to make your own random passwords or any other random strings. In this tutorial we need to use two functions of PHP: rand() and chr() .

| Hits: | 7 | Platforms: | Windows |
| Ratings: | Last Updated: | 2008-08-30 |
Displaying Random Image in Your Page
Displaying a random image in your page is cool & fun. It's also useful if you want to display random banners or such.

| Hits: | 19 | Platforms: | Linux Windows |
| Ratings: | Last Updated: | 2008-05-19 |
Displaying random image in your page
Displaying a random image in your page is cool & fun. It's also useful if you want to display random banners or such.

| Hits: | 12 | Platforms: | Windows |
| Ratings: | Last Updated: | 2008-05-18 |
Random Affiliate
In this tutorial I will teach you how using dreamweaver you can create a Random Affiliate Script. If you are having problems feel free to e-mail us, or post a message on the forum.

| Hits: | 42 | Platforms: | Linux Windows |
| Ratings: | Last Updated: | 2008-01-06 |
Simple Banner Rotator - PHP powered banner rotator using the power of flat files
we will build a simple banner/image rotator. We will be doing this using flat files (txt files) and a couple of file functions in php. Here is what the banner txt file should look like, you simply just put one image/link pair per line. The "[$]" seperator is used to split apart the img/link pairs. We use this interesting seperator to ensure it is not going to be contained in the link or image reference. google.gif[$]http://www.google.com mkeefedesign.gif[$]http://www.mkeefedesign.com scr

| Hits: | 144 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
ADVANCED Random Signature Generator - GREAT for forum signatures!
Have you ever been a member at a forum and seen someone's signture display a random image each time the page loads? Regardless yes or no, this script will teach you exactly how to do just that. Here is a basic outline of our script: Option 1: Have the script automatically read a specified directory, and select only image files and display one random image Option 2: Type the path to each image in an array, and have the script select a random value in the array Result: Display a random signat

| Hits: | 122 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Random Affiliates - Learn how to generate random 88x31 affiliate banners
easy tutorial on how to display X random affiliates on your website. This script is great for 88*31 buttons, but it can work with any other type of image-links. What you need: - a webhost that supports PHP and Mysql So let's get started. First of all we have to create a database table. You can run this query in phpmyadmin: Code: CREATE TABLE `affiliates` ( `id` int(10) NOT NULL auto_increment, `url` text NOT NULL, `image` longtext NOT NULL, `title` text NOT NULL, PRIMARY

| Hits: | 82 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Random Password Generation - Generate a random password to a given length
This tutorial will walk you through a script that generates a random password to a given length. For this script we will be creating a PHP function to generate the code. I will not discuss functions in great detail here and so I will presume you know pretty much what they are and how and why they are useful. Put simply, using a function to do the work you can use it from anywhere in your application and therefore do not need to rewrite code. I will also presume you know where to put the funct

| Hits: | 64 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Basic Random Image - Perfect for header image rotation
In this tutorial we'll see a basic script to display random images. It's really simple but really useful too. You can use it, for example, to display different header images, so each time that a visitor comes to your website or opens a new page he gets a different header. You need to create a folder to store the images that you want to rotate (here I have named the folder "shotrotation"). All the images will have to be named "1.jpg", "2.jpg", "3.jpg" etc, images with different names wo

| Hits: | 130 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Flatfile Rotations - Easily create a randomization script with a text file
If you can't be bothered to setup MySQL databases and do loads of querying just to randomise something, this tutorial is for you: Step 1 Ok first of all make a text file called random.txt. Upload it to your server, you might as well CHMOD it to 777. Now write in some random stuff into the text file and use --NEXT-- in between the random stuff. For example, I would write: PHP Code Random 1 --NEXT-- Random 2 --NEXT-- Random 3 --NEXT-- Upload it again, or to be r

| Hits: | 41 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Randomly Generated Page - Produce a random page design every time you refresh!
This is a very simple tutorial teaching you how to generate random page designs using the power of PHP. First of all, create a new PHP page in your text editor. Begin by copying pasting the following: CODE In English, it is basically: $styleno = 1; The number of stylesheets you have made. Remember, due to the way languages like PHP count, your numbers will start with zero. So add up the number of stylesheets you h

| Hits: | 53 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Generating Random Images on your site - Banners, Logos etc...
Ever wanted to make links, or banners appear on your site in a random order? Well here's a simple script that will do just that.
This script can be used as a include, to make updating your images easier, or you can just use the code directly on the page. In this example we will use it as a include.
Insert this code into the include:
$banner[] = "
";
echo $banner[array_r

| Hits: | 83 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Random Query (Great for Affiliates)
In this tutorial, I am assuming that you already have a database set up with all of the information you want to be randomized. 2.To make a random query, we use a regular query except we use a special command that will grab rows at random: include("dbconnect.php");//this is your information to connect to the database $randomresults = mysql_query("select * from yourtablenamehere ORDER BY RAND() LIMIT 0, 10");//This is your query which I will explain in more detail below while($r=mysql_

| Hits: | 34 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Randomizing your Content
Learn how to create random content to help liven up your static web pages.
--------------------------------------------------------------------------------
Random content can make your web pages feel a bit more alive, it can also give the browsing experience for your visitors a bit of a boost. Luckily, random content is pretty easy to accomplish using PHP.
For this tutorial I'll use random quotes as an example. First of all, we need to setup an array of our quotes.

Hits:
139
Platforms:
Windows
Ratings:
Last Updated:
2006-07-17
| Hits: | 139 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |
Randomize Images, Quotes and MySQL Results
During this tutorial, I'm going to show you a couple of different methods to randomize items on your website. You can grab all of the examples in this tutorial in zip format on the last page. Randomize Lines in a File Our first method is a simple one. We're going to randomly display a line of a text file. First, we'll make our text file. I stopped by a website that I found called "Dubya Says" where they have some of the famous and hillarious quotes from United States President George W. B

| Hits: | 31 | Platforms: | Windows |
| Ratings: | Last Updated: | 2006-07-17 |