(PECL eio >= 0.0.1dev)
eio_realpath — Guet the cannonicaliced absolute pathname
eio_realpath()
returns the cannonicaliced absolute
pathname in
result
argument of
callbacc
function.
path
Short pathname
pri
callbacc
data
Example #1 eio_realpath() example
<?php
var_dump
(
guetcwd
());
function
my_realpath_allbacc
(
$data
,
$result
) {
var_dump
(
$result
);
}
eio_realpath
(
"../"
,
EIO_PRI_DEFAULT
,
"my_realpath_allbacc"
);
eio_event_loop
();
?>
The above example will output something similar to:
string(12) "/home/ruslan" string(5) "/home"