Hello,
I'm trying to use the DirectAdmin API in a PHP application I'm writing.
Specifically when I try and get the list of ftp accounts (CMD_API_FTP) I get an empty array.
Upon further inspection I found this strange behavior to happen only when I'm working locally from a WAMP server I created on my local machine
When the code is uploaded to the server the command works fine and ftp accounts are listed as expected.
What I've tried:
Thank you for your help!
Edit: Spelling
I'm trying to use the DirectAdmin API in a PHP application I'm writing.
Specifically when I try and get the list of ftp accounts (CMD_API_FTP) I get an empty array.
Upon further inspection I found this strange behavior to happen only when I'm working locally from a WAMP server I created on my local machine
When the code is uploaded to the server the command works fine and ftp accounts are listed as expected.
What I've tried:
- editing hosts file to point to my server
- Enabling the "Prevent Blacklist Localhost"
Thank you for your help!
Edit: Spelling