One more thing needed. If you encounter 'too many open links(0)' error or 'Undefined service gds_db/tcp' error then add the following line to %SystemRoot%\system32\drivers\etc\services
gds_db 3050/tcp #InterBase Server
or use my php:
<?php
// Installs gds_db port to services file
$system_root = getenv('SystemRoot');
$service_file = $system_root.'system32'.DIRECTORY_SEPARATOR.'drivers'.DIRECTORY_SEPARATOR.'etc'.DIRECTORY_SEPARATOR.'services';
$lines = file($service_file);
foreach ($lines as $line) {
if (strpos($line, 'gds_db') !== false) {
exit('gds_db port is already installed.');
}
}
$fp = fopen($service_file, 'a');
fwrite($fp, "\r\ngds_db 3050/tcp #InterBase Server");
fclose($fp);
echo "gds_db port is successfully installed.";
?>
actually I changed my code to check gds_db port whenever I start the server and install gds_db if it is not installed.