title: Getting a dynamically created folder name using mkdir() in PHP
body: <p>I am dynamically creating folders for each user in my php file with </p>
  
  <pre><code>mkdir("Userfiles/".$company."_".$time_stamp); 
  </code></pre>
  
  <p>I want to save that directory in a variable or any other and I have to use the directory name for saving my .txt files in it</p>
  
  <pre><code>$myFile = "exfiles/".str_replace(" ","-",$_POST['company'])."_CC Booth furnishings ".$order_type."_".$time_stamp.".txt";
  </code></pre>
  
  <p>In the place of 'exfiles' I need to give the dynamically created directory name.
  Any help will be appreciated.
  Thanks</p>