Locking mysql tables with php


Posted on 16th Feb 2014 07:03 pm by admin

Hi

BACKGROUND:
I have multiple instances of the same php script running in a WAMP environment. The script contains mysql queries to lock certain tables in the database. I'm getting some very odd behaviour which would seem to suggest that the locks are not working, and that one instance of the script is reading from a table that another instance of the script should have a write lock on.

ACTUAL QUESTION:
Do two instances of the same php script running through WAMP get totally independent locks on tables in a database?

I didn't post this question in the mysql forum because although it is about locking tables, it is about locking tables from the point of view of a php script. Please move it if I have posted in the wrong forum.

Cheers

Paul

No comments posted yet

Your Answer:

Login to answer
348 Like 52 Dislike
Previous forums Next forums
Other forums

removing space from the end of a variable
i have a variable $image which contains the following url "http://tiles.xbox.com/tiles/oo/P5/0m

defining website tags
Hi,

What would be the best way to define tags for my site, such as website title, url etc.

email CODING Problem
Email coding problem.

I need to send a section of the info to $tf and the same as a Cc to $em

Escaped characters
I have a script that allows you to post news to the home page of my site. Along with the news is the

Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

Load Animated Image while cache is serve
I have a page that loads up using cache and took about 1 to 2 minutes before it loads to the page. <

session variables not working anymore
hello,
i use sessions to handle authentication within my site. my host has been changing a lot of

php libs/ browsercap.in
ok i have a host that refuses to stay current. they control my php settings and libs. is there a way

mail with attachment problems
Hi. I have the following code:
Code: else if(file_exists("site".$timp.".zip")

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash