Profile
Achievement
    
                nkm's Recent SnippetsTagged php
- All /
 
 « Prev 1 Next »
PCRE that matches any kind of YouTube URL and catches its video ID. It supports three kinds of URL: the classic (?v=), the AJAXed one (#!v=) and the short version (youtu.be). It also supports international URLs.
Tested with Javascript and PHP.
        
        
        
            1 
        
        
            2553 
        
                    posted 15 years ago by nkm
            here's a script, mod_files.sh, in ext/session for creating directory
tree with depth X for sessions.  As it stands, it's pretty poorly
documented and very basic.  I * got exceptionally bored and rewrote most
of it, the patch is attached.  It runs...
        
        
        
            0 
        
        
            1485 
        
                    posted 15 years ago by nkm