PHP

Getters and Setters are better than public properties

Posted on

I ran into something that bit me in the butt the other day and I have been meaning to talk about it. Getters and Setters are better than public properties! In theory, it seems like a property of a class that should be freely written and mostly read from should be a public property. It […]

PHP

PHP Generators

Posted on

Ok, I have been reading Modern PHP by Josh Lockhart and I came across something that I never even knew that I could use to immediately update my code and that is generators. If you don’t know what they are, they are basically one way iterators without all the fancy stuff. But the greatest use […]

PHP

PHP and multiple header locations

Posted on

Ok, this is going to be a short post since I am in the middle of a rollout. But I am transferring some pages over and I want to make sure customers don’t lose bookmarks that they have, so I redirect with PHP header tags. Well, you ever thought what would happen if you have […]

PHP

PHP Encryption and Remember Me

Posted on

Programmers, or at least those serious about security and encryption, will tell you that the only way to be secure is not have a remember me function anyways. In addition to that, you would also not have a reset password functionality either. But we all know in today’s world, you almost have to have it […]