PHP 8.5.0 Alpha 1 available for testing

Voting

: eight minus two?
(Example: nine)

The Note You're Voting On

bishop
7 years ago
To get the underlying file path of a tmpfile file pointer:

<?php
$file
= tmpfile();
$path = stream_get_meta_data($file)['uri']; // eg: /tmp/phpFx0513a

<< Back to user notes page

To Top