Guest GreenBoy Posted September 29, 2007 Posted September 29, 2007 Hi I have a problem that a PHP script i am running is trying to write session data to a folder under 'C:\Documents and Settings\Administrator \Local Settings\Temp\php\session' but i am getting an error saying that permission to the folder is denied. I have seen many posts where people say that a folders permission status doesnt matter it just the files in it, but there are no files in it and the script is trying to write a session file to the folder - therefore the Read-Only status matters. Can any one help please. I am running WinXP PRO, SP2 with all latest patches. Thanks GreenBoy
Guest Poprivet Posted September 30, 2007 Posted September 30, 2007 Re: Cant Disable Read-Only status on Folders GreenBoy wrote: > Hi > > I have a problem that a PHP script i am running is trying to write > session data to a folder under 'C:\Documents and > Settings\Administrator \Local Settings\Temp\php\session' but i am > getting an error saying that permission to the folder is denied. > > I have seen many posts where people say that a folders permission > status doesnt matter it just the files in it, but there are no files > in it and the script is trying to write a session file to the folder - > therefore the Read-Only status matters. > > Can any one help please. > > I am running WinXP PRO, SP2 with all latest patches. > > Thanks > > GreenBoy That's an arguementative way to start; and one which I won't pursue since you're apparenlty not being open minded about it. Sorry, Pop`
Guest GreenBoy Posted September 30, 2007 Posted September 30, 2007 Re: Cant Disable Read-Only status on Folders Pop Thanks for taking the time for replying, however Im not sure that this is 'argumentative'. However in the spirit of the web - i appologise if i have offended. (Prior to my post i had spent 6 hours trying to rectify this issue, so i was not perhaps in the best frame of mind for this) However my situation seems quite clear - for some reason i cannot write to a folder, not to a particular file. (The file is being created by the PHP script) As i noted at the top i have seen many posts by Googling the web and the user groups that all seem to suggest that folders are not the issue and that its to do with the files in them... this cannot be the answer in this case and i am therefore looking for a way to ensure that windows remembers the state of the folders Read-Only option between uses on the the computer. Thats all. Is there a hack of the registry or some ofther setting i am missing to acheive this, or is this realy it - so live with it. (cant believe this is the case as people do successfully run web systems on their local host and therefore need to write session data to folders.) I should point out that i clean installed windows a few months ago, prior to which i had my systems running ok - including using my machine as a test bed for web development which required that session data be writen to a temp folder - as i am trying to do now - and this was completely successful - therefore i believe this to be a windows config problem - and i need help Any help would be greatfully recieved. GreenBoy On 30 Sep, 02:01, "Poprivet" <popri...@devnull.spamcop.net> wrote: > GreenBoy wrote: > > Hi > > > I have a problem that a PHP script i am running is trying to write > > session data to a folder under 'C:\Documents and > > Settings\Administrator \Local Settings\Temp\php\session' but i am > > getting an error saying that permission to the folder is denied. > > > I have seen many posts where people say that a folders permission > > status doesnt matter it just the files in it, but there are no files > > in it and the script is trying to write a session file to the folder - > > therefore the Read-Only status matters. > > > Can any one help please. > > > I am running WinXP PRO, SP2 with all latest patches. > > > Thanks > > > GreenBoy > > That's an arguementative way to start; and one which I won't pursue since > you're apparenlty not being open minded about it. > > Sorry, > > Pop`- Hide quoted text - > > - Show quoted text -
Guest HeyBub Posted September 30, 2007 Posted September 30, 2007 Re: Cant Disable Read-Only status on Folders GreenBoy wrote: > Pop > > Thanks for taking the time for replying, however Im not sure that this > is 'argumentative'. However in the spirit of the web - i appologise if > i have offended. > > (Prior to my post i had spent 6 hours trying to rectify this issue, so > i was not perhaps in the best frame of mind for this) > > However my situation seems quite clear - for some reason i cannot > write to a folder, not to a particular file. (The file is being > created by the PHP script) > > As i noted at the top i have seen many posts by Googling the web and > the user groups that all seem to suggest that folders are not the > issue and that its to do with the files in them... this cannot be the > answer in this case and i am therefore looking for a way to ensure > that windows remembers the state of the folders Read-Only option > between uses on the the computer. Thats all. > > Is there a hack of the registry or some ofther setting i am missing to > acheive this, or is this realy it - so live with it. (cant believe > this is the case as people do successfully run web systems on their > local host and therefore need to write session data to folders.) > > I should point out that i clean installed windows a few months ago, > prior to which i had my systems running ok - including using my > machine as a test bed for web development which required that session > data be writen to a temp folder - as i am trying to do now - and this > was completely successful - therefore i believe this to be a windows > config problem - and i need help > > Any help would be greatfully recieved. Concept check: The "Read-only" attribute has NOTHING to do with "permission." They are completely different concepts. Changing permissions does not affect the read-only attribute for a file (or a folder) and changing the read-only attribute does not influence permissions.
Guest GreenBoy Posted September 30, 2007 Posted September 30, 2007 Re: Cant Disable Read-Only status on Folders On 30 Sep, 13:41, "HeyBub" <hey...@gmail.com> wrote: > GreenBoy wrote: > > Pop > > > Thanks for taking the time for replying, however Im not sure that this > > is 'argumentative'. However in the spirit of the web - i appologise if > > i have offended. > > > (Prior to my post i had spent 6 hours trying to rectify this issue, so > > i was not perhaps in the best frame of mind for this) > > > However my situation seems quite clear - for some reason i cannot > > write to a folder, not to a particular file. (The file is being > > created by the PHP script) > > > As i noted at the top i have seen many posts by Googling the web and > > the user groups that all seem to suggest that folders are not the > > issue and that its to do with the files in them... this cannot be the > > answer in this case and i am therefore looking for a way to ensure > > that windows remembers the state of the folders Read-Only option > > between uses on the the computer. Thats all. > > > Is there a hack of the registry or some ofther setting i am missing to > > acheive this, or is this realy it - so live with it. (cant believe > > this is the case as people do successfully run web systems on their > > local host and therefore need to write session data to folders.) > > > I should point out that i clean installed windows a few months ago, > > prior to which i had my systems running ok - including using my > > machine as a test bed for web development which required that session > > data be writen to a temp folder - as i am trying to do now - and this > > was completely successful - therefore i believe this to be a windows > > config problem - and i need help > > > Any help would be greatfully recieved. > > Concept check: > > The "Read-only" attribute has NOTHING to do with "permission." They are > completely different concepts. Changing permissions does not affect the > read-only attribute for a file (or a folder) and changing the read-only > attribute does not influence permissions.- Hide quoted text - > > - Show quoted text - HeyBub the erro i am getting is this Warning: session_start() [function.session-start]: open(C: \DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session \sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied (13) does this help at all? GreenBoy
Guest Jim Posted September 30, 2007 Posted September 30, 2007 Re: Cant Disable Read-Only status on Folders "GreenBoy" <SpamDelux@googlemail.com> wrote in message news:1191166815.341346.100960@o80g2000hse.googlegroups.com... > On 30 Sep, 13:41, "HeyBub" <hey...@gmail.com> wrote: >> GreenBoy wrote: >> > Pop >> >> > Thanks for taking the time for replying, however Im not sure that this >> > is 'argumentative'. However in the spirit of the web - i appologise if >> > i have offended. >> >> > (Prior to my post i had spent 6 hours trying to rectify this issue, so >> > i was not perhaps in the best frame of mind for this) >> >> > However my situation seems quite clear - for some reason i cannot >> > write to a folder, not to a particular file. (The file is being >> > created by the PHP script) >> >> > As i noted at the top i have seen many posts by Googling the web and >> > the user groups that all seem to suggest that folders are not the >> > issue and that its to do with the files in them... this cannot be the >> > answer in this case and i am therefore looking for a way to ensure >> > that windows remembers the state of the folders Read-Only option >> > between uses on the the computer. Thats all. >> >> > Is there a hack of the registry or some ofther setting i am missing to >> > acheive this, or is this realy it - so live with it. (cant believe >> > this is the case as people do successfully run web systems on their >> > local host and therefore need to write session data to folders.) >> >> > I should point out that i clean installed windows a few months ago, >> > prior to which i had my systems running ok - including using my >> > machine as a test bed for web development which required that session >> > data be writen to a temp folder - as i am trying to do now - and this >> > was completely successful - therefore i believe this to be a windows >> > config problem - and i need help >> >> > Any help would be greatfully recieved. >> >> Concept check: >> >> The "Read-only" attribute has NOTHING to do with "permission." They are >> completely different concepts. Changing permissions does not affect the >> read-only attribute for a file (or a folder) and changing the read-only >> attribute does not influence permissions.- Hide quoted text - >> >> - Show quoted text - > > HeyBub > > the erro i am getting is this > > Warning: session_start() [function.session-start]: open(C: > \DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session > \sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied > (13) > > does this help at all? > > GreenBoy > It means that the permissions set on the folder do not allow writing to the folder. In the case of a folder, XP ignores the read only attribute. Instead, XP uses the permissions set on the folder which you can set via the security tab. Jim
Guest Nightowl Posted September 30, 2007 Posted September 30, 2007 Re: Cant Disable Read-Only status on Folders GreenBoy <SpamDelux@googlemail.com> wrote on Sun, 30 Sep 2007: >the erro i am getting is this > >Warning: session_start() [function.session-start]: open(C: >\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session >\sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied >(13) > >does this help at all? Hi GreenBoy Are you running the script from an account with admin privileges, or a limited user account? -- Nightowl
Guest GreenBoy Posted October 1, 2007 Posted October 1, 2007 Re: Cant Disable Read-Only status on Folders On 30 Sep, 18:17, Nightowl <owl@[127.0.0.1]> wrote: > GreenBoy <SpamDe...@googlemail.com> wrote on Sun, 30 Sep 2007: > > >the erro i am getting is this > > >Warning: session_start() [function.session-start]: open(C: > >\DOCUME~1\ADMINI~1\LOCALS~1\Temp\php\session > >\sess_au6q0359v429csjhoo9g1v9505, O_RDWR) failed: Permission denied > >(13) > > >does this help at all? > > Hi GreenBoy > > Are you running the script from an account with admin privileges, or a > limited user account? > > -- > Nightowl Thanks for your responces people - i have solved it. The problem was that the folder i was writing to was literaly the only one that did not havve the Users permissions set up... Admin etc was all set up with Read Write etc but this folder did not have the Users(FRED\Users) permissions at all - once this set of permissions were added everything was fine... bloody anoying as i thought all folders inhereted their parents permissions... you learn something every day. Thanks again to all who responded. GreenBoy
Recommended Posts