title: If function successful, then repeat function - PHP
body: <p>I have the following function to upload a file to a database table field.</p>
  
  <pre><code>protected function _upload_file() {
    ...
  } 
  </code></pre>
  
  <p>Once uploaded, uploading a new file overwrites the original uploaded file.</p>
  
  <p>What I want is to establish a new upload without overwriting the file. The way I see it, I would have to create a new function like;</p>
  
  <pre><code>function if_upload_file() {
     ...
  }
  </code></pre>
  
  <p>If that function is successful, then repeat function. </p>
  
  <p>Any idea how I could accomplish that?</p>