fork(2) download
  1. <?php
  2.  
  3. $string = file_get_contents("test.txt");
  4. $regExp = "/\\b[a-z]{1,4}\\b/ui";
  5. $count = preg_match_all($regExp, $string);
  6. echo $count;
Success #stdin #stdout #stderr 0.03s 52480KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  file_get_contents(test.txt): failed to open stream: No such file or directory in /home/whcpdS/prog.php on line 3