php – How can I track a click event of an embedded video (youtube, vimeo, etc.)? (to track play count)-ThrowExceptions

Exception or error: Is there a way to track play counts for embedded videos? Ideally without resorting to a thumbnail linked to launch the embed / iframe code. Example (try it yourself on jsFiddle): <!doctype html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Example</title> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js” type=”text/javascript”></script> </head> <body> <div id=”log”></div> <ul> <li class=”video” id=”video1″><iframe width=”480″ height=”390″ …

vim – PHP IDE with vi key bindings-ThrowExceptions

Exception or error: At the moment I’m using eclipse with viplugin. I also know about netbeans and its vi plugin. I find both of these IDEs don’t really fit my tastes though. Too slow, bad remote editing support. I don’t really have time at the moment to set up and try a vim based ide …

php – Auto insert text into vim-ThrowExceptions

Exception or error: When debugging some php scripts it would be very handy if I had a shortcut that would insert a piece of text like an echo with the current linenumber and filename. echo “Hello at filename.php at linenumber”; Even auto inserting some text like a comment with a static echo would be sweet. …

php – How do I get the Video Id from the URL? (Vimeo)-ThrowExceptions

Exception or error: PHP <?php $url = ‘http://vimeo.com/25451551’; /* http://www.vimeo.com/25451551 … www.vimeo.com/25451551 */ $url = preg_match(‘???’, $url); echo $url; ?> Output 25451551 Any help with this would be appreciated. Thanks. How to solve: If video IDs are allowed to start with a 0, you may need to tune the following code a bit: $url = …

php – Vim inoremap for specific filetypes-ThrowExceptions

Exception or error: I’ve added some simple inoremap commands to my .vimrc to help with parens and brackets completion, but I only want them to apply to php files. inoremap ( ()<Esc>i inoremap { {<CR>}<Esc>ko inoremap <? <?php ?><Esc><Left>i How to I set these commands to be active only when I’m editing a .php file? …