Php > Miscellaneous
Manage Virtual Subdomains
Manage Virtual Subdomains 0) { /* Query the DB with the current Subdomain */ $RSredirect = mysql_query ("SELECT * FROM domains WHERE subdomain='$subhost'"); /* Redirect if subhost exist */ if($Rredirect = mysql_fetch_array($RSredirect)) { header("Location: ".$Rredirect['destination']); exit; } /* Go to the default page */ else { header("Location: $DefaultPage"); exit; } } /* Go to the default page */ else { header("Location: $DefaultPage"); exit; } ?>
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