News for hackers. Stuff that matters.
Re:Ask HN: Who is still programming directly on a server? by xnx on Tuesday February 27, 2024 @11:13PM (#39533915)
You can simplify even further and edit live PHP files right in your editor.
Re:Ask HN: Who is still programming directly on a server? by shermantanktop on Tuesday February 27, 2024 @11:17PM (#39533937)
Sometimes you can edit someone else’s live PHP files right on their server.
Re:Ask HN: Who is still programming directly on a server? by Monotoko on Tuesday February 27, 2024 @11:20PM (#39533953)
We've all been there
Re:Ask HN: Who is still programming directly on a server? by BayesianDice on Wednesday February 28, 2024 @10:24AM (#39539122)
And then your text editor might leave a backup copy with filename "xyz.php~" which PHP won't interpret and Apache will happily serve to a curious user as plain text.

So I've heard :-)

Re:Ask HN: Who is still programming directly on a server? by toast0 on Thursday February 29, 2024 @05:19PM (#39555987)

   <Files "*~">
       Require all denied
   </Files>

   <Files "DEADJOE">
       Require all denied
   </Files>
(last one assuming you're using joe)
Re:Ask HN: Who is still programming directly on a server? by kypro on Thursday February 29, 2024 @08:46AM (#39549202)
I miss the days when this was normal for production websites. I wrote delete query once but forgot the where clause so I nuked the prod DB.