HOME
|
ABOUT US
|
PRODUCTS
|
DOWNLOAD
|
HOSTING COUPON
|
TEMPLATE
|
REGISTER
| FORUM |
CONTACT
::: Member Login :::
Username
Password
Forgot your password ?
::: PHP Turtotal :::
Basics & Beginner
(3)
Date & Time
(1)
Sessions & Cookies
(1)
Counters & Logging
(2)
Databases
(0)
Email & Mailing Lists
(0)
Membership Systems
(0)
User Authentication
(0)
Security
(1)
::: PHP Example :::
Arrays
(1)
Code Highlighters (3)
Database Functions (2)
Date & Time (5)
E-Mail
(3)
Forms
(5)
Guestbooks
(1)
Logging
(1)
Miscellaneous
(2)
Password Generators (3)
Randomizers
(3)
String Manipulation (4)
User Authentication (2)
::: Download Center :::
PHP Version
Free Ebook
Online Project
::: Search On T4VN :::
Search On Tutorials
Search On Example
Search On News
::: T4VN Statistics :::
PHP Scripts : 23
PHP Example : 35
PHP Tutorials : 8
PHP News : 8
Total Coupon : 22
Other Tutorials :
Member : 51
Visits : 26027
Member Online : 3
Home
/
Randomizers
Today :
Random ID Strings
Works best as an include file. The functions will return a string of random characters of any specified length. You choose upper&lowercase letters and numbers, numbers only, upper&lowercase letters only, or lowercase letters only. Also includes a function to create anti-robot images if you have a directory with images in it. (named a.gif, b.gif, etc.) You need upper and lowercase images and number images. Very handy for user sign-ups!
Random Text State
Have you ever wanted to have your text randomly inserted in uppercase or lowercase for any specific reason? Well now you can do it with my handy function that uses moduls division to output the same result everytime! The usage of this function is quite simple just go:
Random Picture Display
This code will display a picture at random from the specified directory.
The $file_dir variable is the relative path to the pictures folder.
The $f_type variable is the extension of the image files that you wish to display. In the example, all the files that I wish to display end in "tm.jpg"
Finally, you must ensure that the second argument in the explode function matches the number of characters specified in the extension variable. In my example the digit is 6 because my extension (tm.jpg) has 6 characters.
::: PHP Scripts :::
Auctions
(1)
Banner Exchange
(1)
Calendars
(1)
Chat Related
(0)
Classified Ads
(6)
Content Manage
(1)
Counters & Trackers
(0)
Customer Support
(1)
Games
(2)
E-Commerce
(2)
Email Related
(0)
Knowledgebase
(0)
Forum / Boards
(2)
Guestbooks
(2)
Image Galleries
(1)
Miscellaneous
(0)
Music Libraries
(2)
News Publishing
(1)
Polls and Voting
(0)
User Authentication
(0)
::: Other Tutorials :::
Powered By
T4VN.NET
- Version 2.0 - CopyRight @ T4VN.NET 2005-2006