Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Subdomains


ghost's Avatar
0 0

is anyone aware of a way to create a subdomain dynamically from a srcipt? I can do it manually, but it would be much more convenient to automate it.

thx


Mr_Cheese's Avatar
0 1

you'll need to code an API to communicate with your website management package (i.e cPanel).

use a cURL script to log into your management area and post the required information on the create subdomain page.


ghost's Avatar
0 0

Mr_Cheese wrote: you'll need to code an API to communicate with your website management package (i.e cPanel).

use a cURL script to log into your management area and post the required information on the create subdomain page.

hmm interesting take on it, i guess that would work pretty easily in cURL…


ghost's Avatar
0 0

Whats wrong with the PHP function mkdir?


ghost's Avatar
0 0

mozzer wrote: Whats wrong with the PHP function mkdir?

shared server = safe-mode = not permitted

god i hate it….


ghost's Avatar
0 0

Is system, or passthru allowed?


ghost's Avatar
0 0

mozzer: system no passthru yes.

cheese: shit man thx i got my curl script working perfectly.


ghost's Avatar
0 0

Use passthru to execute the mkdir function. What host is this btw?


ghost's Avatar
0 0

servage, but since my curl script works im fine.