Wednesday, May 26, 2010

Microsoft Access 2007

Sample Microsoft Access Queries :


Query for Replacing "," to ".":
Replace([fath],",",".")

Query for combining 2 fields using if statement:
IIf(Len([PH_R])=6,Replace([PH_O],"-",""),Replace([PH_R],"-",""))

Monday, March 29, 2010

HTML Color Codes

Major hexadecimal color codes













ColorColor CodeColorColor Code
Red #FF0000White#FFFFFF
Turquoise#00FFFFLight Grey#C0C0C0
Light Blue#0000FFDark Grey#808080
Dark Blue #0000A0Black#000000
Light Purple #FF0080Orange#FF8040
Dark Purple #800080Brown#804000
Yellow#FFFF00Burgundy#800000
Pastel Green#00FF00Forest Green#808000
Pink#FF00FFGrass Green#408080


Color code chart












































































































































































































































































































COLOR NAMECODECOLOR
Black#000000Black
Gray0#150517Gray0
Gray18#250517Gray18
Gray21#2B1B17Gray21
Gray23#302217Gray23
Gray24#302226Gray24
Gray25#342826Gray25
Gray26#34282CGray26
Gray27#382D2CGray27
Gray28#3b3131Gray28
Gray29#3E3535Gray29
Gray30#413839Gray30
Gray31#41383CGray31
Gray32#463E3FGray32
Gray34#4A4344Gray34
Gray35#4C4646Gray35
Gray36#4E4848Gray36
Gray37#504A4BGray37
Gray38#544E4FGray38
Gray39#565051Gray39
Gray40#595454Gray40
Gray41#5C5858Gray41
Gray42#5F5A59Gray42
Gray43#625D5DGray43
Gray44#646060Gray44
Gray45#666362Gray45
Gray46#696565Gray46
Gray47#6D6968Gray47
Gray48#6E6A6BGray48
Gray49#726E6DGray49
Gray50#747170Gray50
Gray#736F6EGray
Slate Gray4#616D7ESlate Gray4
Slate Gray#657383Slate Gray
Light Steel Blue4#646D7ELight Steel Blue4
Light Slate Gray#6D7B8DLight Slate Gray
Cadet Blue4#4C787ECadet Blue4
Dark Slate Gray4#4C7D7EDark Slate Gray4
Thistle4#806D7EThistle4
Medium Slate Blue#5E5A80Medium Slate Blue
Medium Purple4#4E387EMedium Purple4
Midnight Blue#151B54Midnight Blue
Dark Slate Blue#2B3856Dark Slate Blue
Dark Slate Gray#25383CDark Slate Gray
Dim Gray#463E41Dim Gray
Cornflower Blue#151B8DCornflower Blue
Royal Blue4#15317ERoyal Blue4
Slate Blue4#342D7ESlate Blue4
Royal Blue#2B60DERoyal Blue
Royal Blue1#306EFFRoyal Blue1
Royal Blue2#2B65ECRoyal Blue2
Royal Blue3#2554C7Royal Blue3
Deep Sky Blue#3BB9FFDeep Sky Blue
Deep Sky Blue2#38ACECDeep Sky Blue2
Slate Blue#357EC7Slate Blue
Deep Sky Blue3#3090C7Deep Sky Blue3
Deep Sky Blue4#25587EDeep Sky Blue4
Dodger Blue#1589FFDodger Blue
Dodger Blue2#157DECDodger Blue2
Dodger Blue3#1569C7Dodger Blue3
Dodger Blue4#153E7EDodger Blue4
Steel Blue4#2B547ESteel Blue4
Steel Blue#4863A0Steel Blue
Slate Blue2#6960ECSlate Blue2
Violet#8D38C9Violet
Medium Purple3#7A5DC7Medium Purple3
Medium Purple#8467D7Medium Purple
Medium Purple2#9172ECMedium Purple2
Medium Purple1#9E7BFFMedium Purple1
Light Steel Blue#728FCELight Steel Blue
Steel Blue3#488AC7Steel Blue3
Steel Blue2#56A5ECSteel Blue2
Steel Blue1#5CB3FFSteel Blue1
Sky Blue3#659EC7Sky Blue3
Sky Blue4#41627ESky Blue4
Slate Blue#737CA1Slate Blue
Slate Blue#737CA1Slate Blue
Slate Gray3#98AFC7Slate Gray3
Violet Red#F6358AViolet Red
Violet Red1#F6358AViolet Red1
Violet Red2#E4317FViolet Red2
Deep Pink#F52887Deep Pink
Deep Pink2#E4287CDeep Pink2
Deep Pink3#C12267Deep Pink3
Deep Pink4#7D053FDeep Pink4
Medium Violet Red#CA226BMedium Violet Red
Violet Red3#C12869Violet Red3
Firebrick#800517Firebrick
Violet Red4#7D0541Violet Red4
Maroon4#7D0552Maroon4
Maroon#810541Maroon
Maroon3#C12283Maroon3
Maroon2#E3319DMaroon2
Maroon1#F535AAMaroon1
Magenta#FF00FFMagenta
Magenta1#F433FFMagenta1
Magenta2#E238ECMagenta2
Magenta3#C031C7Magenta3
Medium Orchid#B048B5Medium Orchid
Medium Orchid1#D462FFMedium Orchid1
Medium Orchid2#C45AECMedium Orchid2
Medium Orchid3#A74AC7Medium Orchid3
Medium Orchid4#6A287EMedium Orchid4
Purple#8E35EFPurple
Purple1#893BFFPurple1
Purple2#7F38ECPurple2
Purple3#6C2DC7Purple3
Purple4#461B7EPurple4
Dark Orchid4#571B7eDark Orchid4
Dark Orchid#7D1B7EDark Orchid
Dark Violet#842DCEDark Violet
Dark Orchid3#8B31C7Dark Orchid3
Dark Orchid2#A23BECDark Orchid2
Dark Orchid1#B041FFDark Orchid1
Plum4#7E587EPlum4
Pale Violet Red#D16587Pale Violet Red
Pale Violet Red1#F778A1Pale Violet Red1
Pale Violet Red2#E56E94Pale Violet Red2
Pale Violet Red3#C25A7CPale Violet Red3
Pale Violet Red4#7E354DPale Violet Red4
Plum#B93B8FPlum
Plum1#F9B7FFPlum1
Plum2#E6A9ECPlum2
Plum3#C38EC7Plum3
Thistle#D2B9D3Thistle
Thistle3#C6AEC7Thistle3
Lavender Blush2#EBDDE2Lavender Blush2
Lavender Blush3#C8BBBELavender Blush3
Thistle2#E9CFECThistle2
Thistle1#FCDFFFThistle1
Lavender#E3E4FALavender
Lavender Blush#FDEEF4Lavender Blush
Light Steel Blue1#C6DEFFLight Steel Blue1
Light Blue#ADDFFFLight Blue
Light Blue1#BDEDFFLight Blue1
Light Cyan#E0FFFFLight Cyan
Slate Gray1#C2DFFFSlate Gray1
Slate Gray2#B4CFECSlate Gray2
Light Steel Blue2#B7CEECLight Steel Blue2
Turquoise1#52F3FFTurquoise1
Cyan#00FFFFCyan
Cyan1#57FEFFCyan1
Cyan2#50EBECCyan2
Turquoise2#4EE2ECTurquoise2
Medium Turquoise#48CCCDMedium Turquoise
Turquoise#43C6DBTurquoise
Dark Slate Gray1#9AFEFFDark Slate Gray1
Dark Slate Gray2#8EEBECDark slate Gray2
Dark Slate Gray3#78c7c7Dark Slate Gray3
Cyan3#46C7C7Cyan3
Turquoise3#43BFC7Turquoise3
Cadet Blue3#77BFC7Cadet Blue3
Pale Turquoise3#92C7C7Pale Turquoise3
Light Blue2#AFDCECLight Blue2
Dark Turquoise#3B9C9CDark Turquoise
Cyan4#307D7ECyan4
Light Sea Green#3EA99FLight Sea Green
Light Sky Blue#82CAFALight Sky Blue
Light Sky Blue2#A0CFECLight Sky Blue2
Light Sky Blue3#87AFC7Light Sky Blue3
Sky Blue#82CAFFSky Blue
Sky Blue2#79BAECSky Blue2
Light Sky Blue4#566D7ELight Sky Blue4
Sky Blue#6698FFSky Blue
Light Slate Blue#736AFFLight Slate Blue
Light Cyan2#CFECECLight Cyan2
Light Cyan3#AFC7C7Light Cyan3
Light Cyan4#717D7DLight Cyan4
Light Blue3#95B9C7Light Blue3
Light Blue4#5E767ELight Blue4
Pale Turquoise4#5E7D7EPale Turquoise4
Dark Sea Green4#617C58Dark Sea Green4
Medium Aquamarine#348781Medium Aquamarine
Medium Sea Green#306754Medium Sea Green
Sea Green#4E8975Sea Green
Dark Green#254117Dark Green
Sea Green4#387C44Sea Green4
Forest Green#4E9258Forest Green
Medium Forest Green#347235Medium Forest Green
Spring Green4#347C2CSpring Green4
Dark Olive Green4#667C26Dark Olive Green4
Chartreuse4#437C17Chartreuse4
Green4#347C17Green4
Medium Spring Green#348017Medium Spring Green
Spring Green#4AA02CSpring Green
Lime Green#41A317Lime Green
Spring Green#4AA02CSpring Green
Dark Sea Green#8BB381Dark Sea Green
Dark Sea Green3#99C68EDark Sea Green3
Green3#4CC417Green3
Chartreuse3#6CC417Chartreuse3
Yellow Green#52D017Yellow Green
Spring Green3#4CC552Spring Green3
Sea Green3#54C571Sea Green3
Spring Green2#57E964Spring Green2
Spring Green1#5EFB6ESpring Green1
Sea Green2#64E986Sea Green2
Sea Green1#6AFB92Sea Green1
Dark Sea Green2#B5EAAADark Sea Green2
Dark Sea Green1#C3FDB8Dark Sea Green1
Green#00FF00Green
Lawn Green#87F717Lawn Green
Green1#5FFB17Green1
Green2#59E817Green2
Chartreuse2#7FE817Chartreuse2
Chartreuse#8AFB17Chartreuse
Green Yellow#B1FB17Green Yellow
Dark Olive Green1#CCFB5DDark Olive Green1
Dark Olive Green2#BCE954Dark Olive Green2
Dark Olive Green3#A0C544Dark Olive Green3
Yellow#FFFF00Yellow
Yellow1#FFFC17Yellow1
Khaki1#FFF380Khaki1
Khaki2#EDE275Khaki2
Goldenrod#EDDA74Goldenrod
Gold2#EAC117Gold2
Gold1#FDD017Gold1
Goldenrod1#FBB917Goldenrod1
Goldenrod2#E9AB17Goldenrod2
Gold#D4A017Gold
Gold3#C7A317Gold3
Goldenrod3#C68E17Goldenrod3
Dark Goldenrod#AF7817Dark Goldenrod
Khaki#ADA96EKhaki
Khaki3#C9BE62Khaki3
Khaki4#827839Khaki4
Dark Goldenrod1#FBB117Dark Goldenrod1
Dark Goldenrod2#E8A317Dark Goldenrod2
Dark Goldenrod3#C58917Dark Goldenrod3
Sienna1#F87431Sienna1
Sienna2#E66C2CSienna2
Dark Orange#F88017Dark Orange
Dark Orange1#F87217Dark Orange1
Dark Orange2#E56717Dark Orange2
Dark Orange3#C35617Dark Orange3
Sienna3#C35817Sienna3
Sienna#8A4117Sienna
Sienna4#7E3517Sienna4
Indian Red4#7E2217Indian Red4
Dark Orange3#7E3117Dark Orange3
Salmon4#7E3817Salmon4
Dark Goldenrod4#7F5217Dark Goldenrod4
Gold4#806517Gold4
Goldenrod4#805817Goldenrod4
Light Salmon4#7F462CLight Salmon4
Chocolate#C85A17Chocolate
Coral3#C34A2CCoral3
Coral2#E55B3CCoral2
Coral#F76541Coral
Dark Salmon#E18B6BDark Salmon
Salmon1#F88158Pale Turquoise4
Salmon2#E67451Salmon2
Salmon3#C36241Salmon3
Light Salmon3#C47451Light Salmon3
Light Salmon2#E78A61Light Salmon2
Light Salmon#F9966BLight Salmon
Sandy Brown#EE9A4DSandy Brown
Hot Pink#F660ABHot Pink
Hot Pink1#F665ABHot Pink1
Hot Pink2#E45E9DHot Pink2
Hot Pink3#C25283Hot Pink3
Hot Pink4#7D2252Hot Pink4
Light Coral#E77471Light Coral
Indian Red1#F75D59Indian Red1
Indian Red2#E55451Indian Red2
Indian Red3#C24641Indian Red3
Red#FF0000Red
Red1#F62217Red1
Red2#E41B17Red2
Firebrick1#F62817Firebrick1
Firebrick2#E42217Firebrick2
Firebrick3#C11B17Firebrick3
Pink#FAAFBEPink
Rosy Brown1#FBBBB9Rosy Brown1
Rosy Brown2#E8ADAARosy Brown2
Pink2#E7A1B0Pink2
Light Pink#FAAFBALight Pink
Light Pink1#F9A7B0Light Pink1
Light Pink2#E799A3Light Pink2
Pink3#C48793Pink3
Rosy Brown3#C5908ERosy Brown3
Rosy Brown#B38481Rosy Brown
Light Pink3#C48189Light Pink3
Rosy Brown4#7F5A58Rosy Brown4
Light Pink4#7F4E52Light Pink4
Pink4#7F525DPink4
Lavender Blush4#817679Lavendar Blush4
Light Goldenrod4#817339Light Goldenrod4
Lemon Chiffon4#827B60Lemon Chiffon4
Lemon Chiffon3#C9C299Lemon Chiffon3
Light Goldenrod3#C8B560Light Goldenrod3
Light Golden2#ECD672Light Golden2
Light Goldenrod#ECD872Light Goldenrod
Light Goldenrod1#FFE87CLight Goldenrod1
Lemon Chiffon2#ECE5B6Lemon Chiffon2
Lemon Chiffon#FFF8C6Lemon Chiffon
Light Goldenrod Yellow#FAF8CCLight Goldenrod Yellow

