Hi; Is it possible to catch the clipboard event with php? like somebody has copied some text to clipboard Regards
As wmtips stated, PHP is a server-side language, so it cannot detect anything that is done on a client level. Javascript would be able to provide you with a solution. Depending on the use that the OP is after, PHP & MySQL may quite well be an overkill.
PHP and MySQL alone can do absolutely nothing of the sort, as it's a server-side language. Javascript would handle the actual clipboard event, and then if you wanted to get something a bit more advance, you can use PHP/MySQL to parse it and store it in the database or do some other functions with it. But PHP and MySQL cannot do it at all, it has absolutely no barring on anything client-side.
For IE, you can throw oncopy="" to your HTML elements (like onclick and onfocus and such) and do something. You can even then use that to alter what is copied to the clipboard (pass it a javascript function that has a return value. whatever is returned is copied to the clipboard instead I believe). Not sure if this works in Firefox or not, never tried. Example for how to catch it basically for the entire page: <body oncopy="return CopyText();"> HTML: where CopyText can then alter the body's HTML or whatever.