Campo Grande-MS., 4 de Setembro de 2010
|
|
Suporte
Abrindo arquivo em PHP<?php $file=fopen("contato.txt","r") or exit("Nao foi possivel abrir o arquivo!"); ?> Mais opções para manipulação de arquivos: | Modes | Description | | r | Read only. Starts at the beginning of the file | | r+ | Read/Write. Starts at the beginning of the file | | w | Write only. Opens and clears the contents of file; or creates a new file if it doesnt exist | | w+ | Read/Write. Opens and clears the contents of file; or creates a new file if it doesnt exist | | a | Append. Opens and writes to the end of the file or creates a new file if it doesnt exist | | a+ | Read/Append. Preserves file content by writing to the end of the file | | x | Write only. Creates a new file. Returns FALSE and an error if file already exists | | x+ | Read/Write. Creates a new file. Returns FALSE and an error if file already exists | Note: se a função fopen() nao conseguir abrir o arquivo, será retornado 0 (false). | | Voltar |
15
|
|
PRINCIPAL | QUEM SOMOS | PORTIFóLIO | SERVIçOS | SUPORTE | FALE CONOSCO
Copyright 2005 ® Decode Sistemas.com.br |