Join Up!
104887 members and counting!

 
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links 
search for in the  
previousis_readableis_writablenext
Last updated: Sun, 27 Oct 2002
view the printer friendly version or the printer friendly version with notes or change language to Finnish | German | Spanish

is_uploaded_file

(PHP 3>= 3.0.17, PHP 4 >= 4.0.3)

is_uploaded_file -- Zjistí, zda byl soubor uploadován pomocí HTTP POST

Popis

bool is_uploaded_file ( string filename)

Tato funkce je dostupná pouze na verzích PHP 3 od 3.0.16 a na verzích PHP 4 od 4.0.2.

Vrací TRUE, pokud soubor nazvaný filename byl uploadován pomocí HTTP POST. To je užitečné k ujištění se, zda se neukázněný uživatel nepokusil upravit skript tak, aby pracoval se soubory, se kterými by pracovat neměl -- například /etc/passwd.

Tento druh testů je zvláště důležitý, je-li možnost, že akce na uploadovaných souborech může zpřístupnit jejich obsah uživateli nebo jiným uživatekům tohoto systému.

Viz také move_uploaded_file(), a sekce Handling file uploads, kde je příklad jednoduchého použití.

User Contributed Notes
is_uploaded_file
add a note about notes
There are no user contributed notes for this page.
previousis_readableis_writablenext
Last updated: Sun, 27 Oct 2002
Copyright © 2001, 2002 The PHP Group
All rights reserved.
This mirror generously provided by: http://phpbuilder.com/
Last updated: Thu Oct 31 18:34:28 2002 EST