Strange Problem with CMD_API_FTP

cron

New member
Joined
Aug 24, 2010
Messages
5
Hi Im using the great DA API with PHP and most of my functions are working perfectly but I'm having this one problem that's been thwarting me for days now....

CMD_API_FTP: This one, single function call returns nothing! null! emptiness! Every other DA function returns a success or error message through my scripts but this one returns nothing.

I'm using file_get_contents to communicate with the server but I've also tried it with fopen and posting via PHP curl. The strangest thing is that when I echo the file_get_contents url before calling it and manually paste it into the browser address bar, it WORKS! It seems like the DA server's simply ignoring the request if its made by PHP.

Is there anyone out there that can enlighten me as to what in the world might be going on? I'm really in the dark here!

Thanks in advance!
Cron
 
Don't all shout at once!

I got this sorted - it seems using the reseller's password to run DA API functions on client accounts is temperamental and buggy. Cost me 2 days!

The solution was to pull the client's password from the database and use that in the API call instead. Not ideal but a necessary workaround.

Cron
 
I could be wrong, but my understanding is that using the reseller password will only work when your code is running as the reseller and when what you're trying to do is at the reseller level. When doing anything at the user level you need the user password. At least that's my understanding. Someone feel free to correct me if I'm wrong.

Your link appears dead.

Jeff
 
I could be wrong, but my understanding is that using the reseller password will only work when your code is running as the reseller and when what you're trying to do is at the reseller level. When doing anything at the user level you need the user password. At least that's my understanding. Someone feel free to correct me if I'm wrong.

You are correct. The API works the same way as the web interface.
 
Back
Top