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
4883
posted 8 years ago by acosonic
Name this script whatever you want, and run it via Workbench Scripting shell
0
4201
posted 8 years ago by acosonic
This snippet adds credit card select box dropdown values 10 years in future from current year.
0
3485
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
1904
posted 16 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
4949
posted 16 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
2623
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
2185
posted 16 years ago by acosonic