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?
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?
file_get_contents or curl will allow you to set the user authentication. take the string data and pass into simplexml_load_string.
$xml = simplexml_load_file("http://username:password@url/path/file.xml");
Try that :)