| От | Alan Hodgson |
|---|---|
| Тема | Re: PostgreSQL locking from PHP scripts |
| Дата | |
| Msg-id | 200611061105.29055@hal.medialogik.com обсуждение |
| Ответ на | PostgreSQL locking from PHP scripts (Amal burman <amalburman@yahoo.com>) |
| Ответы |
Re: PostgreSQL locking from PHP scripts
Re: PostgreSQL locking from PHP scripts |
| Список | pgsql-php |
On Thursday 26 October 2006 11:11, Amal burman <amalburman@yahoo.com> wrote: > postgresql database for this project. Here script one > (booking.php) tries to setup a lock for update and ask > user to fill-up the form. Now when the user fill-up > the form and submit it for update, second script > (update.php) update the database and releasing the > locks. You can't do this kind of thing in PHP. PHP resets the database connection between scripts. The script is finished as soon as the page is delivered to the client. Also, web connections are stateless and there is no way to even know what web server process or database connection you'll be getting on subsequent page views. -- "It is a besetting vice of democracies to substitute public opinion for law." - James Fenimore Cooper
В списке pgsql-php по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера