Answers for "tempfile from string php"

PHP
0

php get tempfile

To get the underlying file path of a tmpfile file pointer:

<?php
$file = tmpfile();
$path = stream_get_meta_data($file)['uri']; // eg: /tmp/phpFx0513a
Posted by: Guest on June-22-2021

Browse Popular Code Answers by Language