Jump to content

Database consistency


tobben24

Recommended Posts

I am self-taught in php, and there for lacks some of the fundamental php knowledge....

 

I an wondering if a php code snippet always will run once to user has started loading it? (If I assume that the server is always working)

 

What happens to the php code when the user hits the 'esc'-button?

 

The reason I ask is due to database consistency. I have a database where multiple tables are dependant of each other. So sometimes I must run multiple sql-statements sequetially, which can lead to inconsitency if the php code does not run compleately.

 

I apologize for bad english:)

 

- Toby

Link to comment
https://forums.phpfreaks.com/topic/224559-database-consistency/
Share on other sites

Experiment! Create a php script that takes two minutes to execute - at the end of the script have it write a file on your server - once you 'call' the script via your browser - immediately shut down your browser - wait 3 mins then go check to see if the file was written

 

Well, it seems that php script stops running...

 

Is there a way to ensure the a code snippet will run completly, even if the user quits or hits the 'esc' button?

 

Experiment! Create a php script that takes two minutes to execute - at the end of the script have it write a file on your server - once you 'call' the script via your browser - immediately shut down your browser - wait 3 mins then go check to see if the file was written

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.