recent searches:
include functions ,
variable functions ,
post functions...
If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.
PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.
A pseudo-object oriented mechanism for reading a directory. The
given directory is opened. Two properties
are available once the directory has been opened. The handle
property can be used with other directory functions such as
readdir(), rewinddir() and
closedir(). The path property is set to path
the directory that was opened. Three methods are available:
read, rewind and close.
Example 1. dir() example Please note the fashion in which dir()'s return value is checked in the example below. We are explicitly testing whether the return value is identical to (equal to and of the same type as--see Comparison Operators for more information) FALSE since otherwise, any directory entry whose name evaluates to FALSE will stop the loop.
The above example will output something similar to:
|
Note: The order in which directory entries are returned by the read method is system-dependent.
Note: This defines the internal class Directory, meaning that you will not be able to define your own classes with that name. For a full list of predefined classes in PHP, please see Predefined Classes.
Another Useful functions:
zend-macro.vcwd-rmdir | zend-macro.vcwd-opendir | zend-macro.vcwd-mkdir | zend-macro.vcwd-chdir | zend-macro.vcwd-chdir-file | zend-api.zend-get-configuration-directive | zend-api.zend-copy-ini-directives | zend-api.virtual-rmdir | zend-api.virtual-opendir | zend-api.virtual-mkdir | zend-api.virtual-chdir | zend-api.virtual-chdir-file | streams.struct-php-stream-dirent | streams.php-stream-rewinddir | streams.php-stream-readdir | streams.php-stream-opendir | streams.php-stream-closedir | streams.dir-api | security.cgi-bin.force-redirect | ref.dir | function.sys-get-temp-dir | function.ssh2-sftp-rmdir | function.ssh2-sftp-mkdir | function.scandir | function.rmdir | function.rewinddir | function.recursivedirectoryiterator-rewind | function.recursivedirectoryiterator-next | function.recursivedirectoryiterator-key | function.recursivedirectoryiterator-haschildren | function.recursivedirectoryiterator-getchildren | function.readdir | function.pspell-config-dict-dir | function.pspell-config-data-dir | function.opendir | function.mysqli-fetch-field-direct | function.mkdir | function.maxdb-fetch-field-direct | function.is-dir | function.iis-set-dir-security | function.iis-get-dir-security | function.http-redirect | function.gopher-parsedir | function.ftp-rmdir | function.ftp-mkdir | function.ftp-chdir | function.fam-monitor-directory | function.dirname | function.directoryiterator-valid | function.directoryiterator-rewind | function.directoryiterator-next | function.directoryiterator-key | function.directoryiterator-iswritable | function.directoryiterator-isreadable | function.directoryiterator-islink | function.directoryiterator-isfile | function.directoryiterator-isexecutable | function.directoryiterator-isdot | function.directoryiterator-isdir | function.directoryiterator-gettype | function.directoryiterator-getsize | function.directoryiterator-getperms | function.directoryiterator-getpathname | function.directoryiterator-getpath | function.directoryiterator-getowner | function.directoryiterator-getmtime | function.directoryiterator-getinode | function.directoryiterator-getgroup | function.directoryiterator-getfilename | function.directoryiterator-getctime | function.directoryiterator-getchildren | function.directoryiterator-getatime | function.directoryiterator-current | function.directoryiterator-construct | function.dbplus-chdir | function.cpdf-set-font-directories | function.closedir | function.chdir | class.dir |
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.