Simple question for the one who knows the answer...
$xml = simplexml_load_file("http://url/path/file.xml");
This url is .htaccess
protected, how can I pass the login/password as arguments to the function?
$xml = simplexml_load_file("http://username:password@url/path/file.xml");
Try that :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With