Which Way Do Your Slashes Face in PHP?

4 minute readWhen writing out filepaths and URLs, should you use forward slashes / or backslashes \? Windows expects one, whereas Unix-style operating systems (Linux and Mac OSs, primarily) expect another. PHP has two built-in solutions, but both have problems, especially if you’re working with WordPress. Backstory At work, I’ve recently had some trouble getting my linux […]

Read More Which Way Do Your Slashes Face in PHP?

Line Ending Troubles with Git, a Virtual Machine, and Windows

4 minute readThis is some technical stuff I learned today using Git, VVV with a Linux virtual machine, and Windows. I recently started getting these annoying messages again whenever I’d commit anything using Git: warning: LF will be replaced by CRLF in payment_methods/Paypal_Standard/help_tabs/payment_methods_overview_paypalstandard.help_tab.php. The file will have its original line endings in your working directory. I had […]

Read More Line Ending Troubles with Git, a Virtual Machine, and Windows