View Full Version : delete subdomains with httpsocket class
mmgenius
01-20-2004, 04:37 AM
i'm trying to delete a subdomain with the httpsocket class but that don't work. Has anyone a solution? this is my script:
$sock->query("/CMD_SUBDOMAIN?domain=$domain&action=delete&select1=$oldSubdomein&contents=yes&delete='Delete Selected'");
$result = $sock->fetch_parsed_body();
l0rdphi1
01-20-2004, 05:54 AM
Before that $sock->query you probably need a:$sock->set_method('POST');Should work.
mmgenius
01-20-2004, 07:47 AM
I tryed this also but it don't work. :(
mmgenius
01-20-2004, 08:02 AM
I tried pasting the query in my adresfield of internet explorer, and when i do this, he said he can't find the page, but when i look in direct domain the subdomain is gone.
l0rdphi1
01-20-2004, 08:52 AM
Yes, I see. You need to seperate the "file" and the "query string" bits:$sock->query("/CMD_SUBDOMAIN","domain=$domain&action=delete&select1=$oldSubdomein&contents=yes&delete=Delete Selected");Or this even works:$sock->query("/CMD_SUBDOMAIN",array( 'domain' => $domain, 'action' => 'delete', 'select1' => $oldSubdomein, 'contents' => 'yes', 'delete' => 'Delete Selected' ));
mmgenius
01-20-2004, 09:03 AM
ok, now it works, thx very much
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.