Tuesday, March 23, 2010

GOOGLE WAVE

Google Wave is an online tool for real-time communication and collaboration. A wave can be both a conversationand a document where people can discuss and work together using richly formatted text, photos, videos, maps, and more.

Have a look at the video content friends... Click this video...

Tuesday, December 1, 2009

.NET Authentication Process for Server

Authentication Process in Dataset

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
//using [Web Service Name];

public partial class _Default : System.Web.UI.Page
{
public DataSet ds_GetPickUpDropOffInDataSet = new DataSet();

protected void Page_Load(object sender, EventArgs e)
{
try
{
ParveenAPIService pas = new ParveenAPIService();
Authentication auth = new Authentication();

auth.UserId = "1023";
auth.UserName = "hema";
auth.Password = "54321";
pas.AuthenticationValue = auth;

ds_GetPickUpDropOffInDataSet = pas.GetPickUpDropOffInDataSet();
//The HTMLEncode method applies HTML encoding to a specified string.
//DataSet..::.GetXml Method returns the XML representation of the data
//stored in the DataSet.
Response.Write(Server.HtmlEncode(ds_GetPickUpDropOffInDataSet.GetXml()));
}
catch (Exception err)
{
Response.Write(err);
}

}
}

.NET Client and Server [HTTP Request and Response]

