PHP class for communicating with DA

Hello,

Looking at this, the location member of your $tab array should be set to CMD_SELECT_USERS:
Code:
 'location' => 'CMD_SELECT_USERS',
Good luck.

Phi1.
 
With your fix output is ( location => 'CMD_SELECT_USERS' ):
Code:
Cannot Execute Command
 
 
 
Details

Empty post

with location => '/CMD_SELECT_USERS' output is:
Code:
Error: document not found
 
Last edited:
Oh, here we go; CMD_SELECT_USERS is a POST-only form.

You need a
Code:
$da->set_method('POST');
somewhere before the query. :)
 
That looks like it should work now.

One last posibility: Try adding this somewhere before the query:
Code:
$da->doFollowLocationHeader = FALSE;
Phi1.
 
Since update of latest DA 1.23.1 it isn't working anymore :s None of the plugins :s

Getting a bit tired about Da's way of updating things!
 
Last edited:
Warning: fsockopen(): no SSL support in this build in /usr/local/directadmin/plugins/billing/admin/include/da.api on line 161

It is compiled with php (configure_ap2_php)

Recompiled it Again and it worked. Maybe this should be standard, with-openssl option. (don't know why it didn't take it the first time when upgrading to apache 2)
 
Last edited:
Add:

--with-openssl \

to the /usr/local/directadmin/customapache/configure.php_ap2

configuration file --> WITH leading "\"

and do a build ./build php_ap2
 
--with-openssl IS supposed to be standard. Not sure what happened with this release. :(

Phi1.
 
It never was, the same for IMAP. Once you compiled php again after first install you don't have these functions anymore!
 
Hello,

I assume you mean change file permissions of a file on a remote server? If so, then no; this class can't do that.

Phi1.
 
You can chmod files through the DirectAdmin filemanager, but you can not do it through the DA api. There is no point to. It should work within your php scripts as long as its configured correctly and you have safemode off.
 
Back
Top