I recently wrote a post about how to correctly hash passwords using PHP. As this story was shared on reddit it was met with the normal trolling almost every post gets on the platform. One of the issues was why did I mention such things as MD5 and SHA when the post was about correct way of password hashing. My response to this was because most tutorials (usually aimed at beginners) recommend hashing passwords with functions such as MD5 and SHA1 and I dedicated a paragraph of the article to explaining why these where bad points and why not to use them.
I wouldn’t recommend going backwards on PHP versions but if you have no other choice then simply add a Debian snapshot to your repo and then install passing the version number.
Codeigniter 4 alpha has been released to the public for review so here is a quick run down on how to get started. Please note this is not even close to being production ready so please don’t create any public facing websites, this code is for review only.
So over this series of posts we have covered Linux operating systems, IDE’s and text editors. In this final post of the series I will cover the final bits and pieces used in a web development workflow.
In part 2 we discussed potential IDE’s for your web development on Linux but sometimes IDE’s are over kill for some projects and some people just don’t like using IDE’s at all.
So here is my countdown of some of the best text editors for Linux when doing web development.
PHP password hashing and the new password_hash() function
Password hashing is a hot topic with many database breaches resulting in users passwords being revealed due to bad encryption techniques or even worse none at all! Never store a password in plain text, you’re not doing that anyway right?
In part 1 we discussed which Linux OS to go with and in this part (2) I will give you some options for IDE’s that play well with Linux. Continue reading Web development using Linux – Part 2: IDE’s
In this series of posts I’m going to discuss web development using Linux. I have been using Linux as my web development platform for the last 5 years and I’m here to give you a run down of what software I use to get the job done. You may be surprised to most of your common tools on Windows and Mac are actually available on Linux.
There’s no better place to start in part 1 of this series than the OS its self.
The @ symbol is used in PHP to suppress error warnings in your code. Prepending an ampersand to a line of PHP will suppress the error from reporting but it doe’s come with a few caveats listed below.
Example: To stop errors from showing for a class
$var = @new some_class();
This is something I’m asked on a regular basis, can I use phpinfo() and leave it on my live server? My first question to you is why would you want to do that?