← Back to team overview

sslug-teknik team mailing list archive

Re: Rigtigt output i et PHP3 script

 


"Morten Gade Sørensen" skriver:
> 
> Hej!
> 
> Jeg har lavet flg. meget simple kommando i et PHP script:
> 
> echo `/sbin/ipchains -L -M`;
> 
> og jeg får outputtet sådan:
> 
> IP masquerading entries prot expire source destination ports UDP 03:40.67
> 192.168.254.67 fes-d005.icq.aol.com 1060 (61162) -> 4000 UDP 03:37.50
> devotion.engbo.lan fes-d030.icq.aol.com 1258 (61098) -> 4000 TCP 05:47.97
> devotion.engbo.lan dialin-108-044.mobilixnet.dk 1369 (61283) ->
> 
> hvor jeg egentlig gerne ville have det vist, som hvis jeg skrev det i
> konsollen:
> 
> IP masquerading entries
> prot expire   source               destination          ports
> UDP  04:05.36 192.168.254.67       fes-d005.icq.aol.com 1060 (61162) -> 4000
> TCP  04:02.63 devotion.engbo.lan   122.ppp1-3.odn.worldonline.dk 1262
> (61103) -> 8018
> UDP  04:25.35 devotion.engbo.lan   fes-d030.icq.aol.com 1258 (61098) -> 4000
> TCP  03:11.82 192.168.254.67       dialin-108-044.mobilixnet.dk 1070
> (61271) -> 14693
> TCP  10:05.27 devotion.engbo.lan   dialin-108-044.mobilixnet.dk 1369
> (61283) -> 14693
> 
> er det muligt?

jeg går ud fra at det er til web at du vil have det outputtet! 
så derfor ville jeg prøve med noget 
print '<html>............etc';
print '<pre>';
echo `/sbin/ipchains -L -M`;
print '</pre>';
print '</html>';


eller noget i den stil!! <pre></pre> er i hvert fald dine gode venner
:o)


-- 
-
 MVH
   Kim schulz
========================================================================
|                 ADICT Kode Slave - www.adict.net                     |
|            Dansk Linux Link Database - www.LinuXia.dk                |
========================================================================
              Sleep is just a cheap substitute for coffee     
     Fast, reliable, cheap - pick any two - [Microsoft in a Nutshell]


Follow ups

References