PHP 7.4.33
Preview: bootstrap.php Size: 404 B
/home/godevadmin/www/admin/braintree/tests/bootstrap.php

<?php
$command = sprintf(
    'php -S %s:%d -t %s >test.log 2>&1 & echo $!',
    WEB_SERVER_HOST,
    WEB_SERVER_PORT,
    WEB_SERVER_DOCROOT
);

$output = array();
exec($command, $output);
$pid = (int) $output[0];

sleep(2);
register_shutdown_function(function() use ($pid) {
    echo sprintf('%s - Killing process with ID %d', date('r'), $pid) . PHP_EOL;
    exec('kill ' . $pid);
});

Directory Contents

Dirs: 2 × Files: 2

Name Size Perms Modified Actions
includes DIR
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
- drwxrwxr-x 2023-11-07 19:59:46
Edit Download
404 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download
440 B lrwxrwxr-x 2023-11-07 19:59:46
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).