Php > Complete Programs
Automatic banner rotation. Randomly selects a banner for display
Automatic banner rotation. Randomly selects a banner for display read()) if (substr($entry,0,6) == "banner") $array[$i++] = $entry; $d->close(); /* pick a banner at random */ $r = random( $i ); /* Send a no-cache header, and the gif type header, and output the file. */ Header( "Pragma: no-cache" ); Header( "Expires: Monday 01-Jan-80 12:00:00 GMT" ); Header( "Content-type: image/gif"); passthru( "cat $array[$r]" ); ?>
Php Codes
Algorithms
Arrays
Authentication
Calendar
Code Snippets
Programs
Content Manage
Contest Related
Cookies
Credit Cards
DBase Related
Databases
Date Time
Directories
E-Mail
Errors
File
File System
Forms
Handling
Graphics
HTML and PHP
Informix
Ingres
InterBase
LDAP
Look and Feel
Miscellaneous
MySQL
Other
PHP Classes
Searching
Navigation
Statistics
Strings
User Manage