Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
dvprog_09 [2015-02-11 22:44] Daniel Viström |
dvprog_09 [2015-02-11 22:48] Daniel Viström |
||
---|---|---|---|
Line 25: | Line 25: | ||
file_put_contents(' | file_put_contents(' | ||
- | // Läser en textfil till en sträng. | + | $textfil = ' |
- | $str = file_get_contents(' | + | // Läser en textfil till en sträng. |
+ | $str = file_get_contents($textfil); | ||
echo nl2br($str) . '< | echo nl2br($str) . '< | ||