If there's an error in your php code you might not always get an output of the error. Since php can't be be compiled, we don't get the code validated at runtime. Instead we can run php with the -l flag: $ php -l myfile.php This will hopefully say No s ...
Output MySQL query to CSV file
I wanted to export some data from my MySQL database because I didn't want to use the app that populated the database any more. Instead of creating a script to make the query, structure the output and write it to a file I found out that I could make MySQL ...
Add time to terminal
!Disclaimer: I'm not an expert on the .bashrc file, so I can't guarantee nothing will break. In linux you can make the system show the time as part of the terminal line like this: [18:15] tss@localhost:~$ To achieve this on Ubuntu* you need to update ...