Control process concurrency in PHP
        Posted  
        
            by Ivan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ivan
        
        
        
        Published on 2010-05-27T18:37:42Z
        Indexed on 
            2010/05/27
            18:41 UTC
        
        
        Read the original article
        Hit count: 304
        
I have programmed a simple app that every X minutes checks if an image has changed in several websites and downloads it. It's very simple: downloads image header, make some CRC checks, downloads the file, stores in a MySQL database some data about each image and process next item...
This process takes about 1 minute to complete.
The problem is I have noticed that while the server is executing this process I cannot access to any page in the website, even those that don't require MySQL.
I don't know why it is happening and I have no clue about how to fix it. Perhaps a more advanced PHP programmer can help me.
© Stack Overflow or respective owner