Apr 03, 2015 · How to run a php script in background. when we need to run some script without waiting the fronted user till the process is not completed, For that we need to execute some script in background to hiding the execution time to user.This process is hidden to the end user. It improves your Website efficiency. How Do I Use PHP in HTML Files? Linux Servers: The method you use depends on the version of PHP you use on your server. HostGator maintains updated versions of PHP across our Linux Shared and Reseller servers on which this method will work: Login to your cPanel. Click the File Manager icon.