PHP packaged into EXE-PHP source code

Source: Internet
Author: User
Ec (2); principle. On the Internet, I found a package program make_exe(?phpnow=which can pack the file interface information after .7z + into an EXE running package and automatically run the batch files in the 7z compressed package after self-decompression. Make_exe.zip contains three files: Make_exe.cmd, PHPServer. sfx, and PHPServer. sfx. cf. You should have thought about this. First, compress the PHPServer with script ec (2) and script

Principle. On the Internet, I found a package program make_exe(?phpnow=which can pack the file interface information after .7z + into an EXE running package and automatically run the batch files in the 7z compressed package after self-decompression. Make_exe.zip contains three files: Make_exe.cmd, PHPServer. sfx, and PHPServer. sfx. cf. You should have thought about this. First, compress PHPServer into the PHPServer.7z file and configure it. Modify the PHPServer. sfx. cf file and run Make_exe.cmd.

First: Make_exe.cmd code
Copy content to clipboard
Code:
Set v= 1.2
Copy/B/y PHPServer. sfx + PHPServer. sfx. cf + *. * phpserver?v=.exe | pause
Very clear! "Set v = 1.2" is the version, and then three files are required for packaging.
PHPServer. sfx. cf code. Open the method and drag it directly to the TXT file.
Copy content to clipboard
Code:
;! @ Install @! UTF-8!
Title = "Real Estate Information Management System V1.2"
BeginPrompt = "# Real Estate Information Management System V1.2 installation package # nn * confirm that you have not run other services that occupy port 80, such as IIS. N * if you have other similar packages installed, stop or uninstall them first. After installing n *, do not move the installation directory. Nn Author: yuno QQ: 110026985 home page http://www.xilo.cn. "
ExtractDialogText = "Please wait and unzip the file ..."
ExtractTitle = "extracting ..."
ExtractPathText = "select the extract path (only English characters ):"
ExtractCancelText = "cancel"
CancelPrompt = "are you sure you want to exit? "
GUIFlags = "4 + 8 + 32 + 64 + 256 + 2048"
InstallPath = "D: \ PHPServer"
RunProgram = "cmd/c setup. cmd"
;! @ InstallEnd @!
I believe I will not explain this, but I will change it if I want to display it. Note that InstallPath = "D: \ PHPServer" is the installation directory, and RunProgram = "cmd/c setup is also run after decompression. cmd "this BAT, that is, the command to start apache and mysql services. The following is the setup. cmd command of PHPServer. Because there are too many simple comments!

Setup. cmd code:

Code:
@ Echo off
Rem -- http://www.xilo.cn
Rem -- By yuno (QQ: 110026985)
Setlocal enableextensions
Call Pnconfig. cmd
Prompt-$ g
Title initialize PHPserver % pnver %-Apache + PHP + MySQL
Echo ____________________________________________________________
Echo ^ |
Echo ^ | ###### installing haobo real estate information management system environment suite #######^ |
Echo ^ | ____________________________________________________________________ ^ |
Echo.

: Copy
Echo _____________________________

<

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.