How to use Filesystem realpath in PHP

In this article I am going to explain about realpath function in PHP.
  • 1167

PHP realpath() Function

The filesystem realpath function returns the absolute pathname.

Syntax of realpath function

realpath(path)

Parameters in realpath function

It has only one parameter:

Parameter Description
path Specifies the path to check.

Example of filesystem realpath function

<html>

<body>
 

<?php

echo realpath("add.php");

?>
 

</body>

</html>

 

Output:

realpath-php.jpg

You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.