codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php // sample file and directory handling functions streams layer if(is_dir('/')) echo 'in dir'; else echo 'its not a directory'; echo PHP_EOL; if(is_file('/t.php')) echo 'is file'; else echo 'its not a file'; echo PHP_EOL; if(is_readable('/t.php')) echo 'it\'s redable file'; else echo 'its not a redable file'; echo PHP_EOL; if(is_writable('/t.php')) echo 'is writable file'; else echo 'its not a writable file'; echo PHP_EOL; if(is_uploaded_file('/t.php')) echo 'its uploaded via http'; else echo 'its not uploaded via http'; echo PHP_EOL; if(is_executable('/t.php')) echo 'in executable'; else echo 'its not a executable file'; ?>
Private
[
?
]
Run code