SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Random Permission Problems When Uploading A File

    Hi All

    I am having nightmares regarding a random error I am getting.

    Same code is always running but ever now and then I get A Permission Denied error when uploading a file to a folder.

    Any thoughts?

    I know it's not much to go on but that is basically it. Why would it work most of the time and then not very few other times??

    Thanks

  2. #2
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Perhaps a lock on the directory whilst your service provider backs up ?

    How often ? always the same time of day ?
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming

  3. #3
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Mandes View Post
    Perhaps a lock on the directory whilst your service provider backs up ?

    How often ? always the same time of day ?

    Thanks for the reply.

    I would just say it's random. It could actually be 1 in every x but I don't know. I'll keep an eye on the time of day but I don't think it's that..

  4. #4
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If your sure its not your script I'd make a script that writes a file, logs the success then deletes it, and run it from a CRON every 5 mins for a day or so, then go look at the log, see if you can see a pattern. If theres a problem then go to webfusion and ask whats going on.
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming

  5. #5
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not really sure of anything, but why would the same script work, most of the time, then fail on occasions?

  6. #6
    Who turned the lights out !! Mandes's Avatar
    Join Date
    May 2005
    Location
    S.W. France
    Posts
    2,496
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Bad coding !!! missing error handling proceedures !! Wind blowing the wrong way
    A Little Knowledge Is A Very Dangerous Thing.......
    That Makes Me A Lethal Weapon !!!!!!!!

    Contract PHP Programming


Bookmarks

Posting Permissions

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