Skip to content

Instantly share code, notes, and snippets.

@cweitat
Last active January 27, 2024 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cweitat/7a2ea9f27b2b612f6e885f88b06a9edf to your computer and use it in GitHub Desktop.
Save cweitat/7a2ea9f27b2b612f6e885f88b06a9edf to your computer and use it in GitHub Desktop.
Convert PHP to HTML
for %f in (*.php) do php %f > %~nf.html
@cweitat
Copy link
Author

cweitat commented May 24, 2020

For use in Windows Command Prompt, not Powershell.

Prerequisite

  1. PHP library installed and included in ENVIRONMENT_VARIABLES

Steps

  1. Run the command in the root directory of the php files via Command Prompt.
  2. Only root files will be made a copy and converted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment