Hello,
I am having a problem reading xml file from url. Please watch my simple code bellow
$dom=new DOMDocument();
$dom->load("https://www.voipinfocenter.com/API/Request.ashx?command=validateuser&username=examplereseller&password=987qwer&customer=excust&customerpassword=1a2b3c");
But the its not being loading rather giving warning as follows -
Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "https://www.voipinfocenter.com/API/Request.ashx?command=validateuser&username=examplereseller&password=987qwer&customer=excust&customerpassword=1a2b3c"
But you can see from browser with the url https://www.voipinfocenter.com/API/R...assword=1a2b3c
It's giving output as bellow
<ValidateUser>
<Customer>excust*examplereseller</Customer>
<Result>Failed</Result>
<Reason>Reseller/Password combination unknown</Reason>
</ValidateUser>
Can anyone please help me?
Thanks.



Reply With Quote


Bookmarks