<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1025118" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1025118</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1158124</link>
    <description> &lt;p&gt;okay thanks&lt;/p&gt;
 </description>
     <pubDate>Sun, 05 Sep 2004 03:15:56 +0000</pubDate>
 <dc:creator>Gary King</dc:creator>
 <guid isPermaLink="false">comment 1158124 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1158043</link>
    <description> &lt;p&gt;go to &lt;a href=&quot;http://www.hotscripts.com&quot; class=&quot;bb-url&quot;&gt;http://www.hotscripts.com&lt;/a&gt; and type in myLounge. This is a thing to create your own subdomains&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Sep 2004 12:29:38 +0000</pubDate>
 <dc:creator>heebiejeebieclu</dc:creator>
 <guid isPermaLink="false">comment 1158043 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1158020</link>
    <description> &lt;p&gt;TBH the solution that Andy has come with is the best one.  I too have used a simple script in CF that works in exactly the same way and works great with a * sub-domain.&lt;/p&gt;
&lt;p&gt;It&#039;s the easiest and simplest way to do it without mucking with IIS in my case...&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Sep 2004 08:48:17 +0000</pubDate>
 <dc:creator>openmind</dc:creator>
 <guid isPermaLink="false">comment 1158020 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1157994</link>
    <description> &lt;p&gt;Wouldn&#039;t using mod_rewrite in .htaccess also work just as well, though?&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Sep 2004 01:29:58 +0000</pubDate>
 <dc:creator>Gary King</dc:creator>
 <guid isPermaLink="false">comment 1157994 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1153180</link>
    <description> &lt;p&gt;yea i knew it was shared...i was just saying&lt;/p&gt;
&lt;p&gt;alright, i&#039;ll give it a try.  thanks.&lt;/p&gt;
 </description>
     <pubDate>Wed, 16 Jun 2004 16:25:41 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1153180 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1153172</link>
    <description> &lt;p&gt;no... and since you don&#039;t have your own webserver I very much doubt your hosting provider will let you muck about with the httpd.conf anyway. (a virtual server is just a chunk of shared space on an existing server).&lt;/p&gt;
 </description>
     <pubDate>Wed, 16 Jun 2004 15:40:31 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1153172 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1153154</link>
    <description> &lt;p&gt;ok thanks&lt;/p&gt;
&lt;p&gt;will that be more of a pain than actually editing the httpd.conf file?&lt;/p&gt;
 </description>
     <pubDate>Wed, 16 Jun 2004 14:05:13 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1153154 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1153074</link>
    <description> &lt;p&gt;I couldnt wait... something like this should get you started:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;$host &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_ENV&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;HTTP_HOST&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subdomain &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;explode&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$host&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subdomain &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subdomain&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;];&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$sql &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;SELECT * FROM `database` WHERE username = &#039;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$subdomain&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039; LIMIT 0,1&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;//etc, etc, etc...&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;of course... you&#039;ll have to do some checking to ensure that:&lt;/p&gt;
&lt;p&gt;a) they&#039;ve entered the subdomain.&lt;br /&gt;
b) the subdomain isn&#039;t www.&lt;br /&gt;
c) the subdomain is a valid user&lt;/p&gt;
&lt;p&gt;in all of these circumstances you&#039;ll have to redirect to your default homepage, but a simple if statement will sort that one for you.&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Jun 2004 09:19:57 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1153074 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1153073</link>
    <description> &lt;p&gt;Then the first way I suggested should work, as long as your hosting provider can set you up a wildcard subdomain. to do that they need to setup a wildcard a record in your dns *.yourdomain.com and then setup the hosting account the sameway. That&#039;s something you may have to ask nicely for.&lt;/p&gt;
&lt;p&gt;Once they&#039;ve done that for you, let me know and I&#039;ll give you some example code.&lt;/p&gt;
 </description>
     <pubDate>Tue, 15 Jun 2004 08:54:38 +0000</pubDate>
 <dc:creator>andy206uk</dc:creator>
 <guid isPermaLink="false">comment 1153073 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/using-php-create-subdomain#comment-1153034</link>
    <description> &lt;p&gt;Well, I&#039;m going to have my own virtual server...but not dedicated.  I know it&#039;s Linux based, but past that I don&#039;t know.&lt;/p&gt;
&lt;p&gt;Its more along the lines of the hosted content is what I&#039;m looking for.&lt;/p&gt;
 </description>
     <pubDate>Mon, 14 Jun 2004 18:00:50 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1153034 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
