Created
May 29, 2015 20:23
-
-
Save weltling/01e0befbd76e32fbc66c 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 | |
$fname = "hello.txt"; | |
$f = STDOUT; | |
touch($fname); | |
freopen($fname, "w", STDOUT); | |
echo "hello"; /* this goes into file */ | |
/* this kind of function is missing*/ | |
freopen_restore($f); | |
echo "world"; /* this goes into STDOUT again */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment