Mam taki prosty skrypt whois:
<?php
if ($_POST['domena']!=null)
{
$serwer = "whois.dns.pl";
$domena = $_POST['domena'];
if ($f)
{
$i=0;
{
$wynik[$i] = $dane;
$i++;
}
}
}
?>
i teraz ucinam entery - poprzez zamianę ich na <br>
str_replace("\n", "<br>", $dane); ale mimo zamiany one nadal tam pozostają... tz... chcę otrzymać:
(np. dla wp.pl)
<br>DOMAIN: wp.pl
<br>registrant's handle: nsk34186 (CORPORATE)
<br>nameservers: ns1.wp.pl.[212.77.102.200]
<br> dns.task.gda.pl. [153.19.250.100]
<br> ns2.wp.pl. [153.19.102.182]
<br>created: 1998.04.28 13:00:00
<br>last modified: 2008.01.18 15:18:54
<br><br>option created 2008.02.01 00:08:20
<br><br><br>REGISTRAR: NASK
<br>ul. Wawozowa 18
<br>02-796 Warszawa
<br>Polska/Poland
<br>+48.22 3808300
<br>info@dns.pl
<br><br>WHOIS displays data with a delay not exceeding 15 minutes in relation to the .pl Registry system
<br>Registrant data available at
http://dns.pl/cgi-bin/en_whois.pl<br>://http://dns.pl/cgi-bin/en_whois.pl>
a dostaję
<br>registrant's handle: nsk34186 (CORPORATE)
<br>nameservers: ns1.wp.pl. [212.77.102.200]
<br> dns.task.gda.pl. [153.19.250.100]
<br> ns2.wp.pl. [153.19.102.182]
<br>created: 1998.04.28 13:00:00
<br>last modified: 2008.01.18 15:18:54
<br>option created 2008.02.01 00:08:20
<br>WHOIS displays data with a delay not exceeding 15 minutes in relation to the .pl Registry system
co robię nie tak?
przecież wyświetlanie
echo $wynik[$i]; nie generuje dodatkowych enterów...
nie pomogło nawet podwójne wstawienie zamiany
str_replace
Ten post edytował M4T3U5Z 20.11.2008, 13:20:45