Dah uma testada nas funcoes de leitura de arquivo fread.. fgets..
Funciona melhor que dar include.
[]�s
Rafael
----- Original Message -----
From: "William David Armstrong" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Grupo Brasileiro de Usuarios FreeBSD"
<[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 9:12 PM
Subject: [FUGSPBR] PHP
> ola estou com um probleminha no php acho que � bem facil.
>
> estou precisando que o servidor pege o DMESG e inclua pagina .
>
> ja tentei a op��o
> <?
> include("/var/run/dmesg.boot");
> ?>
>
> ok funciona muito bem
> mas todos as linhas que contem tags tag < >
> ele ignora e nao inclui na pagina
>
> npx0: <math processor> on motherboard
> npx0: INT 16 interface
> pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
> pci0: <PCI bus> on pcib0
> pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
> pci1: <PCI bus> on pcib1
> pci1: <NVidia Riva TNT graphics accelerator> at 0.0 irq 10
> isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1
> on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x6400-0x641f irq
> 11 at device 7.2 on pci0
> usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
> usb0: USB revision 1.0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> chip1: <Intel 82371AB Power management controller> port 0x5000-0x500f at
> device 7.3 on pci0
> ahc0: <Adaptec 2940A Ultra SCSI adapter> port 0x6800-0x68ff mem
> 0xe1000000-0xe1000fff irq 10 at device 15.0 on pci0
>
>
> acho que eu precisaria fazer um pre leitura e fazer a troca de
> < pra < e > pra > somente neste arquivo.
>
> at� pensei em fazer o index.php original carregar o dmesg.boot e
> gerar um arquivo temporario T com o dmesg modificado e dai
> fazer um refresh pra um 2 index.php que leia e fa�a o include
> do arquivo T com as altera�oes mas como eu sou muito leigo em
> PHP nao sei nem o fazer venho pedir ajuda a v6 como eu faria este
> script.
>
>
> []' bio.
>
> --
> -=-=-=-=-=-=-=-=-=-
>
> William David Armstrong
> System Administrator Bio Systems.
>
> http://biohazard.kick-ass.org:8080/
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> ICQ 102537476 ICQ 27550645
>
>
> _______________________________________________________________
> Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
>
>
_______________________________________________________________
Sair da Lista: http://www2.fugspbr.org/mailman/listinfo/fugspbr
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/