IIS error ‘8002801c’ Error accessing the OLE registry

After installing IIS5, I got an authentication dialog on my browser requesting username and password. When authentication failed, it gave me this error message below.

error '8002801c'

Error accessing the OLE registry.

/iisHelp/common/500-100.asp, line 17

… to get around this problem do
1./ Select Start, Run and then type inetmgr to display Internet Information Service Management tool
Internet Information Service
2./ Select local computer and Web Sites
3./ Right click on localstart.asp and select Properties
4./ Click on File Security tab, Edit and under Anonymous access type in your username and password.
5./ After that press OK
6./ Restart your IIS by right clicking local computer, All Tasks and Restart IIS…

Advertisements

How to setup IIS web server

Yet another installation manual for setting up IIS web server, matter of fact this is 1,070,000th on google search. Anyhoo, lets get on with it.

1./ first log on as the web server user.
2./ go to Start, Control Panel (if you’r Window XP user) and Add/Remove Programs
3./ select Add/Remove Windows Components
Add/Remove Programs
4./ select Internet Information Services (IIS)
5./ press Details… for advance options and select File Transfer Protocol (FTP) Service, SMTP Service and World Wide Web Service
Add/Remove Windows Components. After that press OK.
6./ to finish press next to continue with installation.
7./ you should have a new folder called Inetpub on your primary hard drive (which is C:\ drive).
8./ now type in http://localhost/ on your browser
Add/Remove Windows Components

…you are done.

PHP 4.4.9 throws ‘Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’’

Today, my website decided suddenly not to work and reported a syntax error however I had not made any changes to it. It gave me an error message

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'

… I looked at all the braces and keywords and they all checked out fine. I looked at phpinfo() and found my PHP5.* had been downgraded to PHP4.* however this did not explain why the script did not work. I wrote this test class

<?php
class TestClass
{
	static $instance;
}
?>

and to my surprise it threw the same error message as my website.

Here is the solution: PHP4.* does support the ‘static’ keyword however it supports it in the scope of a function and not in a ‘class’, example

<?php
function testFunction()
{
	static $instance = 0;
	echo "Instance value " . $instance;
	$instance++
}
?>

So, only way to fix this is to upgrade to PHP5 which I did.

exercise 1.35 solution

#include <iostream>

using std::cout;
using std::endl;

int main() {
        cout << static_cast<int>('A') << endl;
        cout << static_cast<int>('B') << endl;
        cout << static_cast<int>('C') << endl;
        cout << static_cast<int>('a') << endl;
        cout << static_cast<int>('b') << endl;
        cout << static_cast<int>('c') << endl;
        cout << static_cast<int>('0') << endl;
        cout << static_cast<int>('1') << endl;

        return 0;
}

exercise 1.32 solution

#include <iostream>

using std::cout;
using std::endl;
using std::cin;

int main() {
        int number1, number2;

        cout << "Enter first number: ";
        cin >> number1;

        cout << endl << "Enter second number: ";
        cin >> number2;

        if(number1 % number2 == 0) {
                cout << number1 << " is multiple of " << number2 << endl;
        }else{
                cout << number1 << " is not multiple of " << number2 << endl;
        }

        return 0;
}