Php script to write .htacces file
I want to write to the .htaccess file of my clients using a php script . I have been searching for hints i do not know if its possible or not .
i have written a script to create subdomain for my clients and the script gets access via root
here is the code:
$xmlapi = new xmlapi('x.x.x.x');
$xmlapi->password_auth('root', 'password');
$xmlapi->set_debug(1);
// create sub domain
$xmlapi->api1_query($username, 'SubDomain', 'addsubdomain', array($subDomain, $domaindomain, 0, 0, '/public_html/subdomain.domain'));
maybe something similar to this could work :)?
-
Hello, PHP documents their filesystem functions at: PHP: Filesystem Functions - Manual Thank you. 0
Please sign in to leave a comment.
Comments
1 comment