HOME
|
HOSTING COUPON
|
TEMPLATE
|
PHP SCRIPTS
|
LINK TO US
|
LINK
|
REGISTER
|
CONTACT
::: Member Login :::
Username
Password
Forgot your password ?
::: PHP Tutotal :::
PHP Basic
(7)
PHP Advanced
(4)
PHP Database
(2)
Coding Step By Step
(8)
PHP and AJAX
(0)
::: PHP Example :::
Arrays
(1)
Code Highlighters
(3)
Database Functions
(12)
Date & Time
(5)
E-Mail
(6)
Forms
(5)
Guestbooks
(1)
Logging
(2)
Miscellaneous
(10)
Password Generators
(3)
Randomizers
(3)
String Manipulation
(10)
User Authentication
(6)
::: Search On T4VN :::
Search On Tutorials
Search On Example
Search On News
::: T4VN Statistics :::
PHP Scripts : 65
PHP Example : 67
PHP Tutorials : 21
PHP News : 93
Total Coupon : 36
Other Tutorials :
Member : 233
::: Sponsored Links :::
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.
::: Resources :::
Links Directory
Programming
2
3
Webmaster
2
3
Web Design
2
3
Web Hosting
2
3
Other Links
2
3
Asian ShowBiz News
Teach Seo For You
Đào Tạo PHP
Thai Cuc Quyen
::: New Templates :::
::: Other Tutorials :::
Program Design
Powered By
T4VN.NET
- Version 2.0 - CopyRight © T4VN.NET 2005-2007