|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
logic - PHP/MySQL simultaneously running
Hello I am planning on creating multiple PHP scripts that should constantly be running and I am wondering if PHP scripts can be run at the same time or it waits until another script finishes doing its job
If scripts can run at the same time I have a problem I am curious about Code:
views = 5 script1.php loads views from database views + 1 script2.php loads views from database views + 1 script1.php updates database - views = 6 script2.php updates database - views = 6 ^this should be 7 but can it run at the same time? is this the case? or is there a way for me to avoid all of this? thanks |
|
#2
|
|||
|
|||
|
if you are talking about two separate php pages then they can run at the same time. The database itself though should prevent the situation you described. However since the average php script takes just a few milliseconds, chances of two people trying to load the same script at that exact same time are pretty slim.
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > logic - PHP/MySQL simultaneously running |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|