splfileinfo.getrealpath(3) php man page | unix.com

Man Page: splfileinfo.getrealpath

Operating Environment: php

Section: 3

SPLFILEINFO.GETREALPATH(3)						 1						SPLFILEINFO.GETREALPATH(3)

SplFileInfo::getRealPath - Gets absolute path to file

SYNOPSIS
public string SplFileInfo::getRealPath (void )
DESCRIPTION
This method expands all symbolic links, resolves relative references and returns the real path to the file.
PARAMETERS
This function has no parameters.
RETURN VALUES
Returns the path to the file.
EXAMPLES
Example #1 SplFileInfo.getRealPath(3) example <?php $info = new SplFileInfo('/..//./../../'.__FILE__); var_dump($info->getRealPath()); $info = new SplFileInfo('/tmp'); var_dump($info->getRealPath()); ?> The above example will output something similar to: string(28) "/private/tmp/phptempfile.php" string(12) "/private/tmp"
SEE ALSO
SplFileInfo::isLink. PHP Documentation Group SPLFILEINFO.GETREALPATH(3)
Related Man Pages
phar.setstub(3) - php
directoryiterator(3) - php
splfileinfo(3) - php
var_dump(3) - php
mongodb.lasterror(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update