Skip to content

Instantly share code, notes, and snippets.

@eburhan
Created April 2, 2020 10:26
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 eburhan/566f9f8f0aa95526cd1917fbefa9a0bd to your computer and use it in GitHub Desktop.
Save eburhan/566f9f8f0aa95526cd1917fbefa9a0bd to your computer and use it in GitHub Desktop.
start a PHP Web Server from context menu
@echo off
SET "Host=localhost"
SET "Port=88"
SET /p "Port=Port numarasi gir ya da [ENTER] ile %Port% nolu portu otomatik sec: "
START http://%Host%:%Port%
php -S %Host%:%Port% -t "%1"
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\php ]
@="PHP Server Başlat"
[HKEY_CLASSES_ROOT\Directory\shell\php \command]
@="C:\\phpserver.bat \"%1\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment