Voting

: three minus three?
(Example: nine)

The Note You're Voting On

elm at gmail dot nospamplease dot com
5 years ago
To get tmpfile contents:
<?php
$tmpfile
= tmpfile();
$tmpfile_path = stream_get_meta_data($tmpfile)['uri'];
// ... write to tmpfile ...
$tmpfile_content = file_get_contents($tmpfile_path);
?>

Perhaps not the best way for production code, but good enough for logging or a quick var_dump() debug run.

<< Back to user notes page

To Top