php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29592 Retrieve the path and filename of a file handle
Submitted: 2004-08-09 21:56 UTC Modified: 2004-08-10 08:51 UTC
From: mail at here dot org Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Irrelevant OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mail at here dot org
New email:
PHP Version: OS:

 

 [2004-08-09 21:56 UTC] mail at here dot org
Description:
------------
In certain cases, it would be useful in order to have available a function that will return the absolute path to which an open file handle points. 

ie,

$filepath = fgetpath( $handle );


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-10 08:51 UTC] derick@php.net
We have stream_get_meta_data for this:
http://php.net/stream_get_meta_data
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 31 21:00:03 2025 UTC