Created
August 27, 2014 17:32
-
-
Save fvosberg/71eb5daad5843bdf5866 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$tempFile = tmpfile(); | |
$tempFileMetaData = stream_get_meta_data( $tempFile ); | |
fwrite($tempFile, $string); | |
// path of the temp file | |
$tempFileMetaData['uri']; | |
// deletes the tmp file | |
fclose($tempFile); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment