The following is a list of the various URL style protocols that
PHP has built-in for use with the filesystem functions such as
fopen() and copy().
In addition to these wrappers, as of PHP 4.3.0, you can write
your own wrappers using PHP script and
stream_wrapper_register().
All versions of PHP. Explicitly using file:// since PHP 4.3.0
/path/to/file.ext
relative/path/to/file.ext
fileInCwd.ext
C:/path/to/winfile.ext
C:\path\to\winfile.ext
\\smbserver\share\path\to\winfile.ext
file:///path/to/file.ext
file:// is the default wrapper used with PHP and represents the local filesystem.
When a relative path is specified (a path which does not begin with /, \, \\, or a windows drive letter)
the path provided will be applied against the current working directory. In many cases this is the
directory in which the script resides unless it has been changed. Using the CLI sapi, this defaults
to the directory from which the script was called.
With some functions, such as fopen() and file_get_contents(),
include_path may be optionally searched for relative paths as well.
wrappers php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php wrappers syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.