WordPress / Blogs Offline Editing

There are several desktop applications you can use to write and publish content for your WordPress.com blog, even without being connected to the internet. You may hear this referred to as “offline editing.” We support the major posting standards, such as the MetaWeblog API, so you should be able to use most applications that you come across. Here are a few offline editors/publishers that you can try:

Continue reading “WordPress / Blogs Offline Editing”

How to sanitize your php input

Never trust user input, it may be malicious, always check your php input.

Check all global arrays like $_GET, $_POST, $_REQUEST, $_COOKIE, allow only known variables and make sure that they contain the right type of data.

What does this mean ? It means that if you have a $_GET[‘id’] variable in your script which has to be an integer, always check it and make sure it is an integer.

Also don’t allow other variables in $_GET or other globals, keep only variables that your scripts need. So, if your script only uses only one variable $_GET[‘id’] then dispose other variables. Here is how I do it.

http://www.codeassembly.com/How-to-sanitize-your-php-input/

Continue reading “How to sanitize your php input”