Title: Message

 

Do I need to do something else first?  I’m not messing with the “add nameserver” or “delete nameserver” stuff... should I?  Does that have anything to do with the modification scripts?  Even some suggestions of what to TRY would be helpful.  I’m stuck as stuck can be.

 

Here’s my code:   (I’ve set the cookie, and it is working fine)

 

===================

$cmd=array('protocol'=>'XCP',

          'action'=>'modify',

          'object'=>'domain',

          'cookie'=>$cookie,

          'registrant_ip'=>$REMOTE_ADDR,

          'attributes'=>array('data'=>'nameserver_list',

                    'nameserver_list'=>array(

                              'name'      => 'cns1.idirect.com',

                               'sortorder' => '1',

                               'action'    =>'update'))); 

 

I think you've missed off an array index for the nameserver_list array.

 

Remember, "updates" can have multiple entries in one query, so you'll need to make an array of an array, i.e. nameserver_list[0] is an array containing your update, nameserver_list[1] could be another update, and so on.

 

HTH,

Andy.

 

   

Reply via email to