search

Home  >  Q&A  >  body text

How to add text at the beginning of TXT header

As shown in the picture, the guestbook inserts text at the end of TXT every time, and new messages when browsing the web are at the bottom. I want to insert new messages at the beginning of TXT.

Please tell me how to do it.
php.png

rocherrocher2624 days ago1270

reply all(1)I'll reply

  • 路过

    路过2017-11-17 08:32:37

    If you are reading from the database, just output it in reverse chronological order.

    If you implement it with jq, jq has a method of inserting content in front.

    reply
    0
  • Cancelreply