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? 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. 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? 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. Link to comment https://forums.phpfreaks.com/topic/252195-php-file-locking/#findComment-1292968 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.