PHP路径函数之string realpath ( string $path ) 返回规范化的绝对路径名
realpath()会检测$path指向的目标文件(或文件夹)是否真实存在,相当于调用了file_exists($path)。
如果目标文件存在且不是符号连接(windows下叫“快捷方式”),则返回该文件的绝对路径名,且不包含’/./’ 或 ‘/../’。
如果目标文件是符号连接或不存在,则realpath()返回FALSE。
PHP路径函数之string dirname ( string $path) 返回路径中的目录部分
dirname()不会检测$path指向的文件(或文件夹)是否真实存在。
不管目标文件是否存在,结果都会返回该文件的绝对路径(目录部分)。
PHP路径函数之mixed pathinfo ( string $path [, int $options ] ) 返回文件路径的信息
dirname()不会检测$path指向的文件(或文件夹)是否真实存在。
PHP路径函数之pathinfo() 返回一个关联数组包含有 path 的信息,包括以下的数组单元:dirname、basename、filename以及可能存在的extension。
dirname、basename数组单元部分相当于执行dirname()、basename()返回的结果。
string basename ( string $path [, string $suffix ] ) 返回路径中的文件名部分
PHP路径函数之basename()不会检测$path指向的文件(或文件夹)是否真实存在。
不管目标文件是否存在,结果都会返回该文件名。
如果文件名是以$suffix结尾,则返回的文件名不包含$suffix部分。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
