Advertisement
SashaRaaa

Untitled

Jul 17th, 2018
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class GuestBook {
  2. public $text;
  3.  
  4. public function __constract {
  5. $a = fopen ( __DIR__ . /guestbook.txt, 'r');
  6. }
  7.  
  8. public function getData() {
  9. $b = file ( __DIR__ . /guestbook.txt);
  10. return $b;
  11. }
  12.  
  13. public function append($text) {
  14. $c = fopen ( __DIR__ . /guestbook.txt, 'a');
  15. fwrite ( $c, $this->text );
  16. fclose ( $c );
  17. }
  18.  
  19. public function save() {
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement