title: How to execute a php script from another php script?
body: <p>I have some PHP files called <strong>file1.php, file2.php, file3.php</strong>. Now, I want to run these PHP files one by one from other PHP file called <strong>all.php</strong>. I mean file2.php will be executed after file1.php was completed. File3.php will be executed after file2.php was completed. How to do that ?</p>
  
  <p>Can I use exec function ? It is safe for my hosting ? I am using Cpanel in shared hosting. There is any way to do that but safe for my content in hosting ?</p>
  
  <p>Thank you very  much !</p>