Profile
Achievement
 
    
                halk's Recent SnippetsTagged php
- All /
 « Prev 1 Next »
This is a static session wrapper that handles single variables and arrays.  It allows setting, resetting, and deleting session variables (without destroying the session).  It regenerates the session id every time a session is started to prevent sessi...
        
        
        
            0 
        
        
            1368 
        
                    posted 12 years ago by halk
            
            PHP
        
            HTML Helper Function Create Any Element With Any Number Of Attributes (self-closing and container tags)  
        
                    /**
 * THIS FUNCTION WILL RENDER A CONTAINER OR SELF-CLOSING HTML ELEMENT.
 * IT AUTO DETECTS WHAT TYPE YOU WANT
 * BASED ON RATHER OR NOT YOU SET A _data KEY IN THE ARRAY OF
 * ATTRIBUTES PASSED TO THE FUNCTION
 * 
 * USING AN ASSOCIATIVE ARRA...
        
        
        
            0 
        
        
            1397 
        
                    posted 12 years ago by halk
            https://gist.github.com/4098493
(examples of use below the class code)
This class allows you to load a file of snippets that are really mini-templates copy them from your repository fill the token slots in them the with your data and render them as...
        
        
        
            0 
        
        
            2522 
        
                    posted 12 years ago by halk
            Does not require http in the text to link.  It must start with www however.  Optionaly make the links popup in a new window.
        
        
        
            0 
        
        
            1870 
        
                    posted 12 years ago by halk
            This function dosen't use curl, or any other libraries.  Just include it in your function library and use it like this:
$Post_result = _post('http://www.yourdomain.com/your_path/post_api.php',"method=fetchJson¶ms=select * from user");
        
        
        
            0 
        
        
            2616 
        
                    posted 12 years ago by halk