Monthly Archives: November 2012

Own IRC Server on Debian

  1. aptitude install ircd-irc2
  2. nano /etc/ircd/ircd.conf

M:irc.<HOSTNAME>::<COUNTRY>::000A
A:<NAME>:<EMAIL>::<COMPANYNAME>:
Y:1:90::100:512000:5.5:100.100
Y:2:90::300:512000:5.5:250.250
I:*:::0:1
I:127.0.0.1/32:::0:1
I:192.168.0.0/24::::0:2
P::::6667:

3. nano /etc/ircd/ircd.motd
Your welcome text

4. /etc/init.d/ircd restart

if echo

$value = 'aaa';
 echo $value=='aaa' ? 'yes' : 'no';

example 1

echo "always say this " . ( ($test == "true") ? 
"Say this if that is true" : "") . " Always say this at the end.";

example 2

echo '<option value="'.$value.'"'.($value=='United States' ? 
'selected="selected"' : '').'>'.$value.'</option>';