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
854
posted 5 years ago by acosonic
Name this script whatever you want, and run it via Workbench Scripting shell
0
740
posted 5 years ago by acosonic
This snippet adds credit card select box dropdown values 10 years in future from current year.
0
863
posted 6 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
660
posted 12 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
2107
posted 13 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
766
posted 13 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
663
posted 13 years ago by acosonic