Posts Tagged ‘PHP’

Taking care of HTML comments in PHP

A little problem came up with some user submitted content on a platform I’m working with. A form allows users to submit content with tinyMCE. If the content is pasted from MS Word, the source is then littered with HTML conditional comments that can have a detrimental effect on the the page that returns it. [...]

Read the rest of this entry »

Life and Blogging is Hard

Plus.net have moved to the new CGI platform after some sort of disaster. As this was coming for almost a year, I’m shocked that the platform still seems in such a shoddy state. This has meant that the site has been misbehaving for a few weeks. Most notably causing random Apache errors. I think that [...]

Read the rest of this entry »

CodeIgniter’s Form Helper doesn’t respect POST arrays

I’ve been working on my first ‘proper’ CodeIgniter project this week. It’s been quite gruelling, as there are some moments where I have definitely sped up my production. But it’s constantly getting hampered by the learning curve. It may be slight, but is frustrating when I hit a wall. One issue that just cam up [...]

Read the rest of this entry »

PHP Toggle Variable

A neat trick I use in PHP is a toggle variable, usually when I’m creating tables and want to alternate the styles. To use a toggle variable: #Create the variable $toggle=true; #Switch it $toggle=(!$toggle); Simple!

Read the rest of this entry »

Automated Documentation in PHP

John begins a quest for an automatic web-based documentation program that will allow him to make some poorly formatted work look consistent on the web.

Read the rest of this entry »

Reverse Engineering Passwords

Hashing passwords is a common way to secure them in a database and make sure that they cannot be read easily. But did you know there’s a website that reverse engineers the hashes and stores them in a searchable database? The folks over at RedNoize have created such a site. Obviously, there’s no better protection [...]

Read the rest of this entry »