How can you ensure that a webpage loads immediately while running a shell script in PHP?

When running a shell script in PHP, the webpage may not load immediately due to the script taking time to execute. To ensure the webpage loads immediately, you can use the `exec()` function to run the script asynchronously in the background. This allows the webpage to load without waiting for the script to finish.

// Run shell script in the background
exec('nohup php your_script.php > /dev/null 2>&1 &');