1

I am using built in php webserver and here is code i have written in my php file but not working.

exec("php -S localhost:8000 -t /home/test/");

Is there anything wrong?

Thanks

Bhumi Shah
  • 9,323
  • 7
  • 63
  • 104

1 Answers1

0

Try to run:

$lines = system("php -S localhost:8000 -t /home/test/", $output);
var_dump($output, $lines);

Then You should see what is wrong.

Pyton
  • 1,291
  • 8
  • 19