Re: [PHP] Lookup domain in directories VS database

2009-07-06 Thread Daniel Brown
2009/7/5 Martin Zvarík : > Imagine you are hosting 10.000 subdomains. Consider it done. [snip!] > > Everytime visitor hits the page you do: > > @include('t/test-subdomain.freehosting.com/conf.php') > > if (!isset($CONF)) die('such a subdomain does not exist'); vs > Everytime vi

[PHP] Lookup domain in directories VS database

2009-07-05 Thread Martin Zvarík
Imagine you are hosting 10.000 subdomains. SOLUTION #1: you create directories like: a/ b/ ... s/ s/some-subdomain.freehosting.com/ (this includes CONF.php, where you store some basic infos) Everytime visitor hits the page you do: @include('t/test-subdomain.freehosting.com/conf.php')