Image Watermarking Using PHP

There are someways to protect your copyrighted images. One way is use watermark image so when someone copy your image, it is hard to remove the watermark and they cannot use it for their own benefit without asking your permission. In other words, digital image watermark is one way of anti piracy technique to protect your image copyright.There are 2 types of digital image watermark, visible and invisible watermark. Visible watermark is embed your digital sign or logo to your original images. … Read more...

[TIPS] Convert Your Numbers To Human Readable Format

Sometimes your code produce a large numbers which is hard for user to read it. For example 17753392783 bytes or 18293753038 unit. For human eyes, it is easier to get 17MB or 1 million rather than lot of numbers.I write this as quick tips for you, in case you want to convert your data to human readable format. I do this in PHP, for other programming language you can get the algorithm and convert it to your own language:Usage:Thank you for read this article. Good luck and have a … Read more...

[TIPS] Write print_r() Output To File

When debugging a php application, print_r() or var_dump() often use to display the data inside the variable, usually an array that store many data inside. print_r() is core php function to displays information about a variable in a way that's readable by humans. Not just a variable or an array, we can trace or display protected and private properties of objects in PHP 5.But when the php application is called by the curl or other remote connection (not using a web browser), print_r() won't … Read more...

Things You Can Do With PHP cURL

Curl is a command line tools to transfer data using various protocol. Curl project was released with libcurl, which is a library for curl that can be use in multi programming language. But it is widely use for PHP with PHP Curl library."curl is a command line tool for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP. curl supports SSL certificates, HTTP POST, … Read more...

Copy MySQL Data Across The Server

If you move or change your hosting server, beside the files you also need to move your mysql data as well. MySQL database hold all your website data including content, configuration, user account and other thing. So please be careful with this data you need to backup it regularly. See my other post about how to regularly backup your mysql.But when you move to another server you can do it with 2 ways: 1. Backup it from the old server and upload it to another server You can do this with … Read more...

Keep PHP Process Upon Closed Client Connection

PHP process as default will stop or terminate the process when the client close the connection or process timeout. When user stop the process through browser it will automatically send abort header, and PHP will turn on the abort flag, so the process the currently running will be force to stop. As well as the process timeout met, the PHP will eventually stop the process too.I had one case that i should fire another script with Curl library in PHP. But since the other script took a very long … Read more...

Prevent DDoS Attack With mod_evasive in Apache 2

Getting DDoS attack is a very annoying things. Beside make your server slower and worse make your server down. DDoS (Distributed Denial of Service) is an attempt to attack the server target with flood of request from many sources, to make the target server busy and then down. DDoS attack have many various technique but it is basically flood the target server with high and cpu consuming request and later make the server malfunction or down.You can prevent DDoS attack by using mod_evasive in … Read more...

PDO Sqlite3 Not Working In PHP 5.3.3 And WHM/Cpanel 11.26.8

The latest PHP v.5.3.3 doesn't work good with PDO Sqlite3. I am using a VPS (Virtual Private Server) with Centos 5 and WHM/Cpanel 11.26.8. Everything goes fine except there is an error message "undefined symbol: sqlite3_libversion" in all users error_log.I did compile my server with this configuration: Apache v2.2 PHP 5.3.3 PDO and PDO_MySQL enabledThe compile process run without problem and success. But if you notice that, in error_log will show an error message like … Read more...

AutoMySQLBackup: Regularly Backup Your MySQL

If you have blogs or websites, you databases is one the most important thing. Your data will be store on your database, for this case it is MySQL. MySQL is a free database management system (DBMS) and bundled with Linux as LAMP (Linux, Apache, MySQL and PHP). Because it is so important, then you have to regularly backup your data, as disaster recovery steps.Actually to backup MySQL data is not hard. There are many tools provide for free to backup with on single click. But sometimes you … Read more...

Free Icon and Graphic Packs For Your Web Design

There are tons of free graphic pack and icons on the net. If you are a web designer or graphic designer, this is a gift for you. I have write some for you in another post "More Than 100K Free Icons", if you need some free icons for your design feel free to read that article. In this article i will share some of the best graphic and icon pack that you can download and use it for free. All license is free for commercial use, but you cannot redistribute it. And all the credits are belong to their … Read more...