Month: December 2008

Secure hash and salt for PHP passwords

It is currently said that MD5 is partially unsafe. Taking this into consideration, I'd like to know which mechanism to use for password protection. This [...]

Convert HTML + CSS to PDF with PHP?

Ok, I'm now banging my head against a brick wall with this one. I have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7. It uses fairly [...]

Delete an element from an array

Is there an easy way to delete an element from a PHP array, such that foreach ($array) no longer includes that element? I thought that setting it to null [...]

PHP detecting request type (GET, POST, PUT or DELETE)

How can I detect which request type was used(GET, POST, PUT or DELETE) in php? Source: Stackoverflow [...]

How do I implement basic “Long Polling”? [closed]

I can find lots of information on how Long Polling works (For example, this, and this), but no simple examples of how to implement this in code. All I can [...]