русский
Germany.ruForen → Архив Досок→ Computer & Co

Kakoj PHP -redaktor Vi scitaete lucschim?

08.08.03 15:57
Re: Kakoj PHP -redaktor Vi scitaete lucschim?
 
as400 знакомое лицо
as400
in Antwort internet 08.08.03 14:18
поздравляем specialist, а ну ка проверим тебя, найди ошибку.
<?php
// Set error reporting to all
error_reporting(E_ALL,0);
// Get domain name
$domain = (! empty($_REQUEST['domain'])) ?
$_REQUEST['domain'] : null;
// The WHOIS binary path
$WHOIS = '/usr/bin/whois';
// Execute WHOIS request
exec("$WHOIS $domain", $output, $errors,0);
// Initialize output buffer
$buffer = null;
while (list(,$line)=each($output))
{
$buffer .= $line . '
';
}
echo $buffer;
if (! empty($errors))
{
echo "Error: $errors when trying to run $WHOIS
";
}
?>
 

Sprung zu