|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Permissions error xml file on IIS on same server in PHP
I have a a PHP script which produces xml document based on url parameters passed into it. I then use javascript to fetch this using AJAX requests, and everything works fine.
However, if I try the same technique server side i get a permissions error, saying I am not authorized to access the resource. I am using the integrated authentication for IIS. Is there a way to allow scripts on the same server to talk to the PHP script whilst still forcing browsers to pass their credentials each time? Thanks! |
|
#2
|
|||
|
|||
|
sorry to *bump* but i was wondering if anyone could provide any help
Thanks! |
|
#3
|
|||
|
|||
|
I don't understand what you're asking.
What do you mean "if I try the same technique server side"?
__________________
====== Doug G ====== I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain |
|
#4
|
|||
|
|||
|
Well its an AJAX app, so the client browser requests the xml doc, and this works fine, the browser passes the user's network credentials and it all works.
However there is also a need to get the xml document from a PHP script, so really it is the PHP application that requets the xml document. Because of this it doesnt pass the credentials then I get an error because permission is denied to access the resource. |
|
#5
|
|||
|
|||
|
Well then you'll need to give permissions on the file to the web server user account along with the authenticated user.
|
|
#6
|
|||
|
|||
|
How would I do this?
Thanks! |
|
#7
|
|||
|
|||
|
Use windows explorer, open the properties for the file, click the security tab.
|
|
#8
|
|||
|
|||
|
How do I find the account for the web server? Also, how to I give access to the authenticated user? It could be any user on the network. Thanks.
|
|
#9
|
|||
|
|||
|
typically in an IIS web server the user account IUSR_<computername> is the user account used for anonymous web surfers. Once a user authenticates to IIS, IIS will impersonate the user account of the logged-on user.
The rest of your question is a windows file permissions question. |
![]() |
| Viewing: Dev Shed Forums > System Administration > IIS > Permissions error xml file on IIS on same server in PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|