Codebase

Last updated:

Validate MIME types with PHP Fileinfo

How to check the file type in PHP and secure file uploads: validate MIME types with the PHP Fileinfo extension, not by file extension.

blue elephant plush toy on black laptop computer -- Photo by Ben Griffiths

Codebase

Last updated:

Optimize all MySQL tables with MySQLi multi_query

PHP MySQLi extension supports multiple queries which are concatenated by a semicolon. We can use this to optimize all MySQL tables in one single multi_query statement.

WordPress

Last updated:

WordPress CMS admin password reset

Lost or forgotten your WordPress admin password? Reset it with a MySQL query, through functions.php over FTP, or with the lost password feature.

PHP logo by Colin Viebrock

Codebase

Last updated:

Connect to MS SQL Server with PHP 5.3+

As of PHP 5.3.2 you have to use the SQLSRV API functions to connect to an Microsoft SQL Server database from PHP. For example, use sqlsrv_connect() to create a connection resource and open a connection. Learn how to connect to a Microsoft SQL Server database using PHP 5.3+ and SQLSRV.

Web applications

Last updated:

Create your own PHP based Origin Pull CDN

The advantage of having your website content hosted on a Content Delivery Network (CDN) is having your content distributed and stored across the Globe. Utilizing the network of the Content Delivery Network provider.

Microsoft Internet Information Services (IIS) logo

Windows Server

Last updated:

PHP with WinCache on IIS

In this article you'll learn how to install and set up PHP with the Windows Cache Extension (WinCache) on windows IIS web servers. WinCache enabled PHP gives a great PHP performance boost for your WordPress-, Drupal or Joomla website. This post will show you it's not hard to set up high performance PHP hosting on IIS.

Windows Server

Last updated:

Multiple IIS 6.0/7.5 Vulnerabilities

Multiple vulnerabilities in IIS 6.0 and 7.5 web servers were reported to the Full-Disclosure mailing list by Kingcope. I tested them, and here are the workarounds.

Red error messages on a black computer screen indicating blocked web resources

Web applications

Last updated:

Filter web traffic with blacklists

HTTP blacklist for your website: block and filter unwanted web traffic with blacklists, on both IIS and Apache. Protect your website easily and learn how to create your own HTTP web blacklist filter.

Microsoft Internet Information Services (IIS) logo

Windows Server

Last updated:

PHP on IIS: "No input file specified"

When you host your PHP website on Windows Server IIS, you may receive an "No input file specified" error message, when a HTTP request is made to non-existing .php files. When this happens you probably have no Request Restrictions configured in IIS PHP handler settings. Here is how to fix the "no input file specified error" with PHP and IIS.