- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
realpath() function in PHP
The realpath() function returns the absolute pathname. It returns the absolute pathname on success and False on failure.
Syntax
realpath(path)
Parameters
path − The path to check. Required.
Return
The realpath() function returns the absolute pathname on success and False on failure.
Example
<?php echo realpath("new.txt"); ?>
Output
D:\tutorials\java
ew.txt
Advertisements