★ wanayoo — archive 1999 http://fr.php.net/manual/nl/function.is-readable.phpNouvelle recherche | Portail wanayoo
PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousis_linkis_uploaded_filenext
Last updated: Fri, 22 Nov 2002
view the printer friendly version or the printer friendly version with notes or change language to English | Brazilian Portuguese | Czech | Finnish | French | German | Hungarian | Italian | Japanese | Korean | Polish | Romanian | Russian | Slovak | Spanish | Swedish | Turkish

is_readable

(PHP 3, PHP 4 )

is_readable -- Zegt of een bestandsnaam gelezen kan worden

Beschrijving

bool is_readable ( string filename)

Geeft TRUE terug als de bestandsnaam bestaat en uit het bestand gelezen kan worden.

Houdt er rekening mee dat PHP vaak het bestand als dezelfde gebruikers ID opent als de webserver op draait (vaak 'nobody'). Met safe mode limitaties wordt geen rekening gehouden.

Het resultaat van deze functie wordt gecached. Zie clearstatcache() voor meer details.

Deze functie werkt niet op remote bestanden; het bestand dat opgevraagd wordt moet toegankelijk zijn via de server's bestands systeem.

Zie ook is_writable().

User Contributed Notes
is_readable
add a note about notes
25-Nov-2002 10:28
We upgraded to Unix PHP 4.2.3 and is_readable() no longer accepts relative paths.

e.g.
for a php script running in /usr/local/somedir/

 is_readable('file.txt')

should be replaced with

 is_readable('/usr/local/somedir/file.txt')

add a note about notes
previousis_linkis_uploaded_filenext
Last updated: Fri, 22 Nov 2002
show source | credits | stats | mirror sites
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: nexen.net
Last updated: Fri Nov 29 04:10:39 2002 CET