JStream::open
From Joomla! Documentation
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
JStream::open[edit]
Description[edit]
Generic File Operations.
Template:Description:JStream::open [Edit Descripton]
public function open (
$filename
$mode='r'
$use_include_path=false
$context=null
$use_prefix=false
$relative=false
$detectprocessingmode=false
)
Parameter | Type | Default | Description |
---|---|---|---|
$filename | string | Filename | |
$mode | string | 'r' | Mode string to use |
$use_include_path | bool | false | Use the PHP include path |
$context | resource | null | Context to use when opening |
$use_prefix | bool | false | Use a prefix to open the file |
$relative | bool | false | Filename is a relative path (if false, strips JPATH_ROOT to make it relative) |
$detectprocessingmode | bool | false | Detect the processing method for the file and use the appropriate function to handle output automatically |
See also[edit]
- JStream::open source code on BitBucket
- Class JStream
- Subpackage Filesystem
- Other versions of JStream::open
Template:SeeAlso:JStream::open [Edit See Also]
User contributed notes[edit]
<CodeExamplesForm />