lib/ezfile/classes/ezfile.php
\eZFile
Package:
Parameters
Returns
Details
Methods

create(
$filename, $directory
=
false, $data
=
false, $atomic
=
false
)
:
void
static
Parameters
| Name | Type | Description |
|---|---|---|
| $filename | ||
| $directory | ||
| $data | ||
| $atomic |

download(
$file, $isAttachedDownload
=
true, $overrideFilename
=
false
)
:
void
static
Parameters
| Name | Type | Description |
|---|---|---|
| $file | ||
| $isAttachedDownload | ||
| $overrideFilename |

splitLines(
$file
)
:
array | false
static
Reads the whole contents of the file \a $file and splits it into lines which is collected into an array and returned.
It will handle Unix (\n), Windows (\r\n) and Mac (\r) style newlines. \note The newline character(s) are not present in the line string.
| Name | Type | Description |
|---|---|---|
| $file |
| Type | Description |
|---|---|
| array | false |
- Deprecated
- Since 4.4, use file( $file, FILE_IGNORE_NEW_LINES ) instead.