idea fail

This commit is contained in:
Danny Berger
2013-03-05 16:32:24 -07:00
parent dd377a5c08
commit edfafae6b5

View File

@@ -11,7 +11,9 @@ the path, but doesn't automatically destroy the file.
To get the best of both worlds (temp file + auto-destroy), I have found this useful:
{% highlight php startinline %}
{% highlight php %}
<?php
function tmpfilepath() {
$path = stream_get_meta_data(tmpfile())['uri'];