- Aigaion, Web based bibliography management system.
Aigaion is a php/mysql based multi-user system for managing annotated bibliographies. It allows the user(s) to order publications in a self-chosen (overlapping) topic structure, offers BibTex and RIS import and export and has an intuitive user interface.
Download Aigaion 2.1.0.zip - Visit Author website - Bibliography DataBase BDB.
Written in PHP and requires MySQL, web server and web browser. bdb can work under almost any operating system. With bdb one can easily add items to the database, search for information and generate reports. Download bdb 0.2.6. - APData, The Academic Publication Database.
APData is a web based aplication written in php to let researchers publicate their bibliography in the internet. Download APData 0.1.1 Alpha
string gethostbyname() is used to get the IP address corresponding to a given Internet host name.
Examples code:
<?php
$ip = gethostbyname('www.example.com');
echo $ip;
?>
Example to checking dns reverse name resolution:
<?php
$ip = gethostbyname($host);
if(ip2long($ip) == -1 || ($ip == gethostbyaddr($ip) && preg_match("/.*\.[a-zA-Z]{2,3}$/",$host) == 0) )
echo 'Error, incorrect host or ip';
}
else {
echo 'Ok';
}
?>
To prepend for all websites to cut down the amount of abuse by automated scripts:
<?PHP
$blacklists = array('web.sorbs.net');
$parts = explode('.', $_SERVER['REMOTE_ADDR']);
$ip = implode('.', array_reverse($parts)) . '.';
foreach($blacklists as $bl) {
$check = $ip . $bl;
if ($check != gethostbyname($check)) {
error_log('PHP Security: [DNSBL] - ' . $_SERVER['REMOTE_ADDR'] . ' - ' . $bl);
die('Put a detailed error here so the client knows why they have been blocked');
}
}
?>
One way to discover your IP address automatically:
<?php
// need to trim() because whitespace will confuse the name lookup
$myIP = gethostbyname(trim(`hostname`));
echo $myIP;
?>
