$command = 'yourcommand' . ' > /dev/null 2>&1 & echo $!; ';
$pid = exec($command, $output);
var_dump($pid);
More Related Contents:
- PHP Errors – Total of four [closed]
- Warning: foreach staement
- In PHP, how do you change the key of an array element?
- How to generate in PHP all combinations of items in multiple arrays
- How to Use AJAX in a WordPress Shortcode?
- Upload Progress Bar in PHP
- What is the difference between a language construct and a “built-in” function in PHP?
- PHP: Access Array Value on the Fly
- Insert multiple rows with one query MySQL
- Why won’t my PHP app send a 404 error?
- Why does PHP 5.2+ disallow abstract static class methods?
- Best way to avoid the submit due to a refresh of the page
- PHP – include a php file and also send query parameters
- PHP: How can I explode a string by commas, but not wheres the commas are within quotes?
- Limit execution time of an function or command PHP
- Regular expressions for a range of unicode points PHP
- Allow only [a-z][A-Z][0-9] in string using PHP
- sum specific values in a multidimensional array (php)
- Session hijacking and PHP
- How to do AES256 decryption in PHP?
- Type-juggling and (strict) greater/lesser-than comparisons in PHP
- ErrorBag is always empty in Laravel 5.2
- RegExp in preg_match function returning browser error
- PHP generated XML shows invalid Char value 27 message
- PHP fwrite new line
- PHP/GD : Better Gaussian blur
- PHP extract link from tag [duplicate]
- multi-dimensional array post from form
- Laravel collection converts array to object
- Laravel extend Form class