Profile
Achievement

flatearthcomms's Recent Snippets
- All /
« Prev 1 Next »
Simple PHP search with whole word extract and highlighted search word
0
1105
posted 9 years ago by flatearthcomms
Translate non alphanumeric characters into an underscore. Doesn't create double underscores if there's two spaces in a row. Also turns name to lowercase. Use with trim to avoid spaces at front or end.
0
1648
posted 10 years ago by flatearthcomms
cd to directory, then run the line below to change any spaces in a filename to hyphens
0
1924
posted 10 years ago by flatearthcomms
Zip all files in a directory files into separate archives
0
1299
posted 10 years ago by flatearthcomms
Prints out a list of any field containing duplicates with count
0
1032
posted 11 years ago by flatearthcomms
Stop a spam email form header injection attack - ie stop spammers from hijacking a web form to send junk mail
0
747
posted 14 years ago by flatearthcomms