You can run PHP Code through server either wamp or xampp and for linux lamp server. And your extension must be .php not html.