Hi all,
Am helping out a friend with a project, but have come across a slight snag, probably made worse by the fact my PHP knowledge is quite limited!
Basically, the bit I currently need help with is in a php script which pulls an XML file from the web, and saves it to the server that the script is running on.
This was all well and good, until the original data provider has changed their service slightly, and now requires authentication before the xml data can be viewed.
The script had been using get_file_content and passing it the URL to the .xml file. However, this is now failing when you bring in authentication!
When browsing via IE/FF to the .xml file, it's bringing up the standard IE/FF username/password box, so I believe this is just standard HTTP authentication, similar to using http://user:[email protected], which I've discovered doesn't work in get_file_content
So, good people of OCUK:HGP, can anyone help us out, or provide some pointers on how this could be achieved?
Thanks in advance!
Garry
Am helping out a friend with a project, but have come across a slight snag, probably made worse by the fact my PHP knowledge is quite limited!
Basically, the bit I currently need help with is in a php script which pulls an XML file from the web, and saves it to the server that the script is running on.
This was all well and good, until the original data provider has changed their service slightly, and now requires authentication before the xml data can be viewed.
The script had been using get_file_content and passing it the URL to the .xml file. However, this is now failing when you bring in authentication!
When browsing via IE/FF to the .xml file, it's bringing up the standard IE/FF username/password box, so I believe this is just standard HTTP authentication, similar to using http://user:[email protected], which I've discovered doesn't work in get_file_content
So, good people of OCUK:HGP, can anyone help us out, or provide some pointers on how this could be achieved?
Thanks in advance!
Garry