Category PHP code

We post new PHP code snippets from time to time. If we need to write some code which might be useful for others, you will find that code in this category. From time to time we write PHP tutorials, too. Sometimes our code snippets are written for a special case and they might not fit in your own application. In that case we hope that our code was helpful and good enough for a quick study. If you like to share your own code, just submit the snippet to the support section.

If you look for the other PHP classes, please check our PHP script archive.

MIME type detection for PHP file uploads

This weekend was my website offline for 3 hours because my hosting provider has detected a malicious file inside the upload directory I use for some PHP upload demo on my website. This breach was (also) possible because I forgot several month ago to update a CRON job...