Profile
Achievement
 
    
                acosonic's Recent Snippets
- All /
 « Prev 1 Next »
This .htaccess actually forces all traffic to https, and allows cakephp app to work properly, as well as letsencrypt to go thru
        
        
        
            0 
        
        
            3966 
        
                    posted 7 years ago by acosonic
            Name this script whatever you want, and run it via Workbench Scripting shell
        
        
        
            0 
        
        
            3526 
        
                    posted 8 years ago by acosonic
            This snippet adds credit card select box dropdown values 10 years in future from current year.
        
        
        
            0 
        
        
            2873 
        
                    posted 9 years ago by acosonic
            Well, there is many faulty C# timestamp handling codes.
Here is a proper one, use UtcNow instead Now if you need UTC timestamp...
        
        
        
            1 
        
        
            1403 
        
                    posted 15 years ago by acosonic
            provide file via URL var, and script will grab it & force download. Take a look at code, and add some of your filetypes if required
        
        
        
            2 
        
        
            4058 
        
                    posted 15 years ago by acosonic
            
            PHP
        
            Sending multipart/alternative (text and html both together) email messages from PHP directly via sendmail  
        
                    sendmail needs to be working and configured properly
uses popen and fputs
        
        
        
            0 
        
        
            1896 
        
                    posted 16 years ago by acosonic
            Dumps whole query so developer can see where is error. However it's potential security issue, exposing SQL commands to attacker. (Recommended to use only during development, replace message code with some custom error text)
        
        
        
            0 
        
        
            1482 
        
                    posted 16 years ago by acosonic