Jump to content

posting data?


garyed

Recommended Posts

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? 

Link to comment
https://forums.phpfreaks.com/topic/278799-posting-data/
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/278799-posting-data/#findComment-1434223
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.