Categories for Web Development

Exporting WP posts

Getting Specific Posts & Pages Exported From WordPress Ever wondered how to export PART of your WordPress content? Maybe one author in a multi-author blog is leaving… Perhaps one category is being used to seed a new blog… Whatever the…..

[Read More...»]

Blocking IP from China

If your website is running on Apache, here is how you can easily block IP’s from China. Open your .htaccess file & paste the following. ///////////////////////////////////////////////////////////// order allow,deny allow from all # China IP Address Blocks deny from 58.14.0.0/15 58.16.0.0/13…..

[Read More...»]

PHP Redirect

PHP Redirect to Self (refresh) Header(‘Location: ‘.$_SERVER[‘PHP_SELF’]); Exit(); // if more than one header, you will get “header already sent” error if don’t exit out PHP Redirect to other page header( ‘Location: http://www.example.com/other_page.html’ ) ; Why you should avoid using…..

[Read More...»]