0
我正在爲(本地)開發人員開發一個門戶網站,並希望能夠通過將它們的名稱傳遞給PHPEd直接從PHPEd中的瀏覽器打開PHP文件。PHP啓動程序 - PHPEd
我找到了兩種解決方案,但不能讓他們的工作:
- 解決方案1:創建一個新的協議(phped_protocol),並使用 「
phped_protocol://[file]
」 爲URI - 解決方法2:執行打開PHPED
有人能幫助我這些解決方案的一個批處理腳本?我想知道如何通過PHP /瀏覽器使用PHPEd打開PHP文件。
==編輯==
溶液1
test.reg
REGEDIT4
[HKEY_CLASSES_ROOT\phped_protocol]
@="URL:phpedProtocol"
"URL Protocol"=""
[HKEY_CLASSES_ROOT\phped_protocol\shell]
[HKEY_CLASSES_ROOT\phped_protocol\shell\open]
[HKEY_CLASSES_ROOT\phped_protocol\shell\open\command]
@="\"C:\\phped_protocol.bat\" \"%1\""
的test.html
<a href="phped_protocol://[file]">Open file</a>
溶液2
phped_protocol.bat
START "test" "C:\Program Files (x86)\NuSphere\PhpED\7.0\phped.exe"
EXIT
test.php的
system('CMD /C C:\phped_protocol.bat');
請顯示您爲解決方案1和2所做的實際操作,以及您卡在哪裏? – Nanne 2012-07-26 09:58:33
我已經嘗試了上面的解決方案,以及其他一些東西,比如exec的替代系統,改變命令等等。 – Simon 2012-07-26 11:17:16