Prettyscripts

Form Test Plugin for b2evolution to prevent spams

No one likes getting spams. This blog has been getting lots of spams with non-sense messages until this plugin is installed. It can’t prevent comments submitted manually and intentionally, but it prevents automated submissions. I decided to develop this plugin since there isn’t one available. Well… there was one but it was for older versions…

Continue Reading »

PHP: Stream Download

A general php code to download any type of file: content-type defines the type of file being sent. application/octet-stream is used for any kind of files. content-length indicates the size of information. this is to let browser know how much data to download in advance and ensure content-disposition is used to suggest the file name…

Continue Reading »