Merging multiple PHP script into a single file

前端 未结 6 2007
礼貌的吻别
礼貌的吻别 2021-02-05 07:59

I have a PHP script which includes one or two other libraries it depends on using the \'include\' statement. To make it more easily portable, I would like to someho

6条回答
  •  别那么骄傲
    2021-02-05 08:35

    phc allows this. Just run it with the --include flag, and it will combine all your code (well, every argument to an include, require, etc) into a single PHP file.

    If you like, it can also compile it, but that's not required to combine them all into a single file.

提交回复
热议问题