Welcome To Snipplr
Everyone's Recent Snippets Tagged php
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Cut-and-paste the following into your functions.php file (inside of your theme folder).
Change the Name-goes-here to whatever you want.
        
        
        
            0 
        
        
            1381 
        
                    posted 14 years ago by redconservatory
            Created by me as a quick and secure way of creating a username and password for basic authentication via a .htpasswd file on an Apache server.
A live demo is available at http://www.chrishair.co.uk/supgha/
Thanks.
        
        
        
            0 
        
        
            1425 
        
                    posted 14 years ago by hairzo
            Loops through ASCII characters to display alphabet, useful for alphabetic filtering links.
eg: A | B | C | D ...
        
        
        
            0 
        
        
            1361 
        
                    posted 14 years ago by plesh
            A really handy snippet that will replace textual URLs with HTML links.
Also works for email addresses.
        
        
        
            0 
        
        
            1986 
        
                    posted 14 years ago by plesh
            If you want to use PHP as a command line program, this code can serve s a reference to read the arguments passed to the program.
        
        
        
            0 
        
        
            1271 
        
                    posted 14 years ago by tcam27
            Traditionally when you have lost lists of dat you want to alternate rows for usability. The first thing everybody makes to fix this is a simple if statement loop, but this adds a number of lines and is hardly a clean solution. Additionally it require...
        
        
        
            0 
        
        
            1400 
        
                    posted 14 years ago by FatFolderDesigner
            Mockup of how to create a SessionContext using PHP SOAP and ClientServices 2
        
        
        
            0 
        
        
            860 
        
                    posted 14 years ago by patriksvenssonmpsbroadbandcom
            a more useful way of printing php arrays in a nice readable format and able to decode serialized and json_encoded strings.
        
        
        
            0 
        
        
            2372 
        
                    posted 14 years ago by liamchapman
            Esto es para obtener los codigos de paises desde geonames.org y almacenarlos en una tabla. Se iso bajo CodeIgniter.
        
        
        
            0 
        
        
            1222 
        
                    posted 14 years ago by jrobinsonc
            