Client Code

//Adding Namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Reflection;
using System.Net;
using System.IO;

public partial class _Default : System.Web.UI.Page
{
public string url = null;
public NameValueCollection coll;


protected void Page_Load(object sender, EventArgs e)
{
try
{
url = "http://localhost:____.aspx";
System.Net.HttpWebRequest webrequest = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(url);
webrequest.Method = "GET";
System.Net.WebHeaderCollection headers = new System.Net.WebHeaderCollection();
headers.Add("pvalue", "12345");
//Adding header name and value to a URL
webrequest.Headers = headers;
System.Net.HttpWebResponse webResponse = (System.Net.HttpWebResponse)webrequest.GetResponse();


// Get the response stream
StreamReader reader = new StreamReader(webResponse.GetResponseStream());
// Read the whole contents and return as a string
string result = reader.ReadToEnd();
//Print the contents
Response.Write(result);
}
catch (Exception err)
{
Response.Write(err);
}
}
}


Server Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
//using [Web Service Name];
using check; //check is namespace name

public partial class _Default : System.Web.UI.Page
{
public string str_GetPickUpDropOffInString = null;

protected void Page_Load(object sender, EventArgs e)
{
//GetPickUpDropOffInString()
try
{
// Authentication Process
ParveenAPIService pas = new ParveenAPIService();
Authentication auth = new Authentication();

auth.UserId = "1026";
auth.UserName = "hema";
auth.Password = "54321";
pas.AuthenticationValue = auth;


//Checking for private key
//Creating an object for class
Check_Class pkobj = new Check_Class();
//Accessing the method Check_Code using the object pkobj and storing it in a string.
//Request.Headers["pvalue"] is for requesting the header's
//value by specifying the header name.
string pk=pkobj.Check_Code(Request.Headers["pvalue"].ToString());

if (pk == "True") //Private key specified
{
str_GetPickUpDropOffInString = pas.GetPickUpDropOffInString();
Response.Write(str_GetPickUpDropOffInString);
}
else
{
Response.Write("Invalid User");
}
}
catch (Exception err)
{
Response.Write(err);
}
}
}

