SokazGames

Problem with learning php

Sep 29th, 2014
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2.   $openFile = fopen("file.txt","w");
  3.   $name = "Chris";
  4.   fwrite($openFile,$name);
  5.   fclose($openFile);
  6.   $openFile = fopen("file.txt","r");
  7.   echo readfile("file.txt");
  8.   fclose($openFile);
  9. ?>
Add Comment
Please, Sign In to add comment