Categories
Server

SSH: What is SSH (Secure Shell)?

SSH Background SSH, secure shell, is a software based approach to network security. All data sent and received using SSH is encrypted and later decrypted. It has a client-server architecture, so you will need an ssh client on your local computer and an ssh on the remote computer (the computer you want to connect to). […]

Categories
Server

install GeoIp on Debian Wheezy Call to undefined function geoip_db_avail

You have not Installed GEO IP: Steps(Debian Wheezy Specific): 1. aptitude install libgeoip-dev php5-geoip php5-geo 2. aptitude install php5-dev 3. pecl install geoip 4. cd /etc/php/apache2 5. rmate php.ini 6. Add to ectensions 7. extension=geoip.so modified from: IT Knowledge Base

Categories
Server

Command Not Found…All of a sudden a command is not Found!

Command Not Found: You’ve been having a good day up till now When you type a common command in unix, it could be ls or last or who or grep or in my case rmate when low and behold, a response: bash: Command not Found This is very annoying and is often the case where […]

Categories
Zend Framework 1.12

Add Events to Zend_Forms Zend Framework

$type = new Zend_Form_Element_Select(‘type’,array(‘onchange’ => ‘alert(“working”)’));

Categories
PHP 5

using PHP Values as Variable names and to call Functions

This should apply to perl as well: Variable name: $myvar = ‘foo’; ${$myvar} = ‘haswell’; echo $foo RESULT ‘haswell’ Call a function: $type = ‘red’; $myClass->$type(); == $myClass->red(); Taken from: More helpful stuff: ${“variableName”} = 12; {“functionName”}(); $className->{“variableName”}; $className->{“methodName”}(); StaticClass::${“variableName”}; StaticClass::{“methodName”}(); Are there any other Languages that can do this, I know Perl Can… And […]