vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Subdomains & PHP ? (https://vborg.vbsupport.ru/showthread.php?t=79210)

Guy G 04-02-2005 04:30 AM

Subdomains & PHP ?
 
Anyone know of a way to create subdomains in PHP?

Or combine PHP with some other language to create subdomains...

Any help is appriciated.

Colin F 04-02-2005 05:22 AM

I'd say that has something to do with how your server is set up...

pie 04-02-2005 08:00 AM

Quote:

Originally Posted by Colin F
I'd say that has something to do with how your server is set up...

Great opinion :p lol.

If your trying to do what i think your trying to do? Which is user.yourdomain.com or something else that dynamic you can use: mod_rewrite function and a little bit of editing on your zones is needed.

Otherwise use the control panel you have.

Dean C 04-02-2005 10:30 AM

PHP can't do this, it's entirely server-side :) You need to use a combination of wildcard DNS and mod_rewrite to accomplish user-subdomains

Breaker 04-02-2005 10:57 AM

it is possible... i just dont have the slightest clue how :P

pie 04-02-2005 11:20 AM

Quote:

Originally Posted by Dean C
PHP can't do this, it's entirely server-side :) You need to use a combination of wildcard DNS and mod_rewrite to accomplish user-subdomains

Fancy repeating me Dean?

Dean C 04-02-2005 11:47 AM

You didn't mention wildcard DNS ;)

Guy G 04-02-2005 05:10 PM

Wildcart DNS is when anything.mydomain.com will get me to the main page right?

Is that how lets say deviantart.com did it?

Dean C 04-02-2005 05:15 PM

Yep that's how they did it, you'll need to contact your host about that as I don't believe you can control it through your control panel :)


All times are GMT. The time now is 04:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03690 seconds
  • Memory Usage 1,718KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete