programming | andi setiawan's blog

Tag: programming

This tutorial will show you how to display your images (binary data) which has been saved in your mySQL database. It’s very very simple.. so.. simple…. (read also: Storing Images/Binary Files to mySQL in PHP) First of all we must connect to our database PHP Code: <?php $username = “”; $password = “”; $host = […]


Posted in programming, Tips n Trik | Tagged , , , , , | 2 Comments on Display Images from mySQL Binary Data |

how to store images, audio, or another binary files into mySQL database with PHP script. cara menyimpan gambar ke mysql dengan PHP.


Posted in programming, Tips n Trik | Tagged , , , , , | 6 Comments on Storing Images/Binary Files to mySQL in PHP |

Commenting your htaccess Files It is an excellent idea to consistenly and logically comment your htaccess files. Any line in an htaccess file that begins with the pound sign ( # ) tells the server to ignore it. Multiple lines require multiple pounds and use letters/numbers/dash/underscore only: # this is a comment # each line […]


Posted in .htaccess | Tagged , , | 1 Comment on .htaccess Tricks: #2 – Essentials |

.htaccess definition: Apache server software provides distributed (i.e., directory-level) configuration via Hypertext Access files. These .htaccess files enable the localized fine-tuning of Apache’s universal system-configuration directives, which are defined in Apache’s main configuration file. The localized .htaccess directives must operate from within a file named .htaccess. The user must have appropriate file permissions to access […]


Posted in .htaccess, Tips n Trik | Tagged , , , , | Leave a Comment on .htaccess Tricks: #1 – Definition |

How to save the resource in our project code? Should we repeat writing the same code in every page/file? We can save a lot of our time and resource by putting the same code or lines into a function or procedure. In some programming language, such as Pascal, Batch, C, PHP, etc., we can make […]


Posted in programming, Tips n Trik | Tagged , , , , , | Leave a Comment on write less do more |