top
logo


feed-image RSS
Home LAMP Linux

Linux



PHP Cronjob with parameters

PDF Print E-mail
(5 votes, average 5.00 out of 5)
Written by Alex Balyuk   
Thursday, 05 August 2010 18:35

PHP the most popular scripting language in the world. Many people use it for different things. I recently worked on a custom joomla component that required a scheduled task (cronjob). The task required joomla libraries so I created a "cronjob" controller to handle this scenario. Controller gives access to all MVC features, such as models and therefore tables. If you know, Joomla has only one entry point and it is right through the front door (e.g. index.php) with parameters that route to desired destination. When I wanted to schedule my crontab I found out that it is not as simple as it seems. Here is what you have to do to create any cronjob that executes php page/script and required query string (key/value) parameters.

Last Updated on Thursday, 19 August 2010 15:33
 

CentOS 5 Minimalist

PDF Print E-mail
(8 votes, average 5.00 out of 5)
Written by Alex Balyuk   
Tuesday, 03 August 2010 13:35

centos_logo_45

Virtualization is very popular nowadays. There is no need to have hundreds of phisical computers, one powerful server can manage 10+ virtual machines on its own. I worked on a distributed applicationdistributed application with share nothing architectureshare nothing architecture that requiered minimum of 8 nodes and a master server. The nodes interact with master server via API calls and constantly processed little chunks of data (time consuming task with little CPU usage) and reported back to the master server. The problem arrised when VMware ServerVMware Server started getting slugish,  therefore all the nodes became very slow. To fix the problem I came out with idea to minimize the nodes at much as possible, living only importan operating system and application specific services running. In this article you will find out how to setup RHEL RHEL (Cent OS 5) server with minimal resource usage and how to work around crazy RHEL caching that uses 50%+ of RAM.

Last Updated on Tuesday, 05 October 2010 03:55
 

Extract RAR files under Linux or UNIX

PDF Print E-mail
Written by Alex Balyuk   
Tuesday, 20 July 2010 21:01

Even though archiving standards are zip and gz some people like to deversify and use different archiving programs like rar. Fist of all, there is nothing wrong with using rar, it is a great program. Only problem is that rar is not always supported and need special software to open it. On windows users may use WinRAR or 7z7z, but on Linux this proces is little bit painful. In order for us to open rar archive we need to have unrar package installed.

Last Updated on Thursday, 19 August 2010 15:38
 




Copyright © 2012 (bool) cast.com. All Rights Reserved.
Joomla!Joomla! is Free Software released under the GNU/GPL License.GNU/GPL License.

bottom
top
Site Map | Contact Us

bottom