Merging multiple PHP script into a single file

前端 未结 6 2017
礼貌的吻别
礼貌的吻别 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:48

    Manually, you just remove all references of include/require, and "concatenate" the files together. you should also strip the open and end tags ('") before concatenation, and add them in the final file.

    For one or two small libraries, it should - hopefully - "just work"...

提交回复
热议问题