MySQL Query Timeout program in PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
piykumar
Forum Newbie
Posts: 2
Joined: Wed Oct 15, 2008 8:29 pm

MySQL Query Timeout program in PHP

Post by piykumar »

I'm using http://myclient.polarlava.com/ as web query interface for mysql server

Now I want to add "Query Timeout" functionality to it

For that I need to get the PID for last ran mysql query and then using kill
PID - I can kill the process on MySQL server

Please explain how to do that in PHP Thanks!

Similar to what described @ http://bytes.com/forum/thread156058.html


Thanks,
Piyush
piykumar
Forum Newbie
Posts: 2
Joined: Wed Oct 15, 2008 8:29 pm

Re: MySQL Query Timeout program in PHP

Post by piykumar »

Any help please ..??

How do I get the PID of my last select query ran from the web query
interface..?? Any php function..?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: MySQL Query Timeout program in PHP

Post by requinix »

It's just another query. Try looking around - there's the KILL query for starters.
Post Reply