Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Warning: unlink(../template/toto) [function.unlink]: Permission denied in...

    Hello,

    I am using Apache a local server to test my PHP scripts on XP Pro and everything work perfectly. But when I am trying to use copy() and unlink() function I am getting the fallowing permission denied message:

    Warning: unlink(../template/toto) [function.unlink]: Permission denied in c:\http\myproject\controlpanel\template.php on line 152

    How can I fix that?

    Thank you.
    AC
    Why It Doesn't Work?!

  • #2
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    providing you have access, you will need to CHMOD the directory to 0777.

  • #3
    New to the CF scene
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How can I chmod a file on XP Pro?!
    AC
    Why It Doesn't Work?!

  • #4
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oops, didnt see that you were using xp pro.

    umm, is the file read only? i dont know if that makes any difference.

  • #5
    New Coder
    Join Date
    Sep 2003
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts
    toto/
    try with ending slash

    you might need backslashes with windows :-/

  • #6
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    is that a dir... looking again, it looks like it is.

    try rmdir()

  • #7
    New to the CF scene
    Join Date
    Oct 2003
    Location
    Canada
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks guys...

    Originally posted by missing-score
    is that a dir... looking again, it looks like it is.

    try rmdir()
    Many thanks, that was the problem
    AC
    Why It Doesn't Work?!

  • #8
    Senior Coder missing-score's Avatar
    Join Date
    Jan 2003
    Location
    UK
    Posts
    2,194
    Thanks
    0
    Thanked 0 Times in 0 Posts
    no problem. i cant believe i missed that fact that it was a directory. ah well, im getting old :P


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •