python host php file code example Example: run php websevrer with python import os os.system('php -S localhost:8000')