If you need to collect visitor’s IP address or browser information you can easily do that using CodeIgniter “user_agent” library. The User Agent Class provides functions that help identify information about the browser, mobile device, or robot visiting your site. In addition you
Save Apache log in MySQL database
Apache webserver can be configured to save access logs into database via Apache Module mod_log_config. This module provides for flexible logging of client requests. Logs are written in a customizable format, and may be written directly to a file, or to
mysql: –i-am-a-dummy
This option prevents MySQL from performing update operations unless a key constraint in the WHERE clause and / or a LIMIT clause are provided. mysql –i-am-a-dummy -uroot test For beginners, a useful startup option is –safe-updates (or –i-am-a-dummy, which has
MVC: model – view – controller
Model–View–Controller (MVC) is an architecture that separates the representation of information from the user’s interaction with it. The model consists of application data and business rules, and the controller mediates input, converting it to commands for the model or view.
Getting Started With CodeIgniter
If you are familiar with php, a good practice is to use a php framework to build your applications. One choice is CodeIgniter. CodeIgniter is based on the Model-View-Controller development pattern. MVC is a software approach that separates application logic
Scheduling tasks with cron
Cron is a daemon used for scheduling tasks to be executed at a certain time. Cron is driven by a crontab, a configuration file that specifies shell commands to run periodically on a given schedule. Each user has a
Hello world!
First article! Definitely must be a “Hello World” examples article. A “Hello World” program is a computer program which prints out “Hello, world!” on a display device. It is used in many introductory tutorials for teaching a programming language. It