Category: Programming

Backup WordPress Database and Files

A WordPress website consists of two main parts:

  1. Database – stores all of your website content including posts, comments, links and website settings (but not physical files like images uploaded).
  2. Files – where the code is stored to access the database and make everything work. Themes, plugins and user generated files (images uploaded) are all stored together in the wp-content folder.

Backing up just the database will mean you do not have a backup of images and files uploaded which are usually very important to a website.  So for a reliable backup of your WordPress website you need to backup the database and files. Read More »

Posted in Programming | Tagged | Leave a comment

A Potentially Dangerous Request.Form Value Was Detected

ASP.NET automatically checks for HTML being sent by GET or POST requests as a security precaution and throws the following nasty error if it finds any: Read More »

Posted in Programming | Tagged , | Leave a comment

Connecting to MySQL Server Across a Local Windows Network

To access MySQL Server over a local Windows network you will need to open up the port that MySQL is using and also grant privileges for the user that will access the database server.

Read More »

Posted in Programming | Tagged , | Comments closed

Backup a SQL Server 2008 Database From a Shared Hosting Environment

SQL Server hosting is usually expensive so shared hosting is often used to keep costs down. With shared database hosting, and with shared web hosting, security is usually tighter and this leads to some standard functionality not being available. With SQL Server 2008 shared hosting the Back Up task is often disabled.

In this article we cover an alternative way to backup your database using the Generate Scripts and Export Data database tasks. Read More »

Posted in Programming | Tagged | 3 Comments

WordPress Comments Feed for a Custom Post Type

We have already covered how to include custom posts in WordPress feeds. The changes made affect the comments feed and now will list comments for all post types. Read More »

Posted in Programming | Tagged | 3 Comments

Using Additional Thumbnail Sizes in WordPress

WordPress already lets you specify different sizes for media files uploaded. The sizes thumbnail, medium and large are included and the image dimensions can be configured under the Tools > Media menu.

However, if you require more image sizes you can register them in functions.php using add_image_size() Read More »

Posted in Programming | Tagged | Leave a comment

WordPress Feed for Custom Post Types

If you are using the new custom post types with WordPress you may have noticed that the custom posts do not automatically appear in your feed. Read More »

Posted in Programming | Tagged | Leave a comment

Remove HTML with Regular Expressions

Working with websites you often need to strip out HTML tags, tag attributes or the complete contents of a HTML tag from some text. Regular expressions can make this very easy and so we thought we would share some that we use all the time. Read More »

Posted in Programming | Tagged | 4 Comments

mysql.data Incorrect number of arguments for PROCEDURE

The following error occurred while using the MySQL Connector for ASP.NET:

mysql.data Incorrect number of arguments for PROCEDURE 'stored procedure name' expected 3 got 2

Read More »

Posted in Programming | Tagged , , | Leave a comment

Nesting ASP.NET User Controls

While trying to nest ASP.NET user controls inside other user controls you may experience the following error:

The page ‘[control 1].ascx’ cannot use the user control ‘[control 2]‘, because it is registered in web.config and lives in the same directory as the page.

Read More »

Posted in Programming | Tagged , | Leave a comment