Jump to content


Photo

[function.unlink]: Permission denied Windows!


  • Please log in to reply
7 replies to this topic

#1 inqztve

inqztve
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 19 August 2006 - 10:39 PM

How do I solve this issue? [function.unlink]: Permission denied

I get this message while using unlink() to delete a file. All permission is enabled for IUSER on the directory I am trying to delete the file from.

Using:

Windows 2003
IIS 6.0
And PHP 5.1.4 (I think).

#2 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 19 August 2006 - 10:43 PM

Can you manualy delete the file?

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#3 inqztve

inqztve
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 19 August 2006 - 10:44 PM

Yes I can go to the folder and delete the file. I checked that.

#4 tomfmason

tomfmason
  • Staff Alumni
  • Advanced Member
  • 1,696 posts
  • Locationstealing your wifi

Posted 19 August 2006 - 10:45 PM

I am not familiar with IIS but you may have to allow the user (Apache) to interact with the desk top

Traveling East in search of instruction, and West to propagate the knowledge I have had gained.

current projects: pokersource

My Blog | My Pastebin | PHP Validation class | Backtrack linux


#5 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 19 August 2006 - 10:53 PM

I know nothing about IIS and how it all works as all my web design is done live on a server but that seems like a chmod problem - does that exist on IIS?

Was the folder created using a script?
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#6 inqztve

inqztve
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 19 August 2006 - 11:05 PM

No, the folder was not created with a script. It's actually the folder that keeps sessions data. I want to remove some of those files later. I think chmod is applicable only for unix/linux not windows.

#7 Yesideez

Yesideez
  • Members
  • PipPipPip
  • Advanced Member
  • 2,334 posts
  • LocationDevon, UK

Posted 19 August 2006 - 11:22 PM

I don't understand why you'd want to control them using a script - if you want to delete a session why not use session_destroy()?
Not a pro just an enthusiast :)

if (empty($coffee)) {$coffee=new coffee();}

Please surround any code using the CODE tags - I rarely look at anything without them

#8 inqztve

inqztve
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 20 August 2006 - 01:10 AM

Because of the same reason that we were talking before. I want to destroy some other session ---not the current one. Session destroy can not do that.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users