Tuesday, October 27, 2009

Code to connect PHP and MySQL

Program to start database connection:

$con = mysql_connect("localhost","root","root");
echo "connected";
if (!$con)
{
die('Could not connect: ' . mysql_error());
}


Program to create database and create table:

// create connection
$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

// Create database
if (mysql_query("CREATE DATABASE employee",$con))
{
echo "Database created";
}
else
{
echo "Error creating database: " . mysql_error();
}

// Create table
mysql_select_db("employee", $con);
$sql = "CREATE TABLE emp
(
ename varchar(15),
eno int,
age int
)";

// Execute query
mysql_query($sql,$con);
mysql_close($con);


Program to insert values to table:

// create connection
$con = mysql_connect("localhost","root","root");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

// select database
mysql_select_db("employee", $con);

mysql_query("INSERT INTO emp (ename,eno,age)
VALUES ('Sam', '1001', '24')");

mysql_query("INSERT INTO emp (ename,eno,age)
VALUES ('Sunil', '1002', '32')");

mysql_close($con);

Sunday, October 18, 2009

Receive SMS When Someone IM’s You (GMAIL)


If you are using Pidgin, an open source multi-protocol Instant Messaging client. Karthik of DailyApps has found a nice little SMS Notification Plugin that can notify you by mobile phone SMS when someone tries to contact you by Pidgin and you don’t respond within a specified time frame.

The SMS, is sent via Google Calendar,the SMS doesn’t give you the actual text of the message. It gives just the name of the contact and the date / time the message was sent to you. If multiple contacts leave messages, they will be all bundled together and sent to you in one SMS.

Here’s how to get this working

•Pidgin installed on your computer.
•A Google account (with SMS reminders enabled on Google Calendar).
•Google supported mobile phone network to receive SMS.
•Your PC synched with NTP (Network Time Protocol).



Installation :
For Windows Users :
Download the plug-in and place the “gsms.dll” file in the Pidgin plugins folder of Pidgin on your PC. Then open Pidgin, go to “tools” menu then “plugins” and activate the plugin.

For Linux Users :
copy gsms.so to ~/.purple/pluginsConfiguration



Screenshot :



Configuration Settings:
Gmail account:
your gmail e-mail (example: xyz@gmail.com).
Password: password for specified account.
Timeout: Number of minutes for gsms to collect chats until it sends them.
Calendar feed path: Which calendar to use (example: “/private/full” translates to: http://www.google.com/calendar/feeds/xyz@gmail.com/private/full)

Thank you.
HEMA @ HELOISE

How to Install MySQL 5.x on Windows XP Pro

Download the MySQL msi install file
http://dev.mysql.com/downloads/ ( MySQL Community Server - Current Release - Windows Essentials)
Double click it and press Run to start the install
Press Next
Select Typical
Press Next
Press Install to install to C:\Program Files\MySQL\MySQL Server 5.x
Press Next
Press Next
Press Finish to Configure the MySQL Server
Press Next to to start the Configuration Wizard
Select Standard Configuration and Press Next
Check both boxes, Install As Windows Service and Include Bin Directory
Press Next

Add a root password if you wish or else uncheck Modify Security Settings.
If you do add a root password, once you install the Personal Server, you will have to edit the Personal Server config file to add the password. The config file will be C:\Inetpub\wwwroot\cinemapremiereps\configdb.php (or \cinemapremiereps\configdb.php if you installed a different web server.) For the Test it will be C:\Inetpub\wwwroot\cinemapremierepsTest\configdb.php (or \cinemapremierepsTest\configdb.php if you installed a different web server.)
You can open configdb.php with notepad and add your password in the db_password field between the single quotes.
Save the file.
Press Next
Press Execute
Press Finish to close the Wizard
Once you have installed the web server, php, MySQL, and the personal server, you should reboot your computer before testing the movie manager.

How to Install PHP 5.x on Windows XP Pro

Once you download the PHP zip file ( the Windows Binaries Zip Package), unzip it to c:\php.
To unzip using Windows default Extract Wizard
right click the zip file
select Extract All...
click Next
browse to My Computer > SYSTEM(C:)
with SYSTEM(C:) highlighted, click Make New Folder
enter php
press OK
in the ...extract to this directory. field you should see C:\php
press Next
then press Finish

To unzip using WinZip
right click the zip file
select Extract to...
select SYSTEM(C:) in the Folders/drives: window
with SYSTEM(C:) highlighted, click New Folder
enter php
press OK
in the Extract To: field you should see C:\php
press Extract
Add c:\php to your Environment Variables
right click 'My Computer' on desktop
select 'Properties' -> 'Advanced'
select 'Environment Variables' at the bottom of the screen
in 'System variables', scroll down to select 'Path' and press 'Edit'
add ;C:\php at the end of the 'Variable value:' field (variable values need to be separated by ;)
press Ok, press Ok, press Ok.

Add the .php extension
For IIS, add it to the Application Mappings.
Start -> Control Panel -> (Performance and Maintenance) ->Administrative Tools -> Internet Information Services
Expand your local computer by clicking the +
Right click on Web Sites
Select Properties
Select the Home Directory tab
Press the Configuration button on the lower right side of the screen
Press the Add button
Browse to C:\php
Change Files of type: at the bottom of the screen to Dynamic Link Libraries (*.dll)
Double click on php5isapi.dll or select php5isapi.dll and press Open
Enter .php in the Extension field (be sure to enter the '.' before the php)
Press OK
Press Apply
Press OK
Press OK

Close the Internet Information Services screen

For Abyss,
Declare the interpreter
Open Abyss Web Server's console. In the Hosts table, press Configure in the row corresponding to the host to which you want to add PHP support.
Select Scripting Parameters.
Check Enable Scripts Execution.
Press Add in the Interpreters table.
In the Interpreter field, press Browse..., go to the directory where you have installed PHP and click on php5isapi.dll .
Set Type to PHP Style.
Check Use the associated extensions to automatically update the Script Paths.
Press Add in the Associated Extensions table.
Enter php in the Extension field and press OK.
Press OK
Press Add in the Custom Environment Variables table.
Enter REDIRECT_STATUS (with no leading or trailing spaces) in the Name field and 200 in the Value field and press OK.
Press OK in the Scripting Parameters dialog.
Declare new index files
Select Index Files.
Press Add in the Index Files table.
Enter index.php in the File Name field and press OK.
Apply the modifications
Press Restart to restart the server.

For Apache, in the Apache install folder (C:\Program Files\Apache Group\Apache2 if the default was chosen):
open the conf folder
open the httpd.cnf file with notepad or some other text editor
Add:
LoadModule php5_module "C:/php/php5apache2.dll"
Addtype application/x-httpd-php .php
You may not need to do this step, but if you have a problem running php files you may need to come back and configure the path to php.ini
Search for PHPIniDir and set it to "C:/windows"
If PHPIniDir is not there, you can add it: PHPIniDir "C:/windows" or whatever your windows directory is.
Save the file and restart the Apache server by clicking on the Apache icon in the system tray, moving your cursor over Apache2 and selecting Restart.
Copy Cinema Premiere's modified php.ini to your Windows directory which should be either C:\WINDOWS or C:WINNT depending on how you initially installed Windows XP Pro.
Cinema Premiere's modified php.ini can either be downloaded from here or
extracted from either the CinemaPremierePSTest.zip or the CinemaPremierePS.zip
right click either CinemaPremierePSTest.zip or CinemaPremierePS.zip
select Extract to...
in the Files area, select Files: and type in php.ini
in the Folders/drives window, expand SYSTEM (C:) by selecting the + in front of SYSTEM (C:)
select your Windows directory (either WINDOWS or WINNT)
select Extract

Thank you friends.
HEMA @ HELOISE

Configuring and Deploying PHP

Hi Friends.
Let’s get started. Since you are installing on a Windows computer, you will most likely be using IIS for a web server, however, it is not required. You must have some web server running however, and you are quite welcome to use Apache or another web server of your choice, however, since that falls outside the scope of this topic i will leave that discussion for another day.

Here i have used php-5.3.0-nts-Win32-VC9-x86.msi setup file for PHP and IIS for server.
You can install from this link.
Include Files:
  • PHPphp5isapi.dll
  • php5ts.dll

Some things to know about IIS:
IIS v5.1 is included with Windows 2000 Professional, and Windows XP Professional, but is not installed by default. (*note – IIS 5.1 is not included with XP Home edition and is not available as a stand alone download from Microsoft. If you are an XP Home user, you will need to look for an alternative web server solution.) Windows 2000 server includes IIS 5.1, and Windows 2003 server includes IIS 6.

If you haven’t already done so begin by installing IIS. To do this go to Control Panel Add/Remove Programs Add/Remove Windows Components. In the dialogue box that comes up, check the option for Internet Information Services(IIS) and click the “Details” button. Select any additional features that would like to have installed and click OK. Click OK again to begin the installation. This will install IIS and start the web server service automatically. You should not need to reboot. To test your installation open your web browser and type in http://localhost/ . This should bring up the default IIS page. If it does, your installation was a success and you can immediately get started on installing PHP.


PHP Installation & Settings:
The first step is to extract all of the files from the downloaded zip file or install the PHP setup into C:PHP (create the folder if it doesn’t already exist).
You may choose a different location, although it is not recommended. The path must NOT have spaces, for example, you cannot use C:Program FilesPHP. Some web servers may not be able to handle the path name and will fault. PHP 5 includes a CGI executable, a CLI executable as well as the server modules. The DLLs needed for these executables can be found in the root of the PHP folder (C:PHP). php5ts.dll needs to be available to the web server. To do this, you have 3 options:

1. Copy php5ts.dll to the web server’s directory (C:inetpubwwwroot).
2. Copy php5ts.dll to the Windows system directory (C:windowssystem32).
3. Add the PHP directory path to the environment variables PATH.

We will go with option 3, because we would like to keep all of our PHP install files in the same location, for easier cleanup later, if needed. Let’s proceed…

Instructions on how to put C:php in environment variables PATH:
First we want to open System Properties. There are two ways to get to System Properties. Either way will work.
1. Right-Click on My computer and choose “properties”.
2. Go to Control Panel, and select “System”.

Once here, we want to select the Advanced tab. In the Advanced tab, click the “Environment Variables” button. There are two sections in the Environment Variables window, User Variable and System Variables. We will be using System Variables. Scroll down in System Variables until you find the variable PATH. Highlight that line and the select Edit below the System Variables window. We will only be adding to the Variable Value. BE CAREFUL HERE. You do not want to delete anything on this line. Simply find the end of the line and add a semi-colon ( ; ) if there is not one already. After the semi-colon, type: C:PHP and then hit OK. Now click OK on the Environment Variables window. Finally click OK on the System Properties window and we are done with this part.

Now we must restart the computer to make the Environment Variables changes come into play. We cannot simply log off and log on, you must restart.

The next step is to set up a config file for PHP, php.ini. In C:PHP you will find two files named php.ini-dist and php.ini-recommended. We will use php.ini-recommended for this install, and all you need to do is rename it from php.ini-recommended to php.ini.

1. doc_root = C:inetpubwwwroot
2. cgi.force_redirect = 0

Now PHP is installed, lets move on to preparing our IIS to use PHP.

Configure IIS to use PHP:
1. Open IIS
2. Under Home Directory: Set “Execute Permissions” to “Scripts Only”
3. Click on configuration..
a. Click Add
b. Set “executable” to C:PHPphp5isapi.dll
c. Set “extension” to .php (don’t forget to include the . )
d. Click OK
e. Click Apply, then OK.

Under ISAPI Filters:
a. Click “Add”
b. Set Filter Name to PHP
c. Set Executable to C:PHPphp5isapi.dll
d. Click OK.
e. Click Apply, then OK.

Restart the Web Server
Now we want to test PHP on our system. To do this, we will create a file called phpinfo.php and it will be used to display all of the PHP info from our system in our web browser.

1. Open Notepad and type:
2. Save the file as phpinfo.php and select the file type ‘All Files’ (Important: do not save the file as .txt, as it will not work).
3. Move the file into C:inetpubwwwroot
4. Open your web browser and type: http://localhost/phpnfo.php
5. Your browser should display a lot of PHP information.

(Note: Store the files to C:\inetpub\wwwroot. If you have to store the files in a separate folder, then change the path in system variables.)

@Friends: Hope this helps you to install and configure PHP and IIS. All the best !

Thursday, July 16, 2009

Facebook Reaches 250 Million Users


Facebook was already a giant at 200 million users worldwide, by far the largest social network and one of the top ten visited web sites in the world. And seeing how it's been growing at a rapid pace for a few years now it wouldn't be too surprising to find that the growth is slowing down. However, this is actually not the case; in fact, it seems to be accelerating, as Facebook now boasts 250 million registered users worldwide, gaining 50 million in just three months.
window.google_render_ad();
"From the beginning, Facebook hasn't been about building a website. Facebook is about all of the people using it and all of the things that are important to you. The 250 million of you on Facebook today are what gives Facebook life and makes the site meaningful to everyone using it, so we thank you," co-founder and CEO Mark ZUckerberg wrote. "Each person who joins makes Facebook better by adding a presence to the site that friends and family can connect with and feel closer to. For us, growing to 250 million users isn't just an impressive number; it is a mark of how many personal connections all of you have made, and how far we at Facebook have to go to extend the power of connection to the billions of people around the world."More surprising than the raw number is perhaps the rate at which Facebook is acquiring them, at 700,000 to 750,000 new users per day in the recent weeks, according to InsideFacebook, though, as a rough estimate, considering it's been a little over three months since the company announced it had reached 200 million users, the number would come to an average of 500,000 per day. Most of the growth comes from outside the US, roughly 70 percent of it, but it also managed to consolidate its position as the number one social network in the States too. With the announcement of the 250 million milestone came a revised stats page with some interesting information because, not only is it the biggest social network, it also has some of the most engaged users with 120 million logging in at least once a day and 30 million updating their statuses at least daily. A recent study also showed that it was the most visited site in the US with users spending 4 hours and 39 minutes on average every month.