Blog Links

SQLite V3 with PHP – sample script

sqlite

SQLite [http://www.sqlite.org] is a very handy tool, essentially it creates a database in a file. SQLite V3 should be installed automatically with PHP5. I find SQLite very handy when I want to make standalone code that uses a database, and because it doesn’t require an external application(such as Mysql) it makes it very portable. I [...]

An easy way to use GNU Screen over SSH

heckert_gnusmall

GNU Screen is a free terminal multiplexer developed by the GNU Project since at least 1995. It allows a user to access multiple separate terminal sessions inside a single terminal window or remote terminal session. It is useful for dealing with multiple programs from the command line, and for separating programs from the shell that [...]

Linux – disk usage (du) human readable AND sorted by size

This is quick tip to fix a problem that has always bugged me – When showing disk usage in a human readable form (KB, MB, GB) for each subdirectory using “du -sh *”, how can you properly sort it into size order. If you just want the solution here it it… pre.command { width:80%; background-color:#FFF5F5; [...]

XPaths with PHP by example

PHP

Learn by example how to scrape web pages using PHP and Xpath.