Subdomains - need a script to create some

free web hosting
Free Web Hosting > Computers & Tech > Networking

Subdomains - need a script to create some

Network
Hi guys, ive been working on a hosting script for clans, and i would just like to ask how to do 2 things
because i havent found anything in PHP which will do it.

The things i want are:

1. Subdomains, i need the user to be able to choose a subdomain, then the script assigns it and makes it work
as of this point i have found nothing to do this (it doesnt have to be PHP)

2. Deleting full directrys

In effect removing the account, i cant find something to do this, i can find the one that allows me to delete emtey directrys
but cant find anything that allows me to just wipe a full one when a user deletes his/her account

Reply

Quatrux
about deleting the directories, you can use some system function, but also if you only have access to php, there are plenty scripts to delete directories and all other directories inside, it is as I know called recursive function call, you read the files of a dir, check if it is a dir and call the same function again and until only files are left, you just delete them, something like that. tongue.gif

About sub-domains, I think PHP won't help, you would need to call a system function, or Perl might do the work, never did anything like that..

Reply

vujsa
Well, this is kind of advanced server issues...

If you want to add or remove a subdomain from your server, you will need to have a script that can access the configuration settings of the server. This is tricky since most servers are set up so that these settings can't be accessed from an outside source or from the public directories of your system.

Your first obstacle is your hosting provider...
If your hosting account isn't dedicated or near dedicated, then you probably won't have the required server permissions to accomplish what you want to do.

The second consideration is your server software...
If you are using Apache on Linux, then your configuration settings are more than likely all in one file. Being able to select the correct parts of this file and modify it to either add or remove a subdomain is the biggest part of the process. Once that is accomplished, the actual subdomain directory or user account is must than be created for it.

Your third issue will be your server interface...
Whatever script or scripts you use will need to be smart enough to add or remove a subdomain from your server but not damage the rest of the configuration settings.

My suggestion is to do research on Apache and Linux manipulation but since that is a lot of work and you are probably not going to do it, I suggest the following:

Get a reseller account from a major hosting provider like ComputingHost. This will provide you with an actual Web Host Manager interface to create, modify, and remove new cPanel accounts (subdomains) from the server. Additionally, this also offers the user the ability to "Sign Up" for a new account. You can specify what the basic template of each new website will be and given some trickery with scripts and Apache, you can even force ads on your subdomains.

Small reseller accounts can be found for as little as $20.00 US a month.

vujsa

 

 

 


Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Recent Queries:-
  1. free subdomains - 187.44 hr back. (2)
  2. force ads on subdomains - 249.60 hr back. (1)
Similar Topics

