1.

Solve : Php and Server?

Answer»

I am confused about an situtation.Let us suppose that there is a website www.web.com/in.php When a client clicks that link , the server EXECUTES the php code contained in the file in.php and delivers the result produced by the in.php to the client
But let us suppose that client A ACCESSES the website and the server has started executing in.php and in the meantime client B clicks the same link i.e www.web.com/in.php (while server is still PROCESSING A's request, suppose the php code takes a considerable time to execute) then what the server would do??
Will it deliver client B the same result produced by running in.php from A's request or would it run a seperate instance of the in.php for B and deliver its result to B??
But if second case is the TRUE then if the in.php want's to access some database would there not be a deadlock between the two in.php's (running simultaneously because of simultaneous request by A and B), then how the server manages?

Please help me SOON...



Discussion

No Comment Found