How To: PHP Script To Windows EXE File Generation HOW TO :在PHP腳本到Windows exe文件的一代
PHP files are scripts which are interpreted by php interpreter (php.exe in windows). PHP文件是腳本的解釋,這是由PHP口譯( php.exe的權限在Windows ) 。 Converting them to exe files makes it easy to distribute PHP applications to Windows users.轉換他們exe文件更容易被分發的PHP應用到Windows用戶。 Unfortunately Zend, the PHP company, doesn’t provide a way to convert PHP scripts to Windows executables.可惜的Zend , PHP的公司,並不提供一種方法,轉換為PHP腳本到Windows可執行文件。 Today I am going to show you a simple way to convert your PHP scripts to regular Windows executable files (.exe).今天我要告訴您一個簡單的方法來轉換您的PHP腳本,以定期的Windows可執行文件( 。 exe )的。 Not only that you can also convert an entire directory of PHP scripts and assign one of the files as the main file to execute first.不僅如此,您也可以轉換成一整個目錄的PHP腳本,並指定其中一個檔案,作為主要文件的執行第一。 Additionally the source files are encoded which not only improves the performance but also protects your source code.另外,源文件編碼,這不僅提高了性能,但也保護您的源代碼。 You can also set the icon for the file which is useful when you are distributing your PHP application as a stand-alone executable.您也可以設定文件的圖標,這是有益的當你分發你的PHP應用作為一個獨立的可執行文件。
Bambalam bambalam PHP EXE Compiler / Embedder is a free command line tool to convert PHP applications to standalone Windows .exe applications. PHP中的EXE編譯器/嵌入式是一個免費的命令行工具轉換為PHP的應用,以獨立的Windows 。 exe的申請。 The exe files produced are totally standalone with no need for php dlls etc. The php code is encoded using the Turck MMCache Encode library.該exe文件的製作是完全獨立的,無需對PHP的DLL等PHP代碼編碼使用圖爾克mmcache編碼圖書館。 It’sa perfect solution if you want to distribute your application to Windows users while protecting your source code at the same time.這是完美的解決方案如果你想分發您的應用程式Windows用戶,同時保護您的源代碼在同一時間內。 The converter is also suitable for producing .exe files for windowed PHP applications (created using, for example, the WinBinder library).該轉換器是也適合生產。 exe文件,為窗口的PHP應用程序(創建的使用,舉例來說, winbinder圖書館) 。 It’s also good for making stand-alone PHP Socket servers/clients (using the php_sockets.dll extension).它也有利於決策的立場,獨立的PHP的Socket服務器/客戶端(使用php_sockets.dll擴展) 。
It’s NOT really a compiler in the sense that it doesn’t produce native machine code from PHP sources, but it works!它不是一個真正的編譯器在意識,它不產生本土的機器代碼從PHP來源,但它的工程! Currently, the converter uses a PHP runtime based on PHP 4.4.4.目前,該轉換器採用了PHP的運行基於PHP 4.4.4 。
The tool is free and open source.該工具是自由和開放源碼。
Usage:用法:
bamcompile [-options] infile.php [outfile.exe] bamcompile [ -選項] infile.php [ outfile.exe ]
bamcompile [-options] project_directory mainfile.php [outfile.exe] bamcompile [ -選項] project_directory mainfile.php [ outfile.exe ]
bamcompile projectfile.bcp bamcompile projectfile.bcp
Options:選項:
-w Hide console window for windowed applications -瓦特隱藏控制台窗口,為窗口申請
-c Compress output exe (using UPX) - C的壓縮輸出的EXE (使用upx )
-d Do not encode PHP files三維不編碼PHP文件
-e:extension.dll Embed and use PHP extension E型: extension.dll嵌入和使用PHP擴展
-i:icon.ico Add icon to exe我是: icon.ico添加圖標的EXE
You can download it您也可以下載它 here這裡 . 。
Filed under提起下 Headline News頭條新聞 , , How To如何 , , Microsoft微軟 , , PHP PHP的 , , Programming編程 , , Web網頁 , , Windows在Windows | |
| |
RSS 2.0 2.0 | |
Trackback Trackback跟踪 this Article |此文章|
Email this Article電子郵件此文章
You may also like to read您也可以想讀 |




March 24th, 2008 at 5:11 pm 2008年3月24日在下午5時11分
thankss you.. thankss你.. soo much.洙得多。
April 12th, 2008 at 8:30 am 2008年4月12日上午8時30分
Hello, how can I use PHP server to creat a web page please?您好,我如何能使用PHP服務器創建一個網頁,請? Steps and requirements.步驟和要求。 Thanks謝謝