Archive

Archive for June, 2008


Network card problem in new Dell notebooks

June 9th, 2008

Problem: You turned your laptop on and connected the network cable but the system is not connecting to the network. The network card (NIC) is not there in the device manager either as if it is not installed.

Cause:
When turned on with Power cable unplugged (running on battery), the Quickset utility in the newer Dell notebooks disables the network card by default thinking that you are on the go and won’t be connecting to a network cable.

Solution: Open the Quickset utility and select “Internal Network Card Power Management”. The “Internal Network Card Power Management” dialogue box will appear. Select the option “always activate on battery” and then click “Apply” and Restart your laptop.


Internal Network Card Power Management


Hardware, Internet, Utilities


Your Ad Here
Ad by AdBrite

Configuring PHP and MySql on IIS (For Windows XP)

June 9th, 2008

I was once asked to develop a web based database project which I had to do either using PHP or Java and I was not familiar with either of them. I searched on Google and felt that PHP is easy to learn and use. So I started learning PHP using the tutorials available online and building my project on the same time. Today I feel PHP has everything that one may need for any kind of web application which may require a back end database.

Installing PHP can be a mess so here are the instructions are for the following versions: PHP 5.2.3, MySql 5.0 and IIS 6.0

Steps may change a little with other versions.


Installing PHP

Step 1: Create a folder on C: called “PHP” and unzip the files from the PHP download into that folder.

Step 2: Open IIS6 Manager Right Click -> Default Website -> Properties -> Select Home Directory -> Select Configuration. On Application configuration check to see if .php is in list. If not click “Add”. For executable browse to “c:\php” folder and select “php5isapi.dll”. Click “OK” and then “OK” again.

Step 3: In the “C:\PHP” folder copy the file “php.ini-recommended” to your C:\WINDOWS folder. Rename this file to “php.ini”

Step 4: Create a test file in the root of your web folder called “phpinfo.php” and insert the code below:

<php
phpinfo();
?>

Step 5: Click Start –> Run and type IISRESET and press enter.

Step 6: Open Internet Explorer and type “http://127.0.0.1/phpinfo.php” and you should see it give you information about the PHP version.

If you see a page with all sorts of information about your PHP version that means your installation was successful.

Configuring MySQL Server

While running the setup you will need to configur an Instance. You can choose the following options while following the wizard.

MySQL Server Instance Configuration Wizard –> Detailed Configuration –> Developer Machine –> Non-Transactional Database Only –> Decision Support (DSS)/OLAP –> Check Enable TCPIP Netwokring –> Port 3306 –> Standard Character Set –> Install as a Windows Service –> Give it a password –> Execute!!

Configuring PHP for MySQL

Step 1: In the C:\PHP folder copy the file “libmysql.dll” to your C:\WINDOWS\SYSTEM32 folder. Make sure you don’t overwrite any existing file in this folder. If file exists, first rename it so you can go back.

Step 2: In the C:\PHP folder copy the file “php.ini-recommended” to your C:\WINDOWS folder. Rename this file to “php.ini” (You already did this.)

Step 3: Edit this file “php.ini” using a text editor like notepad. Find the line where it says “extension_dir = ***”. Uncomment this line by removing the preceding semi-colon. and set it to:

extension_dir=”c:\php\ext”

Step 4: In the same file “php.ini” also un-comment out 2 other where it says: extension=php_mysql.dll and extension=php_mysqli.dll by removing the semi-colon.

Step 5: Click Start –> Run and type IISRESET and press enter.

You are good to go!!

Internet, Programming


Your Ad Here
Ad by AdBrite

Dynamic IFRAME Resizing

June 9th, 2008

IFRAMEs are generally not considered a good idea to use but sometimes it really helps. But resizing an IFRAME as per the content is a big issue and I found a piece of code after some search which can resolve this issue.

In the head of your document enter the following JavaScript code:

<script language="JavaScript">
<!--
function calcHeight()
{
//find the height of the internal page
var the_height=
document.getElementById('the_iframe').contentWindow.
document.body.scrollHeight;

//change the height of the iframe
document.getElementById('the_iframe').height=
the_height;
}
//-->
</script>

and in the body create the iframe tag:

<iframe width="700" id="the_iframe"
onLoad="calcHeight();"
src="testing_page.shtml"
scrolling="NO"
frameborder="1"
height="1">
</iframe>

This will create an IFRAME of width=700 and the height will depend on the content it stores.

Reference: Guymal Code

Internet, Programming


Your Ad Here
Ad by AdBrite

IIS 5.0 error message: Service Unavailable

June 8th, 2008

Problem: You are hosting a website using IIS 5.0 and the website is giving an Error message saying “Service Unavailable”.

Solution:
1. Open the IIS Manager, right click Web Sites on the left panel and select properties.
2. Click on the Service Tab.

IIS Properties Isolation Mode

3. Check “Run WWW Service in IIS 5.0 Isolation Mode”.
4. If asked to Restart of IIS then click yes else click Start –> Run –> type ‘iisreset’ and press Enter.

Try opening the website again and you will be perfectly fine.

Internet


Your Ad Here
Ad by AdBrite

Outlook 2003 Calendar Printing – “The messaging interface has returned an unknown error”

June 8th, 2008

Problem: When you try to print another user’s shared calendar in Microsoft Office Outlook 2003, the calendar does not print. Additionally, you receive the following error message:

“The messaging interface has returned an unknown error. If the problem persists, restart Outlook.”

Solution:

Disable the TaskPad option
1. On the File menu, click Print.
2. Click Page Setup.

Outlook Page Setup Taskpad

3. On the Format tab, click to clear the TaskPad check box.
4. Click OK to close the Page Setup dialog box.
5. With the Daily Style print style selected, click OK to print the shared calendar.

and u are good to go!!

Internet


Your Ad Here
Ad by AdBrite