Sublime Text中运行PHP(转)
sublime text 2 has the concept of build systems. this basically means that if you are editing a python file then you can run the python interpreter on the source file your are editing and see the output in a console window, all without having to leave the sublime editor. it’s surprising how much quicker and easier this is compared to having to leave sublime to swap to a?separate?console window. this is sublime’s tools->build system menu
surprisingly, there is no supplied build system for php, to add one go to “new build system”. a new tab opens for file?untitled.sublime-build?with the following in it:
{ “cmd”: [“make”] }
Delete that and replace it with this:
{ “cmd”: [“php”, “$file”], “file_regex”: “php$”, “selector”: “source.php” }
And save the file. Sublime will pop up the file save dialog, which defaults to the directory that Sublime uses for its user-generated config files, so don’t change the directory, just save this file as?php.sublime-build. Now, when you edit a file whose name ends with?php?(as specified by the “php$” regex in the config file) you will have a build system available. You can now hit CTRL+B and the PHP?interpreter?will run against your source file and the output appears in a Sublime Text window.
The grey window shows the output of the PHP interpreter and the time it took to run.
用 php + mysql 驱动的在线商城系统,我们的目标为中国的中小企业及个人提供最简洁,最安全,最高效的在线商城解决方案,使用了自建的会员积分折扣功能,不同的会员组有不同的折扣,让您的商店吸引更多的后续客户。 系统自动加分处理功能,自动处理会员等级,免去人工处理的工作量,让您的商店运作起来更方便省事 采用了自建的直接模板技术,免去了模板解析时间,提高了代码利用效率 独立开发的购物车系统,使用最










