How do I edit user htaccess & get domain file path within cPanel Plugin

dansgalaxy

Well-Known Member
Jan 29, 2007
91
0
156
Reading, UK
cPanel Access Level
Root Administrator
I am trying to knock up a Web forwarding plugin to provide some advanced domain control options to domain only clients in particular..

For this I need to create/edit files within the domain path (eg. /home/user/public_html/ or /home/user/public_html/mydomain.com/)

So how can I grab the url for a selected domain and whats the best way to edit files?