imperium2335 Posted December 1, 2011 Share Posted December 1, 2011 Hi, I am developing a large application where I have PHP files that have a number of 'modes'. A typical AJAX query in my app will look something like this: $.post('record-control.php', {target:target, mode:'FETCH_PHONE_NUMBERS'}, function(data){ $('#myDiv').html(data) }) ; I was thinking that if many users are using my app the file record-control.php could have potentially dozens of requests to it per second. Will this be a problem? Could the file become locked when users are using it which would result in other users have data access problems? Generally I don't think so, but I am just wondering. What do you think? Quote Link to comment https://forums.phpfreaks.com/topic/252195-php-file-locking/ Share on other sites More sharing options...
trq Posted December 1, 2011 Share Posted December 1, 2011 Could the file become locked when users are using it which would result in other users have data access problems? No, there are plenty of sites around that have more than a few dozen request of the same file at the same time. Quote Link to comment https://forums.phpfreaks.com/topic/252195-php-file-locking/#findComment-1292963 Share on other sites More sharing options...
imperium2335 Posted December 1, 2011 Author Share Posted December 1, 2011 Thanks Thorpe, Just another thing, is the concept of having modes in a PHP file a good idea? or is there a better way? Quote Link to comment https://forums.phpfreaks.com/topic/252195-php-file-locking/#findComment-1292965 Share on other sites More sharing options...
trq Posted December 1, 2011 Share Posted December 1, 2011 I have no idea what your talking about. Quote Link to comment https://forums.phpfreaks.com/topic/252195-php-file-locking/#findComment-1292968 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.