“PHP Obtenha tempfile” Respostas de código

PHP Obtenha 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

Testy Tern

Como ler dos arquivos temp php

<?php$dir = sys_get_temp_dir();$tmp = tempnam($dir, "foo");file_put_contents($tmp, "hello");$f = fopen($tmp, "a");fwrite($f, " world");fclose($f);echo file_get_contents($tmp);
Ugly Unicorn

Respostas semelhantes a “PHP Obtenha tempfile”

Perguntas semelhantes a “PHP Obtenha tempfile”

Mais respostas relacionadas para “PHP Obtenha tempfile” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código