Web Development

Windows and Linux-based Web development: PHP – Node,js – ASP.NET – C#
IIS – Apache / Visual Studio – Atom – Notepad++

Move IIS inetpub Directory

2017/12/11
By
Modified: 2017/11/05
Move IIS inetpub Directory

To keep your operating system completely separate from all the web stuff, it is advisable to move inetpub directory off the root of a %SystemDrive% to a completly different drive. In these sample I am moving IIS from C:\inetpub to x:\inetpub.   Adjust this to your needs. Steps described here were tested on Windows 7 IIS 7.5 and Windows 2008 Server R2 IIS 7.5. Check if your http://localhost/ is working before proceeding.   -01- Stop all IIS-related services Stop services related to IIS: – FTP (if installed) – IIS Admin – SMTP (if installed) – Windows Process Activation (will stop all other IIS services) – WWW (will be stopped by stopping previous…

Read more »


Using Ajax Toolkit Controls on Pages With Other Scripts and Master Pages

2017/11/27
By
Modified: 2017/11/05
Ajax Extended Calendar

[ASP.NET – This  material was tested on Win7, W2K8 Server,  IS7 and IIS 7.5  and Microsoft Visual Web Developer 2010]   Install Proper Version Download and unzip proper version form http://ajaxcontroltoolkit.codeplex.com/releases/view/76976 Open the site where you intend to uses Ajax Controls, Follow  generic instruction and add a new control tab inside your Visual Studio or Web Dev. By doing this, you copy a file “AjaxControlToolkit.dll” and others into your site Bin directory. Text file  “/Bin/AjaxControlToolkit.dll.refresh” has a pointer to a folder where you unzipped your Ajax Toolkit. If you move Toolkit installation files somewhere, you can always update the pointer manually.   Use Ajax Control Open the page that you intend to…

Read more »

Work with MySQL – Basic WordPress Queries

2017/11/24
By
Modified: 2017/11/05

This article was born, as I was searching for ways to handle thousands of registered WordPress users, who never do anything, never return to the site, and never even change their default password.               Table of Topics -1030- List all registered users sorted by date -1060- Group registered users by email domain name -1090- Users who ever posted articles -1120- List of registered users who ever posted comments -1150- List of users, who posted messages in your bbPress Forum -1180- Group users by year and month of registration -1210- Count users in different roles -1240-  Users who never changed their default password -1270-  Users who changed their default password -1300-…

Read more »

Store ASP.NET User Security Inside Your SQL Database

2017/11/21
By
Modified: 2017/11/05

How to move all ASP.NET security tables to your custom SQL database and how make it all work together. Consists of three steps: -01- Create security tables in your current custom database; -02- Generate a machine key -03- Modify web.config

Read more »

XML Parsing Error in Firefox; Cannot Display This Feed in IE

2017/11/19
By
Modified: 2017/11/05
Firefox-XML-Parsing-Error

This article describes, how to fix RSS Feed error messages in WordPress. In Firefox the error is “XML Parsing Error”.  In IE you see “Internet Explorer cannot display this feed”.   Symptoms When you click on RRS link in WordPress (or bbPress), you are getting this error message (see images bellow).  The message is different depending on your browser. Firefox Internet Explorer XML Parsing Error: XML or text declaration not at start of entity  Location: http://www.domainwebcenter.com/wp-content/bbpress/rss.php?topic=29 Line Number 4, Column 1:<?xml version=”1.0″ encoding=”UTF-8″?>   Internet Explorer cannot display this feed  This feed contains code errors. Go back to the previous page. More information Invalid xml declaration. Line: 4 Character: 3 <?xml…

Read more »

Moving Old ASP Sites to 2008 Server, IIS 7, and SQL 2008

2017/11/13
By
Modified: 2017/11/12
IIS75-ASP-is-not-Installed

It was time to move many sites from W2K3 Server (Windows 2003 Server) and SQL 2000 Server to a new W2K8 Server (Windows 2008 Server) and SQL 2008 Server.  And if I ever have to do it again, I will check with these notes. The greatest secret in technical life (and may be wider) is to change before you have to.  Anticipate and change before circumstances force you.  For a long time I was planning this migration, but I didn’t expect to go through so many hurdles and error messages.  Luckily, I found solutions that seem logical and clean.  So, let’s go into step-by-step details. COPY DATABASE AND SITES – Backup…

Read more »

Block Remote Comments on a WordPress site

2017/11/12
By
Modified: 2017/11/05
Ban Remote Comments on a WordPress site

How to block remote comments on a WordPress site?   How indeed?   Here is a question for all of you – WordPress masters out there.   Right now I am a bit puzzled. Problem – Comments without Visits I am noticing that people are posting a spam comments in a very tricky way.  Somehow comments arrive with Site URL field populated, but I do not even have that field on the “Leave a Comment” form. It means that there is an automated way to send a comment without actually visiting the site.  Is it true?  I am searching all over the Internet right now. Looks like there is a product out there called CxxGxx. …

Read more »

How to make favicon.ico to work in IE

2017/11/09
By
Modified: 2017/11/05
favicon.ico Works in IE8

Did you notice that some sites have an icon next to the address in your browser?  And this icon will be saved next to the link, if you add the site to your Favorites. This article is about how to make this icon to appear not only in all other web browsers, but also in IE8. This article is a response to a great many  blogs, and comments, and posts.  People are complaining that, if you place favicon.ico in the root of your site, it immediately works for Firefox, but stubbornly will not work in IE8.  I hope  I am providing here a comprehensive answer on how to solve this problem.…

Read more »

IIS Reverse Proxy. It Even Works. Can’t Modify HTTP Response Headers.

2017/10/30
By
Modified: 2017/10/31
IIS-Reverse-Proxy

Description of a Problem You have a custom WEB application that runs inside your enterprise on some internal server and on some custom port.  How to make this application accessible from outside through a published HTTP link on port 80?   Proposed Solution On your production IIS server you create a directory that is accessible from outside on port 80.  Then you configure a Reverse Proxy solution described here.  This way neither you, nor your clients have to open custom ports on their firewalls.   How Does It Work IIS server receives HTTP request on port 80 through corporate firewalls. It then translates request according to routing rules to a destination on…

Read more »

How to limit a WordPress plugin to just one page?

2017/10/22
By
Modified: 2017/09/16
How to limit a WordPress plugin to just one page?

How to limit a plugin to just one page, or a few pages?  How to load a plugin only where you need it? I encountered a problem, where plugin Contact Form 7, if activated, would slow down entire WordPress site to a crawl.  Contact Form 7 is great, and I want to continue to use it.  However, this one plugin makes every page load to the count of 13 or 14.  Without it, every page loads to the count of 2 or 3.  What can I do? The solution turns out to be a very simple one.  Simply disable entire plugin unless you are loading certain pages that require this plugin.…

Read more »

How to Install WordPress 4.X on Windows 10 and IIS 7.5

2017/10/20
By
Modified: 2017/09/16
Pick-IIS-FastCGI-Option

This article is written for those who need to test/evaluate features of new WordPress release on a local machine before rolling it out to all the serves. This article describes running PHP on IIS 7.5 through FastCGI. For best results, reader is required to be able to start and stop services, understand registry manipulations, be comfortable with copy and paste inside a command prompt (Alt+Space, E, P). To achieve better portability, try to match your test machine directory structure as close as possible with your server. Other IIS Features to Pick If you are planning to test old ASP sites on the same machine, you also need to pick: - ASP…

Read more »