Last active
June 21, 2018 13:13
-
-
Save m8rge/d359b059c43bbd4065d168d8c10fc97a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
class Controller | |
{ | |
public function actionRun() | |
{ | |
$a = new Writer(); | |
$a->saveFile(); | |
return readfile('/var/www/file.pdf'); | |
} | |
} |
This file contains hidden or 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 | |
class Writer | |
{ | |
public function saveFile() | |
{ | |
file_put_contents('/var/www/file.pdf', '123'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment