PDA

View Full Version : Protected Directories



Allard
04-02-2011, 05:20 AM
Hello,

I have a problem. I have the following code but it doesn't work. If I use the script like this, it works:


$sock->query('/CMD_API_PROTECTED_DIRECTORIES?domain='.$Domain);

But if I use it like this, it is not working. What's the problem?


$sock->query('/CMD_API_PROTECTED_DIRECTORIES', array('domain' => $Domain));

zEitEr
04-02-2011, 05:26 AM
So, don't use that one, which doesn't work.


Password Protected Directories
CMD_API_PROTECTED_DIRECTORIES
method: GET
domain=domain.com
returns path list of protected directories.

http://www.directadmin.com/features.php?id=514

p.s. the second one is used for POST requests.

Allard
04-02-2011, 09:10 AM
Okey, thanks. I have changed the 'method' in 'Get'. Now it works perfectly.