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
1451
posted 6 years ago by acosonic
Name this script whatever you want, and run it via Workbench Scripting shell
0
1178
posted 7 years ago by acosonic
This snippet adds credit card select box dropdown values 10 years in future from current year.
0
1249
posted 8 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
994
posted 14 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
3022
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
1214
posted 15 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
1009
posted 15 years ago by acosonic