I've just downloaded the subdomain creator and am finding it really useful.
My problem is that I would like to have an index page inside the newly created directory, but my script doesn't have the permissions to write to it. How do I get around this?
Does your script have permissions to change permissions on newly created folder? If so you could add following php code after directory created:
// everything for owner, read and execute for others
if that does not work then you could try changing 0755 to 0775 or 0777.
It should allow creating index page after that.
Thanks, I tried that, but the script didn't have permission to change the permissions either.
I tried to extend your script to change the permissions via cPanel but only succeeded in locking myself out of the fileserver altogether! I guess that's why you're the one writing the code, not me :-D
I just created the folder and contents before creating the subdomain...
Thanks for sharing!