I declared the variable "$sld" in check the domain is available or not. The domain checking code as follows
public function domaincheck(Request $request)
{
ini_set('max_execution_time', 300);
//set_time_limit(300);
$sld = $request['sld'];
$tld = $request['tld'];
$response = file_get_contents('https://resellertest.enom.com/interface.asp?command=check&sld='. $sld .'&tld='. $tld .'&uid=resellid&pw=resellpw&responsetype=xml');
$data = simplexml_load_string($response);
$configdata = json_encode($data);
$final_data = json_decode($configdata,true);
<!--Domain Name Suggestions -->
$response1 = file_get_contents('http://resellertest.enom.com/interface.asp?command=GETNAMESUGGESTIONS&uid=resellid&pw=resellpw&SearchTerm='. $sld .'&MaxResults=5&ResponseType=XML');
$data1 = simplexml_load_string($response1);
$configdata1 = json_encode($data1);
$final_data1 = json_decode($configdata1,true);
}
Here I declared the variable $sld for the first api url and i need to pass the search term value for $sld variable in the second api url (SearchTerm). If i pass the $sld variable in the url I got an error "searchterm is missing" Please suggest any solutions
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2wYh03x
via IFTTT
Aucun commentaire:
Enregistrer un commentaire