Keywords : subdomains, script, create

  1. Php Script Organizer
    (3)
  2. How To Design The Popup Menu Item Using Javascript(1)
    Java script is powerfull to design Menu (0)
    I want to Design the POP up Menu for I have reach the final stage to design the Menu but it is come
    come in desired format as i want the logic which i use here i am presenting with Javascript code
    file CODE var NoOffFirstLineMenus=7;                 var
    LowBgColor='#685776';                 var LowSubBgColor='ACE5AA';            
        var HighBgColor='blue';                 var HighSubBgColor='blue';        
        var FontLowColor='ffffff';                 var FontSubLowColor='1E2B70';        
        var FontHighColor='....
  3. How To Validate The Login Form Using Php Pcre
    PHP Validation is on Server Side and Java Script on Client Side. (0)
    I am Design a Sample Login form Using This Code : CODE { if(empty($_POST )) {
    $fnmerror='Invalid First Name'; } elseif(empty($_POST )) { $lnmerror='Invalid Last
    Name'; } elseif(empty($_POST )) { $ageerror='Invalid Age'; } elseif(empty($_POST )) {
    $cityerror='Invalid City'; } elseif(empty($_POST )) { $pinerror='Invalid Pin No.'; }
    elseif(empty($_POST )) { $moberror='Invalid Mobile No.'; } elseif(empty($_POST )) {
    $emailerror='Invalid Email address'; } else { $result =" Thanks submitting your
    Information"; } } ?....
  4. [fl]snow Effect
    Simple Snow Efect Script (4)
    Here is a simple snow script that i will show you. Its pretty nice /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />. Let's get started.
    1.Draw a snow flake. (Using circle tool) 2.Select it and conert it to a symbol ( Ctrl+F8 ). Press
    movie clip, but don't click "ok" yet. Where it says "Linkage" click on export for action script.
    3.For identifier put in, "flake". 4.Than put in following action script: CODE amount = 100;
    mWidth = Stage.width; mHeight = Stage.height; for (var i = 0; i thisFlake =
    this.attachMovie("flake", "fla....
  5. Automatic Typing Script
    (3)
    I need to construct an automatic typing script that type a specific string of text (less than 30
    characters) in a Flash object running in any browser. It must be run in Windows. What programming
    language do I do this in? How do I do it? Another option is to have a GreaseMonkey script to do
    this within Firefox. But I have no clue how to do this. The program needs to "type" a predefined
    string into a Flash object (there isn't a text field in the Flash object). Timing must be
    controllable so that the program types 5 characters per second or whatever I define it to. T....
  6. What You Need Before You Can Create A Text-based Game..
    Using PHP, HTML and MySQL (7)
    Please comment and rate, after you finished reading! /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" />
    ################################################################# Change log: Aug 22 2008: The
    Tutorial Was Created. V1.0.0 Aug 30 2008: Added XHTML and a small CSS part. Also corrected some
    small things and added this change log. V2.0.0
    ################################################################# OK.. Many people here want to
    create text based games. Many of you ask us here on the forums: "how to create a text-based game....
  7. Create An Ftp Server On Your Pc With Serv-u
    Create An Ftp Server On Your Pc With Serv-u (1)
    QUOTE Create An Ftp Server On Your Pc With Serv-u Requirements: Serv-U No-IP.com Website
    Quote: Step 1. Getting a static IP address. Get a static address for your FTP server. You will want
    to do this as opposed to using your IP address for several reasons. First, it’s easier keeping
    up-to-date. Imagine having to change all of your setting every time your IP changed. With No-IP, the
    No-IP service runs in background on your computer and updates your current IP address with your FTP
    server’s URL (for example, you get ftp://rkchoolie.serveftp.com) . Second reason, yo....
  8. Create An Animation With Powerpoint
    (1)
    Create an Animation With Powerpoint Get your idea for the animation. Estimate how long
    this story will take you and how many slides it will be and see if you still feel like doing it.
    If you still want to try, create the layout for the first scene. Draw whatever background is
    necessary for your story. Create/Draw the character(s). For the second slide, you don't
    have to redraw the whole thing. Just duplicate the slide and move whatever needs to be moved for
    the desired animation! Continue duplicating and repeating these steps for however m....
  9. How Do You Create A Vista?
    (21)
    I'm wondering how people use computer software to create a vista. I know that I can go onto
    Google or Yahoo! or whatever and download different vistas, but I was wondering if I could make my
    own that would be realistic. What programs do you recommend? I would prefer free, open-source
    software that preferably works on Linux. As for the companies providing CDs/packages of vistas, do
    they actually create it themselves or do they have to go to take them? Just wondering.....
  10. How To Create A "user Profile" Page.
    No design (easy to add later if you want). (14)
    Hi! It was a long time ago I created a tutorial, so I've decided to create a new one
    /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> This time, I am
    going to teach you, how to create a "user profile page". Lets say I am logged in on my account, and
    want to view someone else account information (in this case, only his username, but you can add more
    things later). Then I'll press on a link, that will take me to his user profile. But before
    you can do that, you will have to create a register script, and a login script. If you d....
  11. Looking For Script
    need help (5)
    i am making a web site about cell phones (tones-themes-wallpapers) and i am looking for good script
    for my site with some nice options ....can any body help me /rolleyes.gif"
    style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" />....
  12. Myspace Gold Script
    How to install (2)
    Hello, I have a MySpace Gold Script but do not know how to use it. Can someone help!? I have a
    MySpace gold script, this will let me build my own social networking site. I dont know much about
    MySQL or Myphpadmin. This is my installation instructions To start with open the mainfile.php and
    edit the settings to reflect your own. You will need to know your mysql database settings. If you do
    not know what these are please ask you webhost and they will provide them to you. After this file
    has been edited to your server settings, make sure that it is chmod to 444 (read only....
  13. How To Create/edit/delete Ftp Accounts With Php
    Help me to create one php page to create FTP user accounts in Unix Ser (2)
    Thanks /cool.gif" style="vertical-align:middle" emoid="B)" border="0" alt="cool.gif" /> ....
  14. How To Create Your Own Proxy Site (free And Easy)
    (14)
    Tired of your school blocking every new proxy site you find? Here's an answer. Check out
    http://www.proxybuilder.com . After you fill in the information you want for your proxy site, it
    will give you the download link for your files. Then all you have to do is upload the files you
    download to your web host and you've got your own proxy website. If you find a free hosting
    site, you can make as many of these as you want! NOTE***If your site gets blocked, just make
    another account with the free hosting service. BUT UNDER NO CIRCUMSTANCES SHOULD YOU KEEP ALL YOUR....
  15. Auto-click Script
    (7)
    I wanna know how to make a "auto-click" script in web browser.... i want it to do this: I am on a
    web page...I have 3 options to click....so i want it to click one,after it reloads it waits for 25
    seconds and clicks 2nd,and again waits to reload and that 25 seconds and clicks 3rd option... is it
    possible to create that kind of script?it would be better if it was executable program so u can set
    it where exactly it should click... if you don't understand some of things i said tell me and i
    will "translate" it into English XD....
  16. How Do I Create Static Routes In Windows Xp?
    (11)
    Here's my setup: My PC connects to my Internet facing wireless router via a USB-pluggable
    wireless NIC, the IP address of which is 192.168.1.2 (netmask 255.255.255.0). The IP address of my
    router's LAN port is 192.168.1.1. The NIC which is embedded in the motherboard has remained
    disabled so far. Everything works OK, but I recently got a hold of a crossover cable, and I started
    using it to connect a laptop to my PC. So I enabled the embedded NIC on the PC and gave it an IP
    address of 192.168.2.2 (netmask 255.255.255.0, default gateway 192.168.2.2). The laptop&....
  17. Need A Javascript To Enable / Disable Buttons
    I need a script! (2)
    Hey... I need a javascript script(I think its java) What i want the script to do: You have 2
    buttons on a page 1 is a enter a different part of the site the other one is a vote which brings up
    a pop-up page. i want the script to make it so you have to click the vote button before being able
    to click the enter button. If you can do it, Thanks. post the script here....
  18. Can You Create A Folder Name "con"
    Is it possible to create a folder named "CON" in Windows? (19)
    I tried in both Windows XP Home and Professional. If you try to make a folder named "CON" Windows XP
    renames it back to what it was. So creating a new folder with the name "CON" just renames it to "New
    Folder". The bug seems like a variable that got treated as a string or vice-versa. Trying to create
    the folder from a cmd prompt failed with an error "The directory name is invalid.". This also works
    when you try to create a file called "CON", or "CON.". ".CON" shows up the way it should. Somewhere
    I found the reason that CON stands for CONsole which is device name but....
  19. Running Vba Script In Excel
    (7)
    Hi, I need help. Im generating a excel file using jakarta poi. I have added a vba to my excel
    template so that it creates a chart on file open using the data populated using the poi map. Now
    this works fine in a windows machine. But on a linux machine the vba does not execute. I need to
    release my prod in linux too and im losing time. Is there any workaround for this???? Thanks in
    advance Karthik....
  20. How To Create Exe File In Java?
    (13)
    Dear friends I came to know that one can build exe files from java application. How this is
    possible? According to me there is no such method in java to cerate exe files. However Microsoft
    used to provide a free system development kit (SDK), for Java, which includes the jexegen tool. But
    one need install Microsoft Java Virtual Machine to run such application. Some people suggest
    InstallAnyWhere.....
  21. Help Me Create A Text-based, Turn-based Game
    Similar to X-kings, Inselkampf, Ogame, Travian,etc.. (10)
    Can anyone help me create a game similar to the ones mentioned above? It isn't intended to have
    lots of graphics, but maybe a few... Any response will be much appreciated.....
  22. How To Create Your Own MSN Winks ?
    (11)
    I've been searching for ages, but couldn't find anything. As most of you probably know, you
    can download various 'winks' for MSN Messenger 7+. If I were to create a flash file, would
    there be any way for me to import it into MSN messenger and create it as a wink? There are many
    sites with enable the download of free winks (most likely bunddled with malware), but I would like
    to create my own winks. Does anyone know if this is easily accomplished? Thank you for readign
    this /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" ....
  23. You Cannot Create A File Named Con
    (10)
    did you know, that on MS Word, you cannot name a document con? nobody can figure out why! ....
  24. How To Create "ghost" Images (norton) On Windows
    (47)
    Hi, I'm tired of wasting so much time on a site when I have to reinstall Windows from scratch.
    Want to speed up the process a little since I have to install Windows XP, any Service Packs, Norton
    Antivirus and Microsoft AntiSpyware for the computers. I want to create images of good working
    Window states, but have some questions. 1. How much faster would this be compared to reinstalling
    everything manually? I will be doing this from an external hard drive. 2. What are the chances of
    an image not working assuming that the image created is good? I heard that these ....
  25. How To: Create PDF With Php
    Create on-the-fly PDF on the web server (18)
    In this tutorial, we will explore the possibilities of generating a PDF file - on-the-fly - with
    PHP. The samples that are presented can be run on astahost.com. Why would we want to generate a
    PDF on-the-fly ? Well, we might want to include in the PDF some data that must be entered by our
    surfer, by means of a html form. Or we might want to include in the PDF some data that comes from a
    database that is updated by another process. Or some other reason. You invent one. All reasons are
    legit! (1) The first thing to do, when we want to generate a PDF file with PHP, is....
  26. PHP: Writing A Generic Login And Register Script
    (15)
    Now there are basically 3 functions that a user management system provides: login, register, and
    protection. A user management system can do more than this but that is all that this tutorial will
    be covering. I will try to explain what I am doing as I go along but to fully understand what is
    happening you should have a basic knowledge of PHP, SQL, and HTML. This tutorial assumes you are
    using MySQL, adjust accordingly for a different DBMS. First off lets define the database table
    where our users will be stored. Using phpMyAdmin run this statement to create our table....
  27. How To Make A Text Based Online Game Script ?
    (24)
    Does anyone know if there is a easy was to make a text base online game, Like a free templet, or if
    anyone know how to make one and can help me.....
  28. Create Ur Own Avatar
    (12)
    CODE http://www.funnypics.cc/media/create_your_avatar.swf goto the above site. create the
    avatar. AFter creating Press PRINT SCRN in ur keyboard to copy the whole Picture. Use a
    mspaint/photoshop to resize the avatar. If u need to resize the avatar u can download the tool from
    here CODE http://www.j-q-l.freeserve.co.uk/avatarsizer.htm If u wan animated avatars go
    here CODE http://www.gifworks.com/ ....
  29. How to create a guestbook with php !!!
    Create your own guestbook. (7)
    Before you begein you need to create a database and in this database to create a table called
    "comentarii". This table should have this fields:
    +-----------------+------------------+------+-----+---------+----------------+ | Field
    | Type | Null | Key | Default | Extra |
    +-----------------+------------------+------+-----+---------+----------------+ | id_comentariu |
    int(10) unsigned | | PRI | NULL | auto_increment | | nume_utilizator | text |
    YES| |NULL | | | adresa_email ....
  30. create a folder without any name
    (10)
    Do you know, how can create a folder without any name!? When you create or rename a folder do
    following: press " Alt " and type 255 and then press Enter. be successful !....

    1. Looking for subdomains, script, create






*SIMILAR VIDEOS*
Searching Video's for subdomains, script, create
Similar
Php Script Organizer
How To Design The Popup Menu Item Using Javascript(1) - Java script is powerfull to design Menu
How To Validate The Login Form Using Php Pcre - PHP Validation is on Server Side and Java Script on Client Side.
[fl]snow Effect - Simple Snow Efect Script
Automatic Typing Script
What You Need Before You Can Create A Text-based Game.. - Using PHP, HTML and MySQL
Create An Ftp Server On Your Pc With Serv-u - Create An Ftp Server On Your Pc With Serv-u
Create An Animation With Powerpoint
How Do You Create A Vista?
How To Create A "user Profile" Page. - No design (easy to add later if you want).
Looking For Script - need help
Myspace Gold Script - How to install
How To Create/edit/delete Ftp Accounts With Php - Help me to create one php page to create FTP user accounts in Unix Ser
How To Create Your Own Proxy Site (free And Easy)
Auto-click Script
How Do I Create Static Routes In Windows Xp?
Need A Javascript To Enable / Disable Buttons - I need a script!
Can You Create A Folder Name "con" - Is it possible to create a folder named "CON" in Windows?
Running Vba Script In Excel
How To Create Exe File In Java?
Help Me Create A Text-based, Turn-based Game - Similar to X-kings, Inselkampf, Ogame, Travian,etc..
How To Create Your Own MSN Winks ?
You Cannot Create A File Named Con
How To Create "ghost" Images (norton) On Windows
How To: Create PDF With Php - Create on-the-fly PDF on the web server
PHP: Writing A Generic Login And Register Script
How To Make A Text Based Online Game Script ?
Create Ur Own Avatar
How to create a guestbook with php !!! - Create your own guestbook.
create a folder without any name
advertisement




Subdomains - need a script to create some