有什么方法可以 运行 一个带有 php.exe 和友好的 gui 的 php 文件吗?

Is there any way to run a php file with php.exe and a friendly gui?

我 运行 我的 php 脚本在 windows 控制台中,使用 CMD 并写入:

[PATH to php.ext]\php.exe [path_to_file]\file.php parameter

有没有什么方法可以在不使用浏览器的情况下 运行 带有 GUI(或类似)的 php 文件并输入文本以询问参数?像这样:


谢谢大家。

Visual Basic Sc​​ript 对我来说是一个有效的选项:

sub shell(cmd)    

' Run a command as if you were running from the command line

dim objShell
Set objShell = WScript.CreateObject( "WScript.Shell" )
objShell.Run(cmd)
Set objShell = Nothing
end sub

dim name

' Ask the user for a parameter

name = inputbox("Parameter", "Title", "")

if name <> "" then

' The user gave the parameter.  Open the program
' with the value the user gave.

shell "php.exe file.php " & name
else
msgbox "User cancelled.", 16, "User cancelled"
end if