Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #tempfile
ADD COMMENT
Topic
Name
4+5 =