SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can a php file become locked on a busy server?

    Hi.

    I have a php script which calls in an array (stored in it's own file - array.php) using require().

    My website is currently massively busy, and it seems that this array file is either becoming locked or possibly corrupted by too many requests at once.

    I can resolve it by overwriting the file with a backup.

    Can a file become locked in this way?

    Is there anything I can do about it?

    Cheers.
    Lee.

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,810
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MrLeePHD View Post
    I have a php script which calls in an array (stored in it's own file - array.php) using require().
    Can you elaborate on this a bit more. Are you using any fopen/readfile/fwrite, etc functions?
    Be sure to congratulate xMog on earning April's Member of the Month
    Go ahead and blame me, I still won't lose any sleep over it
    My Blog | My Technical Notes


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
  •