November 2008

Install & Configure Web server with PHP & MySQL in Ubuntu 8.04

Apache Web Server:

Installing Apache:
sudo apt-get install apache2 apache2-doc apache2-utils

Start, Stop & Restart Apache:
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart

Testing Apache in web browser:
http//:localhost

SQL injection

SQL injection is a technique that exploits a security vulnerability occurring in the database layer of an application. The vulnerability is present when user input is either incorrectly filtered for string literal escape characters embedded in SQL statements or user input is not strongly typed and thereby unexpectedly executed. It is in fact an instance of a more general class of vulnerabilities that can occur whenever one programming or scripting language is embedded inside another.

Regular expression in PHP

Regular expressions (abbreviated as regex or regexp, with plural forms regexes, regexps, or regexen) are basically pattern matching inside of text. Regular expressions are used by many text editors, utilities, and programming languages to search and manipulate text based on patterns. For example, Perl, Ruby and Tcl have a powerful regular expression engine built directly into their syntax.