diff2php(1)

✨ NAME ✨

diff2php β€” bestie, this little icon transforms a patch into a self-serving PHP file πŸ’…


πŸŽ€ SYNTAX πŸŽ€

diff2php file

yeah that's it. one argument. no notes. ✨


🌸 DESCRIPTION 🌸

okay so imagine you have a patch and you're like "girl, I need this to be a whole website" β€” that's literally the assignment. πŸ¦‹

diff2php takes one file, and it creates a PHP file out of that patch. and here's the slay part: that PHP file is self-serving β€” like, it's giving main character energy, it serves itself, no extra help needed. πŸ‘‘

so when someone views that PHP file, it does one of two things, depending on what they want:

  • it serves the patch as colored HTML when it's being viewed, so your patch is looking cute and readable, highlighted and all 🌈
  • OR it serves the patch as raw text/plain for downloading, so anyone can just grab it as a plain file πŸ“₯

and that's the whole vibe check. patch goes in, self-serving PHP file comes out. ate. πŸ’–


πŸ’œ SEE ALSO πŸ’œ

  • hxtools(7) β€” the rest of the hxtools family, go say hi 🫢

okay bestie that's the whole page 🌸 this was hxtools, dated 2008-02-06 β€” like, vintage but still iconic, fr fr πŸ’–βœ¨πŸŽ€ thank you for coming to my ted talk, ily, mwah πŸ’…πŸ¦‹