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.
The glob() function searches for all the pathnames
matching pattern according to the rules used by
the libc glob() function, which is similar to the rules used by common
shells. No tilde expansion or parameter substitution is done.
Returns an array containing the matched files/directories, an empty array if no file matched or FALSE on error.
Valid flags:
GLOB_MARK - Adds a slash to each item returned
GLOB_NOSORT - Return files as they appear in the directory (no sorting)
GLOB_NOCHECK - Return the search pattern if no files matching it were found
GLOB_NOESCAPE - Backslashes do not quote metacharacters
GLOB_BRACE - Expands {a,b,c} to match 'a', 'b', or 'c'
Note: This flag is not available on some non GNU systems, like Solaris.
GLOB_ONLYDIR - Return only directory entries which match the pattern
Note: Before PHP 4.3.3 GLOB_ONLYDIR was not available on Windows and other systems not using the GNU C library.
GLOB_ERR - Stop on read errors (like unreadable directories), by default errors are ignored. Added in PHP 5.1.0.
Example 1. Convenient way how glob() can replace opendir() and friends.
The above example will output something similar to:
|
Note: This function will not work on remote files as the file to be examined must be accessible via the servers filesystem.
Note: This function isn't available on some systems (e.g. old Sun OS).
See also opendir(), readdir(), closedir(), and fnmatch().
Another Useful functions:
zend-macro.zend-set-global-var | zend-macro.zend-set-global-var-with-length | zend-macro.zend-init-module-globals | zend-macro.zend-extern-module-globals | zend-macro.zend-end-module-globals | zend-macro.zend-declare-module-globals | zend-macro.zend-begin-module-globals | zend-api.zend-u-is-auto-global | zend-api.zend-u-delete-global-variable | zend-api.zend-register-auto-global | zend-api.zend-is-auto-global | zend-api.zend-ini-global-shutdown | zend-api.zend-delete-global-variable | zend-api.zend-auto-global-disable-jit | security.globals | migration52.global-constants | function.runkit-superglobals | function.glob | function.cpdf-global-set-document-limits |
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.