garyed Posted June 5, 2013 Share Posted June 5, 2013 This might sound stupid but I was wondering when two are more people are using the site posting the same form at the same time & post data from the form goes to another php page, can that cause the data to get crossed? Also when using Curl to post data to another php page are the possibilities any different? Quote Link to comment Share on other sites More sharing options...
DavidAM Posted June 5, 2013 Share Posted June 5, 2013 Each request to the server, whether it's GET or POST (or any of the others), executes a separate instance of the script. So, yes, there could be multiple instances of your script executing at the same time. Depending on how you are managing the data, it is possible for it to "get crossed". If you are writing to flat files, it is entirely possible that data can get lost if your code does not protect against it. If you are writing to a database, you are less likely to loose data. However, if you are inserting/updating multiple tables, you need to make sure you use the proper functions to keep the relationships intact. As to using Curl, it is just another request to the server, the server really doesn't know the difference and does not care. Quote Link to comment 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.