title: Naming files automatically in php
body: <p>I was looking for a way to name my files in numbers,e.g 1.text,2.text...</p>
  
  <p>But this should be done automatically. When saving A new file, the program should take the maximum number among the files in the directory, and name the new folder that number plus one.</p>
  
  <p>A hint given is that we can use auto increment. How can we do so?</p>