<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0' gd:etag='W/&quot;DkUNRXkzeyp7ImA9WhJSFUs.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298</id><updated>2012-07-06T01:44:54.783-07:00</updated><title>Java.PHP.VB Tutorial</title><subtitle type='html'>Java tutorial, PHP tutorial, VB tutorial</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>26</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;D0YNSH0zfip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-4936292396407421314</id><published>2012-07-05T23:13:00.001-07:00</published><updated>2012-07-05T23:13:19.386-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:13:19.386-07:00</app:edited><title>Calling web service using ASP.NET</title><content type='html'>&lt;br /&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img alt="Sample Image - maximum width is 600 pixels" height="200" src="http://www.codeproject.com/KB/webservices/ConsumeWebServices/WebServiceConsumer.JPG" style="font-family: Verdana, Arial, Helvetica, sans-serif; overflow: auto; width: 600px;" /&gt;&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Introduction&lt;/h2&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Web Services signal a new age of trivial distributed application development. While Web Services are not intended nor do they have the power to solve every distributed application problem, they are an easy way to create and consume services over the Internet. One of the design goals for Web Services is to allow companies and developers to share services with other companies in a simple way over the Internet.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Web services take Web applications to the next level.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Using Web services your application can publish its function or message to the rest of the world.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Web services use XML to code and decode your data and SOAP to transport it using open protocols.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
With Web services your accounting departments Win 2k servers billing system can connect with your IT suppliers UNIX server.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Using Web services you can exchange data between different applications and different platforms.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
With Microsoft .Net platform it is a simple task to create and consume Web Services. In this article am going to show how to call a published web services inside a web project.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
I use a test published web services; Extentrix Web Services 2.0 Application Edition (&lt;a href="http://www.extentrix.com/webservices/2.0.0/ExtentrixWebServicesForCPS.asmx" style="color: purple; text-decoration: none;"&gt;http://www.extentrix.com/webservices/2.0.0/ExtentrixWebServicesForCPS.asmx&lt;/a&gt;) that Extentrix published for the developer community to help them in testing and developing.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
So I’ll explain simply the functions of this web services APIs. In general Extentrix Web Services for Citrix Presentation Server helps you get information about a published application for a specific client with the specified details, server types, and client types. It also returns the&amp;nbsp;&lt;place w:st="on"&gt;ICA&lt;/place&gt;file description to be used to launch an application with a given parameter and checks the user's credentials and returns true if they are valid.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
For more information, visit&amp;nbsp;&lt;a href="http://www.extentrix.com/Web%20Services/Index.htm" style="color: purple; text-decoration: none;"&gt;http://www.extentrix.com/Web%20Services/Index.htm&lt;/a&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
You can find more samples, use this web services, and test it on&lt;a href="http://www.extentrix.com/Web%20Services/Test%20Drive.htm?id=6" style="color: purple; text-decoration: none;"&gt;http://www.extentrix.com/Web%20Services/Test%20Drive.htm?id=6&lt;/a&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Background&lt;/h2&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Knowledge in ASP.NET is preferred&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Using the code&lt;/h2&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;Simple Steps to consume web service:&lt;/strong&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;ul style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin-top: 0in;" type="disc"&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Create Web Site project&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Add web Reference&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Call the web services APIs inside the code&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;First Step: Create Web Site project&lt;/strong&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;1.&lt;/strong&gt;&amp;nbsp;To create new Web Site project, choose&amp;nbsp;&lt;strong&gt;New&lt;/strong&gt;&amp;nbsp;from&amp;nbsp;&lt;strong&gt;File&lt;/strong&gt;&amp;nbsp;menu, then choose&amp;nbsp;&lt;strong&gt;Web Site&lt;/strong&gt;&amp;nbsp;as shown below.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;shapetype coordsize="21600,21600" filled="f" id="_x0000_t75" o:preferrelative="t" o:spt="75" path="m@4@5l@4@11@9@11@9@5xe" stroked="f"&gt;&lt;stroke joinstyle="miter"&gt;&amp;lt;formulas&amp;gt;&lt;f eqn="if lineDrawn pixelLineWidth 0"&gt;&lt;f eqn="sum @0 1 0"&gt;&lt;f eqn="sum 0 0 @1"&gt;&lt;f eqn="prod @2 1 2"&gt;&lt;f eqn="prod @3 21600 pixelWidth"&gt;&lt;f eqn="prod @3 21600 pixelHeight"&gt;&lt;f eqn="sum @0 0 1"&gt;&lt;f eqn="prod @6 1 2"&gt;&lt;f eqn="prod @7 21600 pixelWidth"&gt;&lt;f eqn="sum @8 21600 0"&gt;&lt;f eqn="prod @7 21600 pixelHeight"&gt;&lt;f eqn="sum @10 21600 0"&gt;&amp;lt;/formulas&amp;gt;&lt;path gradientshapeok="t" o:connecttype="rect" o:extrusionok="f"&gt;&lt;lock aspectratio="t" v:ext="edit"&gt;&lt;/lock&gt;&lt;/path&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/f&gt;&lt;/stroke&gt;&lt;/shapetype&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;img src="http://www.codeproject.com/KB/webservices/ConsumeWebServices/1.JPG" style="overflow: auto;" /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;br style="font-family: Verdana, Arial, sans-serif; font-size: 13px;" /&gt;&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;2.&lt;/strong&gt;&amp;nbsp;Choose&amp;nbsp;&lt;strong&gt;ASP.NET Web Site&lt;/strong&gt;. Name the project and click&amp;nbsp;&lt;strong&gt;OK&lt;/strong&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;img src="http://www.codeproject.com/KB/webservices/ConsumeWebServices/2.JPG" style="overflow: auto;" /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;Second Step: Add web Reference&lt;/strong&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
After creating the Web Site project, it’s time to add a web reference for our web service.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;1.&lt;/strong&gt;&amp;nbsp;In the solution explorer, right click the project node, choose&amp;nbsp;&lt;strong&gt;Add Web Reference&lt;/strong&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;img src="http://www.codeproject.com/KB/webservices/ConsumeWebServices/3.JPG" style="overflow: auto;" /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;2.&amp;nbsp;&lt;/strong&gt;A new window with&amp;nbsp;&lt;strong&gt;Add Web Reference&lt;/strong&gt;&amp;nbsp;title will be opened.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
In the URL field, insert the URL for the web service. In this tutorial as I mentioned before I’ll use the test published web services form Extentrix. “Extentrix Web Services 2.0 – Application Edition”&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;a href="http://www.extentrix.com/webservices/2.0.0/ExtentrixWebServicesForCPS.asmx" style="color: purple; text-decoration: none;"&gt;http://www.extentrix.com/webservices/2.0.0/ExtentrixWebServicesForCPS.asmx&lt;/a&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;img src="http://www.codeproject.com/KB/webservices/ConsumeWebServices/4.JPG" style="overflow: auto;" /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
After clicking the&amp;nbsp;&lt;strong&gt;Go&lt;/strong&gt;&amp;nbsp;button you will see the web services APIs.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;3.&amp;nbsp;&lt;/strong&gt;Set a name for your web service reference in the web reference name field and click&amp;nbsp;&lt;strong&gt;Add Reference&lt;/strong&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;img src="http://www.codeproject.com/KB/webservices/ConsumeWebServices/5.JPG" style="overflow: auto;" /&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;Third Step: Call the web services APIs inside the code&lt;/strong&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
After a successful adding to the web service, now we are ready to call the web services APIs inside our project.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;1.&amp;nbsp;&lt;/strong&gt;First we need to add the added web reference to our class.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
“ExtentrixWS” is the name of the added web service from the previous step.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain0" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre0" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt; &lt;span class="code-keyword" style="color: blue;"&gt;using&lt;/span&gt; ExtentrixWS;  &lt;/pre&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;2.&amp;nbsp;&lt;/strong&gt;Create a proxy object for our added web service reference, where the ExtentrixWebServicesForCPS is the name of the Web Services&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="pre-action-link" id="premain1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre1" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;      &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;define a web service proxy object.
&lt;/span&gt;    &lt;span class="code-keyword" style="color: blue;"&gt;private&lt;/span&gt; ExtentrixWS.ExtentrixWebServicesForCPS proxy;

&lt;/pre&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;3.&amp;nbsp;&lt;/strong&gt;As I explained before we need credentials to pass to Citrix Presentation Server, we will pass these credentials through the web services APIs&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="pre-action-link" id="premain2" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre2" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;     &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;define a Citrix Presentation Server Credentials object
&lt;/span&gt;      &lt;span class="code-keyword" style="color: blue;"&gt;private&lt;/span&gt; Credentials credentials;

&lt;/pre&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Initialize the proxy and the credentials objects&lt;/div&gt;
&lt;div class="pre-action-link" id="premain3" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre3" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;intialaize objects
&lt;/span&gt;     proxy = &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; ExtentrixWebServicesForCPS();
     credentials = &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; Credentials();

&lt;/pre&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;4.&amp;nbsp;&lt;/strong&gt;Set the values for Citrix credentials. I set the credentials values for the test of Extentrix Web Service.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="pre-action-link" id="premain4" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre4" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;set credentials
&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;these values are according to Citrix testdrive presentation server
&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;for which Extentrix published a web service for delovepers to use it
&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;as a test web service.
&lt;/span&gt;      credentials.Password = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;demo"&lt;/span&gt;;
      credentials.UserName = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;citrixdesktop"&lt;/span&gt;;
      credentials.Domain = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;testdrive"&lt;/span&gt;;
    
   
&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;because it is a sample,we will use no encryption method.
&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;so the password will be sent as a clear text.
&lt;/span&gt;      credentials.PasswordEncryptionMethod = &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;;

&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;set the domain type to windows domain
&lt;/span&gt;      credentials.DomainType = &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;;



&lt;/pre&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Now we can call any web services available as simple as calling any ordinary function.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;strong&gt;5.&amp;nbsp;&lt;/strong&gt;Call the&amp;nbsp;&lt;strong&gt;GetApplicationsByCredentialsEx&lt;/strong&gt;&amp;nbsp;web service. This web service takes the following parameters:&lt;/div&gt;
&lt;ul style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin-top: 0in;" type="disc"&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Credentials: Citrix Credential to access Citrix Presentation Server Farm.&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Client Name: pass your machine name&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Client IP: pass your machine IP&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Desired Details : what the details you asked for&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Server Types: pass “all”&lt;/li&gt;
&lt;li class="MsoNormal" style="font-size: 10pt; margin: 0in 0in 0pt;"&gt;Client Types: pass “all”&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Am not going to explain Extentrix web services APIs, if you are interested you can go to&lt;a href="http://www.extentrix.com/Web%20Services/Index.htm" style="color: purple; text-decoration: none;"&gt;http://www.extentrix.com/Web%20Services/Index.htm&lt;/a&gt;&amp;nbsp;and look for it.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
This API returns an array of&amp;nbsp;&lt;strong&gt;ApplicationItemEx&lt;/strong&gt;, this class will be built for you once you add the web reference.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
This class contains the published application properties. I used this web service to get all the published applications, and then I created an ImageButton for each application.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="pre-action-link" id="premain5" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre5" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;         &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; 1) Get all the published applications list by calling GetApplicationsByCredentialsEx web service.
&lt;/span&gt;         &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; 2) create an ImageButton for each application
&lt;/span&gt;         &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; 3) Create Image for the application
&lt;/span&gt;         &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; 4) Add it to the AppList panel.
&lt;/span&gt;         &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; 5) Set the event handler for each ImageButton, so when clicking it the associated application will run
&lt;/span&gt;    

       
         &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;calling the web service
&lt;/span&gt;          ApplicationItemEx[] items = proxy.GetApplicationsByCredentialsEx(credentials, Request.UserHostName,
         Request.UserHostAddress, &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt;  string[] { &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;icon"&lt;/span&gt;,&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;icon-info"&lt;/span&gt;}, &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; string[]{ &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;all"&lt;/span&gt; },
         &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; string[] { &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;all"&lt;/span&gt;});
         
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;loop for each published application
&lt;/span&gt;    &lt;span class="code-keyword" style="color: blue;"&gt;for&lt;/span&gt; (&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; i = &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;; i &amp;lt; items.Length; i++) {
           &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;create the ImageButton
&lt;/span&gt;          System.Web.UI.WebControls.ImageButton app = &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; System.Web.UI.WebControls.ImageButton();


    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;set the Image URL to the created image
&lt;/span&gt;           app.ImageUrl = createIcon(items[i].InternalName,items[i].Icon);
    
          
    &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;set the ToolTip to the name of the published application
&lt;/span&gt;           app.ToolTip = items[i].InternalName;
    


     &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;add the ImageButton to the AppList panel
&lt;/span&gt;           AppList.Controls.Add(app);
    

           &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;set the event handler for the ImageButton.
&lt;/span&gt;           app.Click += &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt;
    System.Web.UI.ImageClickEventHandler(&lt;span class="code-keyword" style="color: blue;"&gt;this&lt;/span&gt;.OnApplicationClicked);

            }



&lt;/pre&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Finally another example in calling web service is to launch the published application.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
In this example, in the event handler of the applications ImageButtons I launch the clicked application.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
I get the&amp;nbsp;&lt;place w:st="on"&gt;ICA&lt;/place&gt;&amp;nbsp;file content by calling&amp;nbsp;&lt;strong&gt;LaunchApplication&lt;/strong&gt;&amp;nbsp;web service.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
Then I write the&amp;nbsp;&lt;place w:st="on"&gt;ICA&lt;/place&gt;&amp;nbsp;file content to the response to launch the application.&lt;/div&gt;
&lt;div class="MsoNormal" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; margin: 0in 0in 0pt;"&gt;
&lt;/div&gt;
&lt;div class="pre-action-link" id="premain6" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre6" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;    &lt;span class="code-keyword" style="color: blue;"&gt;private&lt;/span&gt;
        &lt;span class="code-keyword" style="color: blue;"&gt;void&lt;/span&gt; OnApplicationClicked (&lt;span class="code-keyword" style="color: blue;"&gt;object&lt;/span&gt;
        sender, System.EventArgs e)
    {     
     ServicePointManager.Expect100Continue = &lt;span class="code-keyword" style="color: blue;"&gt;false&lt;/span&gt;;
       
        &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; Get the event source object.     
&lt;/span&gt;          System.Web.UI.WebControls.ImageButton app = (System.Web.UI.WebControls.ImageButton)sender;
         
                
        &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;Get the file ICAfile content by calling LaunchApplication web service.        
&lt;/span&gt;        &lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; ica = proxy.LaunchApplication(app.ToolTip, credentials, Request.UserHostName, Request.UserHostAddress);

        
        &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;Set the response content type to "application/x-ica" to run the file.       
&lt;/span&gt;        Response.ContentType = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;application/x-ica"&lt;/span&gt;;
           
        
        &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;//&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;Run the application by writing the file content to the response.
&lt;/span&gt;            Response.BinaryWrite(Response.ContentEncoding.GetBytes(ica&lt;span class="code-keyword" style="color: blue;"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="code-leadattribute" style="color: maroon;"&gt;place&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;/&lt;/span&gt;&lt;span class="code-attribute" style="color: red;"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="code-keyword" style="color: blue;"&gt;/&lt;/span&gt;&lt;span class="code-attribute" style="color: red;"&gt;city&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;/&lt;/span&gt;&lt;span class="code-attribute" style="color: red;"&gt;&amp;gt;)&lt;/span&gt; &lt;span class="code-attribute" style="color: red;"&gt;);&lt;/span&gt;
     &lt;span class="code-attribute" style="color: red;"&gt;Response.End();&lt;/span&gt;
    &lt;span class="code-attribute" style="color: red;"&gt;}&lt;/span&gt;


&lt;/pre&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-4936292396407421314?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/4936292396407421314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/calling-web-service-using-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4936292396407421314?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4936292396407421314?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/calling-web-service-using-aspnet.html' title='Calling web service using ASP.NET'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D0YHRn85fip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-9048619539076031</id><published>2012-07-05T23:12:00.001-07:00</published><updated>2012-07-05T23:12:17.126-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:12:17.126-07:00</app:edited><title>SOAP Web Services: Create Once, Consume Everywhere</title><content type='html'>&lt;br /&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Introduction&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
This tutorial aims to provide a practical introduction to web services given their increased importance in software engineering. In short, web services offer clients the ability to remotely execute certain methods thus eliminating the need for downloading separate API. The communication medium between clients and servers is XML messages that comply with the SOAP protocol. The use of XML allows systems running different operating systems and programming languages to communicate by converting XML requests and responses into their corresponding language equivalents. Fortunately, programming languages like C# (or any .NET language), Java, PHP, etc. support both clients and servers with abstraction layers called proxies that eliminate the need to parse XML SOAP messages. In this tutorial, I'll show you how to create a Web Service in ASP.NET and how to register this service in IIS server 7.0; finally I'll demonstrate the language neutrality of web services by developing three client applications that consume this service in ASP.NET, Java, and PHP.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Creating the ASP.NET Web Service&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Launch Visual Studio, and then go to File / New / Web Site...&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Choose ASP.NET Web Service as the template and name your project:&amp;nbsp;&lt;em&gt;Server&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;em&gt;Throughout this project, I’ll use C:\Project7 as my default folder.&lt;/em&gt;&lt;/div&gt;
&lt;img border="0" height="339" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro1.png" style="font-family: Verdana, Arial, sans-serif; font-size: 13px; height: 339px; overflow: auto; width: 523px;" width="523" /&gt;&lt;span style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Go to the&amp;nbsp;&lt;em&gt;Service.cs&lt;/em&gt;&amp;nbsp;file and create the four needed methods by replacing:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain0" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;img height="9" id="preimg0" preid="0" src="http://www.codeproject.com/images/minus.gif" style="cursor: pointer; overflow: auto;" width="9" /&gt;&lt;span id="precollapse0" preid="0" style="cursor: pointer; margin-bottom: 0px;"&gt;&amp;nbsp;Collapse&lt;/span&gt;&amp;nbsp;|&amp;nbsp;&lt;a href="http://www.codeproject.com/Articles/94043/SOAP-Web-Services-Create-Once-Consume-Everywhere#" preid="0" style="color: purple; text-decoration: none;"&gt;Copy Code&lt;/a&gt;&lt;/div&gt;
&lt;pre id="pre0" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;[WebMethod]
&lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; HelloWorld() {
&lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Hello World"&lt;/span&gt;;&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
with:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre1" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;[[WebMethod]
    &lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; Add(&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; x, &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; y)
    {
        &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; x + y;
    }
    [WebMethod]
    &lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; Subtract(&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; x, &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; y)
    {
        &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; x - y;
    }
    [WebMethod]
    &lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; Multiply(&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; x, &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; y)
    {
        &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; x * y;
    }
    [WebMethod]
    &lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; Division(&lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; x, &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; y)
    {
        &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; x / y;
    }&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Note that&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;[WebMethod]&lt;/code&gt;&amp;nbsp;tag allows the methods to be accessible to external clients. Now replace the code:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain2" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre2" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;[WebService(Namespace = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;http://tempuri.org/"&lt;/span&gt;)]&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
with:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain3" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre3" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;[WebService(Namespace=&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;http://tempuri.org/"&lt;/span&gt;,
Description=&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;A Simple Web Calculator Service"&lt;/span&gt;,
Name=&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;CalculatorWebService"&lt;/span&gt;)]&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
The&amp;nbsp;&lt;em&gt;Description&lt;/em&gt;&amp;nbsp;attribute gives external clients a brief description of the service; the&amp;nbsp;&lt;em&gt;Name&lt;/em&gt;&amp;nbsp;attribute lets external clients refer to the service as&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;CalculatorWebService&amp;nbsp;&lt;/code&gt;rather than&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;Service&lt;/code&gt;.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Installing the Web Service in IIS&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
This project uses IIS Server 7.0 running on a Windows 7 PC.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Activate IIS server by:&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Start Menu / typing IIS in the search bar / Internet Information Services (IIS) Manager&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
or by: Control Panel / Administrative Tools / Internet Information Services (IIS) Manager&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
If you couldn’t find IIS, then probably it’s not installed, so consult&amp;nbsp;&lt;a href="http://www.codeproject.com/Articles/94043/SOAP-Web-Services-Create-Once-Consume-Everywhere#ap1" style="color: purple; text-decoration: none;"&gt;Appendix A&lt;/a&gt;&amp;nbsp;to know how you can activate this program under Windows 7.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="311" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro2.png" style="height: 311px; overflow: auto; width: 226px;" width="226" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Expand the tree&amp;nbsp;&lt;em&gt;Sites&lt;/em&gt;, then right click on&amp;nbsp;&lt;em&gt;Default Web Site&lt;/em&gt;, and choose&amp;nbsp;&lt;em&gt;Add Virtual Directory&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="308" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro3.png" style="height: 308px; overflow: auto; width: 536px;" width="536" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Enter&amp;nbsp;&lt;em&gt;WebService&lt;/em&gt;&amp;nbsp;in the Alias field, and&amp;nbsp;&lt;em&gt;C:\Project7\Server&lt;/em&gt;&amp;nbsp;in the&amp;nbsp;&lt;em&gt;Physical path&lt;/em&gt;&amp;nbsp;field.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="373" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro4.png" style="height: 373px; overflow: auto; width: 625px;" width="625" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Click on the&amp;nbsp;&lt;em&gt;WebService&lt;/em&gt;&amp;nbsp;folder and then switch IIS to&amp;nbsp;&lt;em&gt;Content View&lt;/em&gt;&amp;nbsp;in order to see the&amp;nbsp;&lt;em&gt;Service.asmx&lt;/em&gt;&amp;nbsp;and the&lt;em&gt;web.config&lt;/em&gt;&amp;nbsp;files.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="360" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro5.png" style="height: 360px; overflow: auto; width: 623px;" width="623" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Since we’ve manually created the Virtual Directory&amp;nbsp;&lt;em&gt;WebService&lt;/em&gt;&amp;nbsp;without the help of Visual Studio testing mode, you should right click the&amp;nbsp;&lt;em&gt;WebService&lt;/em&gt;&amp;nbsp;folder and choose&amp;nbsp;&lt;em&gt;Convert to Application&lt;/em&gt;&amp;nbsp;followed by clicking OK.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="314" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro6.png" style="height: 314px; overflow: auto; width: 550px;" width="550" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now open your browser and goto&amp;nbsp;&lt;a href="http://www.codeproject.com/Articles/94043/SOAP-Web-Services-Create-Once-Consume-Everywhere" style="color: purple; text-decoration: none;"&gt;&lt;em&gt;http://localhost/WebService/Service.asmx&lt;/em&gt;&lt;/a&gt;, you should see a screen similar to this:&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="365" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro7.png" style="height: 365px; overflow: auto; width: 627px;" width="627" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;strong&gt;Note&lt;/strong&gt;: If you didn’t see this screen, then probably IIS server isn’t configured properly, so consult&amp;nbsp;&lt;a href="http://www.codeproject.com/Articles/94043/SOAP-Web-Services-Create-Once-Consume-Everywhere#ap2" style="color: purple; text-decoration: none;"&gt;Appendix B&lt;/a&gt;&amp;nbsp;to learn how to configure IIS for the first time.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Testing the Web Service on the Server Side&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
On the&amp;nbsp;&lt;em&gt;CalculatorWebService&lt;/em&gt;&amp;nbsp;page, you could see four links to the&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;Add&lt;/code&gt;,&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;Division&lt;/code&gt;,&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;Multiply&lt;/code&gt;, and&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;Subtract&lt;/code&gt;methods that we’ve implemented in C#; clicking on any of those links will take you to a new page where you could test your methods.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="314" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro8.png" style="height: 314px; overflow: auto; width: 625px;" width="625" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="312" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro9.png" style="height: 312px; overflow: auto; width: 623px;" width="623" /&gt;&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Creating the ASP.NET Web Client&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Launch Visual Studio, and then go to File / New / Web Site...&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Choose&amp;nbsp;&lt;em&gt;ASP.NET Web Site&lt;/em&gt;&amp;nbsp;as the template and name your project&amp;nbsp;&lt;em&gt;Client&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="285" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro10.png" style="height: 285px; overflow: auto; width: 436px;" width="436" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Create an interface of your ASP.NET page similar to this:&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="229" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro11.png" style="height: 229px; overflow: auto; width: 464px;" width="464" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now let’s add our web service as a service reference to our project as follows:&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Right Click the Project in the solution explorer / choose&amp;nbsp;&lt;em&gt;Add Service Reference&lt;/em&gt;&amp;nbsp;/ enter&lt;em&gt;http://localhost/WebService/Service.asmx&lt;/em&gt;&amp;nbsp;in the address field /click&amp;nbsp;&lt;em&gt;Go&lt;/em&gt;&amp;nbsp;to view the imported functions / choose&lt;em&gt;ServiceReference&lt;/em&gt;&amp;nbsp;as your namespace / click OK.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="314" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro12.png" style="height: 314px; overflow: auto; width: 389px;" width="389" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Edit your&amp;nbsp;&lt;em&gt;Default.aspx.cs&lt;/em&gt;&amp;nbsp;source to add the method&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;GetResult&lt;/code&gt;&amp;nbsp;that takes as an input two number strings and an integer function which corresponds to the four basic calculator operations we need.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain4" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre4" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;private&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; GetResult(&lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; firstNumber, &lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; secondNumber, &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; function)
    {
        ServiceReference.CalculatorWebServiceSoapClient client = 
            &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; ServiceReference.CalculatorWebServiceSoapClient();
        &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; a, b;
        &lt;span class="code-keyword" style="color: blue;"&gt;string&lt;/span&gt; result = &lt;span class="code-keyword" style="color: blue;"&gt;null&lt;/span&gt;;

        erra.Text = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;;
        errb.Text = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;;

        &lt;span class="code-keyword" style="color: blue;"&gt;if&lt;/span&gt; (!int.TryParse(firstNumber, &lt;span class="code-keyword" style="color: blue;"&gt;out&lt;/span&gt; a))
        {
            erra.Text = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Must be a valid 32-bit integer!"&lt;/span&gt;;
            &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;;
        }

        &lt;span class="code-keyword" style="color: blue;"&gt;if&lt;/span&gt; (!int.TryParse(secondNumber, &lt;span class="code-keyword" style="color: blue;"&gt;out&lt;/span&gt; b))
        {
            errb.Text = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Must be a valid 32-bit integer!"&lt;/span&gt;;
            &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;;
        }

        &lt;span class="code-keyword" style="color: blue;"&gt;try&lt;/span&gt;
        {
            &lt;span class="code-keyword" style="color: blue;"&gt;switch&lt;/span&gt; (function)
            {
                &lt;span class="code-keyword" style="color: blue;"&gt;case&lt;/span&gt; &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;:
                    result = firstNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; + "&lt;/span&gt; + secondNumber + 
   &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; = "&lt;/span&gt; + client.Add(a, b);
                    &lt;span class="code-keyword" style="color: blue;"&gt;break&lt;/span&gt;;
                &lt;span class="code-keyword" style="color: blue;"&gt;case&lt;/span&gt; &lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;:
                    result = firstNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; - "&lt;/span&gt; + secondNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; = "&lt;/span&gt;
                    + client.Subtract(a, b);
                    &lt;span class="code-keyword" style="color: blue;"&gt;break&lt;/span&gt;;
                &lt;span class="code-keyword" style="color: blue;"&gt;case&lt;/span&gt; &lt;span class="code-digit" style="color: navy;"&gt;2&lt;/span&gt;:
                    result = firstNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; * "&lt;/span&gt; + secondNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; = 
   "&lt;/span&gt; + client.Multiply(a, b);
                    &lt;span class="code-keyword" style="color: blue;"&gt;break&lt;/span&gt;;
                &lt;span class="code-keyword" style="color: blue;"&gt;case&lt;/span&gt; &lt;span class="code-digit" style="color: navy;"&gt;3&lt;/span&gt;:
                    result = firstNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; / "&lt;/span&gt; +
                    secondNumber + &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; = "&lt;/span&gt; + client.Division(a, b);
                    &lt;span class="code-keyword" style="color: blue;"&gt;break&lt;/span&gt;;
            }
        }
        &lt;span class="code-keyword" style="color: blue;"&gt;catch&lt;/span&gt; (Exception e)
        {
            LabelResult.ForeColor = System.Drawing.Color.Red;
            result = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Cannot Divide by Zero!"&lt;/span&gt;;
        }
        &lt;span class="code-keyword" style="color: blue;"&gt;return&lt;/span&gt; result;
    }&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Note the statement:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain5" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre5" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;ServiceReference.CalculatorWebServiceSoapClient client = 
            &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; ServiceReference.CalculatorWebServiceSoapClient();&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
which allows the client object to access the web service methods.&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;ServiceReference&lt;/code&gt;&amp;nbsp;is the namespace of the web service you chose earlier.&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;CalculatorWebServiceSoapClient&lt;/code&gt;&amp;nbsp;establishes the SOAP connection with client (i.e. sends requests and receives responses in the form of SOAP XML messages between the proxy server and the proxy client).&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Finally, add the Submit Button event handler with the following code to access the&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;GetResult&lt;/code&gt;&amp;nbsp;method you created earlier.&lt;/div&gt;
&lt;div class="pre-action-link" id="premain6" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre6" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;protected&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;void&lt;/span&gt; btnSubmit_Click(&lt;span class="code-keyword" style="color: blue;"&gt;object&lt;/span&gt; sender, EventArgs e)
    {
        LabelResult.ForeColor = System.Drawing.Color.Black;
        LabelResult.Text = GetResult(TextBoxFirstNumber.Text,
        TextBoxSecondNumber.Text,
        DropDownList.SelectedIndex);
    }&lt;/pre&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Installing the Web Client in IIS Server&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now you’re ready to make use of the web service with a small ASP web page that consumes this service.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Create a new Virtual Directory in IIS and choose&amp;nbsp;&lt;em&gt;WebClient&lt;/em&gt;&amp;nbsp;as an Alias; and the folder&amp;nbsp;&lt;em&gt;C:\Project7\Client&lt;/em&gt;&amp;nbsp;as a&amp;nbsp;&lt;em&gt;Physical Path&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="322" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro13.png" style="height: 322px; overflow: auto; width: 571px;" width="571" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
And as you did for the&amp;nbsp;&lt;em&gt;WebService&lt;/em&gt;&amp;nbsp;Virtual Directory, right click on the&amp;nbsp;&lt;em&gt;WebClient&lt;/em&gt;&amp;nbsp;directory and choose&amp;nbsp;&lt;em&gt;Convert to Application&lt;/em&gt;&amp;nbsp;followed by an OK.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Finally go to the browser and type in&amp;nbsp;&lt;em&gt;http://localhost/WebClient/&lt;/em&gt;, you should see the figure below:&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="315" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro14.png" style="height: 315px; overflow: auto; width: 336px;" width="336" /&gt;&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Testing the Web Service on the ASP.NET Client Side&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now that we’ve successfully installed the client page that makes use of our calculator web service, we still need to validate the client side results.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="262" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro15.png" style="height: 262px; overflow: auto; width: 480px;" width="480" /&gt;&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Installing and Testing the Web Client in a Java 1.6 Class&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Regardless of whether we know the programming language that implements the web service or not, we can easily link applications of different platforms. Web services display to their clients standard XML pages called WSDL, which gives them an idea about what functions they implement. For instance, navigating to&lt;em&gt;http://localhost/WebService/Service.asmx?wsdl&lt;/em&gt;&amp;nbsp;would generate an XML page with special elements. The ability to read through the WSDL document and to locate elements like:&amp;nbsp;&lt;strong&gt;type&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;message&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;portType&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;binding&lt;/strong&gt;,&amp;nbsp;&lt;strong&gt;service&lt;/strong&gt;&amp;nbsp;is very crucial, as it tells client developers about the functions hosted by the service (not a documentation). For more information about WSDL documents, visit&amp;nbsp;&lt;a href="http://www.w3schools.com/wsdl/wsdl_documents.asp" style="color: purple; text-decoration: none;"&gt;www.w3schools.com/wsdl/wsdl_documents.asp&lt;/a&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Fortunately enough for JAVA 1.6 developers, is the existence of the JAVA&amp;nbsp;&lt;em&gt;jax-ws&lt;/em&gt;&amp;nbsp;package that generates the proxy classes necessary for communicating with the web server.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
First let’s build the java project in&amp;nbsp;&lt;em&gt;C:\Project7\java_proj\webClient&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
So, start by creating a new java class called&amp;nbsp;&lt;em&gt;cl.java&lt;/em&gt;. (Make sure your current directory is&lt;em&gt;C:\Project7\java_proj\webClient&lt;/em&gt;).&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now let’s run the&amp;nbsp;&lt;em&gt;jax-ws&lt;/em&gt;&amp;nbsp;utility by typing the following in the command line:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain7" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre7" lang="text" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;strong&gt;C:\Project7\java_proj\webClient&lt;/strong&gt; &amp;gt;wsimport -keep -p webPack.serv 
http://localhost/Service.asmx?wsdl &lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
The&amp;nbsp;&lt;em&gt;wsimport&lt;/em&gt;&amp;nbsp;command will generate the proxy classes we need,&amp;nbsp;&lt;em&gt;-keep&lt;/em&gt;&amp;nbsp;keeps the generated source files, and&lt;em&gt;webPack.serv&lt;/em&gt;&amp;nbsp;is the package containing the proxy classes. You could see by examining the&amp;nbsp;&lt;strong&gt;service&lt;/strong&gt;&amp;nbsp;section of the WSDL file and by browsing through the&amp;nbsp;&lt;em&gt;webPack\serv&lt;/em&gt;&amp;nbsp;folders that you have the two main classes&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;CalculatorWebService&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;CalculatorWebServiceSoap&lt;/code&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Next, let’s edit our&amp;nbsp;&lt;em&gt;cl.java&lt;/em&gt;&amp;nbsp;client as follows:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain8" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre8" lang="cs" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;import webPack.serv.*;

&lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;class&lt;/span&gt; cl
{
 &lt;span class="code-keyword" style="color: blue;"&gt;public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;static&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;void&lt;/span&gt; main(&lt;span class="code-SDKkeyword" style="color: #339999;"&gt;String&lt;/span&gt;[] args)
 {
  CalculatorWebService service = &lt;span class="code-keyword" style="color: blue;"&gt;new&lt;/span&gt; CalculatorWebService ();
CalculatorWebServiceSoap soap = service.getPort(CalculatorWebServiceSoap.&lt;span class="code-keyword" style="color: blue;"&gt;class&lt;/span&gt;);
  &lt;span class="code-keyword" style="color: blue;"&gt;int&lt;/span&gt; x = &lt;span class="code-digit" style="color: navy;"&gt;5&lt;/span&gt;,y = &lt;span class="code-digit" style="color: navy;"&gt;10&lt;/span&gt;;
  System.&lt;span class="code-keyword" style="color: blue;"&gt;out&lt;/span&gt;.println(soap.Add(x,y));
  
 }
}&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
The&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;getPort&lt;/code&gt;&amp;nbsp;method returns the ‘stub’ of the&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;CalculatorWebService&lt;/code&gt;&amp;nbsp;class as defined by the web service and lets you access the four calculator methods defined. For instance, the&amp;nbsp;&lt;em&gt;soap.Add(int,int)&lt;/em&gt;&amp;nbsp;method actually calls the server to perform the&amp;nbsp;&lt;em&gt;Add&lt;/em&gt;&amp;nbsp;function defined there, and then directs the return value to the client.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Testing this class is easy; just compile as follows:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain9" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre9" lang="text" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&amp;gt;javac –classpath . cl.java &lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Then run this program as follows:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain10" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre10" lang="text" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&amp;gt; java cl &lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
You’ll get "&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;15&lt;/code&gt;" as an output.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Installing and Testing the Web Client in PHP&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
PHP allows the easy creation and consumption of SOAP based web services through the NuSOAP toolkit. To learn how to download and configure this API toolkit, visit&amp;nbsp;&lt;a href="http://sourceforge.net/projects/nusoap/" style="color: purple; text-decoration: none;"&gt;http://sourceforge.net/projects/nusoap/&lt;/a&gt;.&lt;br /&gt;First, you need to include the&amp;nbsp;&lt;em&gt;nusoap&lt;/em&gt;&amp;nbsp;library so type in your PHP shell:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain11" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre11" lang="php" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;require_once('nusoap.php'); &lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Then you need to connect to our web service’s WSDL in order to generate the SOAP client, so type in:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain12" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre12" lang="php" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;$wsdl="http://localhost/WebService/Service.asmx?wsdl";
$client=new soapclient($wsdl, 'wsdl');&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now that the SOAP&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;$client&lt;/code&gt;&amp;nbsp;is ready, we could then simply type in:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain13" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre13" lang="php" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;$param=array(
'x'=&amp;gt;10,
'y'=&amp;gt;5
); 
echo $client-&amp;gt;call('add', $param);&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
And we’ll get ‘&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;15&lt;/code&gt;’ as expected.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Actually the way to access web services in PHP/NuSOAP is very similar to that in the .NET Framework.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
&lt;a href="" name="ap1" style="color: #004cd5;"&gt;Appendix A: Activating the IIS server and ASP.NET under Windows 7&lt;/a&gt;&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
In most Windows computers, IIS server and ASP.NET are not installed by default as they’re an optional Windows component; however, the installation process runs smoothly as follows.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Goto&amp;nbsp;&lt;em&gt;Control Panel&lt;/em&gt;&amp;nbsp;and choose&amp;nbsp;&lt;em&gt;Programs and Features&lt;/em&gt;&amp;nbsp;(you may need to click View by: Large Icons in order to see the Programs and Features icon).&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
On the left margin of the Programs and Features window, choose&amp;nbsp;&lt;em&gt;Turn Windows Features on or off&lt;/em&gt;&amp;nbsp;you may need administrative privileges in order to proceed.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="327" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro16.png" style="height: 327px; overflow: auto; width: 444px;" width="444" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Next, expand the&amp;nbsp;&lt;em&gt;Internet Information Services&lt;/em&gt;&amp;nbsp;tree to ensure the installation of IIS server. Then expand the World Wide Web Services tree and then expand the&amp;nbsp;&lt;em&gt;Application Development Features&lt;/em&gt;&amp;nbsp;and make sure that the&amp;nbsp;&lt;em&gt;ASP.NET&lt;/em&gt;node icon is checked.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="339" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro17.png" style="height: 339px; overflow: auto; width: 302px;" width="302" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Finally click OK to install the IIS and ASP.NET server.&lt;/div&gt;
&lt;a href="" name="ap2" style="color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;&lt;/a&gt;&lt;span style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;&lt;/span&gt;&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
&lt;a href="" name="ap2" style="color: #004cd5;"&gt;Appendix B: Configuring the IIS Server for First Time Usage&lt;/a&gt;&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
To launch IIS server under Windows 7, go to the start menu and type IIS -&amp;nbsp;you should see&amp;nbsp;&lt;em&gt;Internet Information Services (IIS) Manager&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
First, you should start the IIS server, so click Start on the right margin labelled&amp;nbsp;&lt;em&gt;Action&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="252" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro18.png" style="height: 252px; overflow: auto; width: 419px;" width="419" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Now that the IIS server has started, you may (optionally) want to enable directory listing in order to permit users to browse the contents of your web server.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
To do that, click on the&amp;nbsp;&lt;em&gt;Default Web Site&lt;/em&gt;&amp;nbsp;tree in the left margin named Connections and then double click on the&lt;em&gt;Directory Browsing&lt;/em&gt;&amp;nbsp;icon located in the middle of the screen. In the&amp;nbsp;&lt;em&gt;Actions&lt;/em&gt;, right margin click&amp;nbsp;&lt;em&gt;Enable&lt;/em&gt;.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img border="0" height="242" hspace="0" src="http://www.codeproject.com/KB/webservices/WebServiceIntr/WebServiceIntro19.png" style="height: 242px; overflow: auto; width: 615px;" width="615" /&gt;&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
You’re now ready to view your site. Just launch your browser and type http://localhost in your browser.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-9048619539076031?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/9048619539076031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/soap-web-services-create-once-consume.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9048619539076031?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9048619539076031?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/soap-web-services-create-once-consume.html' title='SOAP Web Services: Create Once, Consume Everywhere'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Dk4CQnY4fCp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-7776617041524912175</id><published>2012-07-05T23:09:00.000-07:00</published><updated>2012-07-05T23:09:23.834-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:09:23.834-07:00</app:edited><title>Retrieving hardware information with WMI</title><content type='html'>&lt;br /&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;img height="373" src="http://www.codeproject.com/KB/vbscript/VvvHardwareInfo/HardwareInfo.gif" style="overflow: auto;" width="481" /&gt;&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Introduction&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Windows Management Instrumentation (WMI) is a scalable system management infrastructure that uses a single, consistent, standards-based, extensible, object-oriented interface. WMI provides you with a standard way to interact with system management information and the underlying WMI APIs. WMI is used primarily by system management application developers and administrators to access and manipulate system management information.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
The purpose of WMI is to provide a standardized means for managing your computer system, be it a local computer or all the computers in an enterprise. In its simplest terms, management is little more than collecting data about the state of a managed object on the computer system and altering the state of the managed object by changing the data stored about the object. A managed object can be a hardware entity, such as a memory array, port, or disk drive. It can also be a software entity, such as a service, user account, or page file.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
WMI can manage the many components of a computer system. In managing a hard disk, you can use WMI to monitor the amount of free space remaining on the disk. You could also use WMI to remotely alter the state of the drive by deleting files, changing file security, or partitioning or formatting the drive.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
WMI is not only a powerful tool to collect system information, it is also very easy to use. Existing scripting WMI interface makes it possible to be used for system administrators and web-designers as well as for skilled programmers.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Presented application displays hardware information in HTML page and uses VBScript as back-end programming language.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
First of all, we set&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;strComputer&lt;/code&gt;&amp;nbsp;(name of the computer to get information from) to "." - current computer, and write function&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;GetWMIServices()&lt;/code&gt;&amp;nbsp;- this function will be used in all procedures that get information from WMI and can be modified to get WMI services from another computer.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Then we define some function that will format output -&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;WMIDateStringToDate(), DisplayOutputHeader()&lt;/code&gt;,&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;DisplayOutput()&lt;/code&gt;,&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;GetTableHeader()&lt;/code&gt;,&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;GetTableFooter()&lt;/code&gt;,&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;GetRow()&lt;/code&gt;. With these functions, we will have standardized output.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;
Code&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
For example, the code for retrieving and displaying processor(s) information is:&lt;/div&gt;
&lt;div class="pre-action-link" id="premain0" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre0" lang="vbscript" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;Function&lt;/span&gt;  ShowProcessorInfo()
  &lt;span class="code-keyword" style="color: blue;"&gt;On&lt;/span&gt;  &lt;span class="code-keyword" style="color: blue;"&gt;Error&lt;/span&gt;  Resume  &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt;
  DisplayOutputHeader(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Processor  -  Win32_Processor"&lt;/span&gt;)
  str  =  &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;
  &lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt;  objWMIService  =  GetWMIServices()
  &lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt;  colItems  =  objWMIService.ExecQuery( _
    &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Select  *  from  Win32_Processor"&lt;/span&gt;)
  &lt;span class="code-keyword" style="color: blue;"&gt;For&lt;/span&gt;  &lt;span class="code-keyword" style="color: blue;"&gt;Each&lt;/span&gt;  objItem  in  colItems
          str  =  str  &amp;amp;  GetTableHeader()
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Address  Width"&lt;/span&gt;,  objItem.AddressWidth)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Architecture"&lt;/span&gt;,  objItem.Architecture)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Availability"&lt;/span&gt;,  objItem.Availability)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;CPU  Status"&lt;/span&gt;,  objItem.CpuStatus)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Current  Clock  Speed"&lt;/span&gt;,  _
             objItem.CurrentClockSpeed)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Data  Width"&lt;/span&gt;,  objItem.DataWidth)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Description"&lt;/span&gt;,  objItem.Description)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Device  ID"&lt;/span&gt;,  objItem.DeviceID)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Ext  Clock"&lt;/span&gt;,  objItem.ExtClock)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Family"&lt;/span&gt;,  objItem.Family)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;L2  Cache  Size"&lt;/span&gt;,  objItem.L2CacheSize)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;L2  Cache  Speed"&lt;/span&gt;,  objItem.L2CacheSpeed)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Level"&lt;/span&gt;,  objItem.Level)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Load  Percentage"&lt;/span&gt;,  objItem.LoadPercentage)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Manufacturer"&lt;/span&gt;,  objItem.Manufacturer)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Maximum  Clock  Speed"&lt;/span&gt;,  _
            objItem.MaxClockSpeed)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Name"&lt;/span&gt;,  objItem.Name)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;PNP  Device  ID"&lt;/span&gt;,  objItem.PNPDeviceID)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Processor  Id"&lt;/span&gt;,  objItem.ProcessorId)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Processor  Type"&lt;/span&gt;,  objItem.ProcessorType)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Revision"&lt;/span&gt;,  objItem.Revision)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Role"&lt;/span&gt;,  objItem.Role)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Socket  Designation"&lt;/span&gt;,  _
              objItem.SocketDesignation)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Status  Information"&lt;/span&gt;,  objItem.StatusInfo)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Stepping"&lt;/span&gt;,  objItem.Stepping)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Unique  Id"&lt;/span&gt;,  objItem.UniqueId)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Upgrade  Method"&lt;/span&gt;,  objItem.UpgradeMethod)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Version"&lt;/span&gt;,  objItem.Version)
          str  =  str  &amp;amp;  GetRow(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Voltage  Caps"&lt;/span&gt;,  objItem.VoltageCaps)
          str  =  str  &amp;amp;  GetTableFooter()
  &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt;
  DisplayOutput(str)
&lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt;  &lt;span class="code-keyword" style="color: blue;"&gt;Function&lt;/span&gt;&lt;/pre&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;HardwareInfo&lt;/code&gt;&amp;nbsp;retrieves also information about baseboard, batteries, BIOS, memory settings, PnP devices, ports and some others.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
At the last point, customize look of the application with cascading style sheet - the easiest way to create good looking interface. Application can run as is - just double-click on&amp;nbsp;&lt;i&gt;index.hta&amp;nbsp;&lt;/i&gt;file or it can be compiled into single file. Retrieving information about installed hardware items with Windows Management Instrumentation is very easy and requires minimal programming skills.&lt;/div&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
HardwareInformation application is written as HTA (HTML application) and compiled with compiler provided with&amp;nbsp;&lt;a href="http://www-sharp.com/clrhost" style="color: purple; text-decoration: none;" target="_blank"&gt;www-Sharp.ClrHost&lt;/a&gt;&amp;nbsp;that is available for free.&amp;nbsp;&lt;a href="http://www-sharp.com/" style="color: purple; text-decoration: none;" target="_blank"&gt;www-Sharp&lt;/a&gt;&amp;nbsp;includes WMI viewer that can be used to visually explore WMI classes and properties and write powerful WMI applications.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-7776617041524912175?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/7776617041524912175/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/retrieving-hardware-information-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/7776617041524912175?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/7776617041524912175?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/retrieving-hardware-information-with.html' title='Retrieving hardware information with WMI'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;Dk4FQng7eip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-1021494055730055553</id><published>2012-07-05T23:08:00.003-07:00</published><updated>2012-07-05T23:08:33.602-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:08:33.602-07:00</app:edited><title>Using VBScript to sort servers by best response time - Uses custom ping function for XP and 2000</title><content type='html'>&lt;br /&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;

Introduction&lt;/h2&gt;
&lt;div style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;
Working on a script a while back, there was a need to sort a list of servers by the average response time. Being able to sort servers by their response times gives you the ability to ensure you are connecting to the best server based on your location and avoid servers that are down. Within the script, there are two functions: a custom ping function designed to work with XP and 2000, and the&amp;nbsp;&lt;code style="color: #990000; font-family: 'Courier New', Courier, mono; font-size: 11pt;"&gt;ServersByPingTime&lt;/code&gt;&amp;nbsp;function which takes a list of servers and returns an array based on the best average response time. Below, you will find the script and the sample output. You can also download the sample by clicking the link at the top of the page.&lt;/div&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;

The Code&lt;/h2&gt;
&lt;div class="pre-action-link" id="premain0" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre0" lang="vbscript" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; arr : arr = Array( &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;GOOGLE.COM"&lt;/span&gt; , &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;YAHOO.COM"&lt;/span&gt; , _
                       &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;CAT"&lt;/span&gt; , &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;LOCALHOST"&lt;/span&gt;)
&lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; out
&lt;span class="code-keyword" style="color: blue;"&gt;Call&lt;/span&gt; ServersByPingTime( arr , out , &lt;span class="code-keyword" style="color: blue;"&gt;True&lt;/span&gt; )
&lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; s
WScript.Echo &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;In order fastest to slowest: "&lt;/span&gt;
&lt;span class="code-keyword" style="color: blue;"&gt;For&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Each&lt;/span&gt; S in out
 WScript.Echo s
&lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt; 

&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; Ping function will work on Windows 2000 and Windows XP
&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; without using the Win32_PingStatus
&lt;/span&gt;&lt;span class="code-keyword" style="color: blue;"&gt;Function&lt;/span&gt; Ping(strHost , ByRef bytesSent , ByRef bytesReceived , _
         ByRef bytesLost , ByRef minMs , ByRef maxMs , ByRef aveMs )
 Ping = &lt;span class="code-keyword" style="color: blue;"&gt;False&lt;/span&gt;
 &lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; objShell, objExec, strPingResults, bRet
 &lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt; objShell = &lt;span class="code-keyword" style="color: blue;"&gt;CreateObject&lt;/span&gt;(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;WScript.Shell"&lt;/span&gt;)
 &lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt; objExec = objShell.Exec(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;ping -n 1 "&lt;/span&gt; &amp;amp; strHost) 
 &lt;span class="code-keyword" style="color: blue;"&gt;Do&lt;/span&gt;
     WScript.Sleep &lt;span class="code-digit" style="color: navy;"&gt;100&lt;/span&gt;
 &lt;span class="code-keyword" style="color: blue;"&gt;Loop&lt;/span&gt; Until objExec.Status &amp;lt;&amp;gt; &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;
 strPingResults = objExec.StdOut.ReadAll
 &lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; regexpingstats : &lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt; regexpingstats = new regexp
  regexpingstats.Pattern = &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Packets:\s+Sent\s+=\s+([0-9]+).*Received"&lt;/span&gt; &amp;amp; _ 
                           &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;\s+=\s+([0-9]+).*Lost\s+=\s+([0-9]+)(?:.*\s)+"&lt;/span&gt; &amp;amp; _ 
                           &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;Minimum\s+=\s+([0-9]+)ms.*Maximum\s+=\s+"&lt;/span&gt; &amp;amp; _ 
                           &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;([0-9]+)ms.*Average\s+=\s+([0-9]+)ms"&lt;/span&gt;
 regexpingstats.Global = &lt;span class="code-keyword" style="color: blue;"&gt;True&lt;/span&gt;
 regexpingstats.IgnoreCase = &lt;span class="code-keyword" style="color: blue;"&gt;True&lt;/span&gt;
 regexpingstats.MultiLine = &lt;span class="code-keyword" style="color: blue;"&gt;True&lt;/span&gt;
 &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; regexpingstats.Test(strPingResults) &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt;
  &lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; m : &lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt; m = regexpingstats.Execute(strPingResults)
  bytesSent = &lt;span class="code-keyword" style="color: blue;"&gt;CInt&lt;/span&gt;(m.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).subMatches.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;))
  bytesReceived = &lt;span class="code-keyword" style="color: blue;"&gt;CInt&lt;/span&gt;(m.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).subMatches.Item(&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;))
  bytesLost = &lt;span class="code-keyword" style="color: blue;"&gt;CInt&lt;/span&gt;(m.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).subMatches.Item(&lt;span class="code-digit" style="color: navy;"&gt;2&lt;/span&gt;))
  minMs = &lt;span class="code-keyword" style="color: blue;"&gt;CInt&lt;/span&gt;(m.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).subMatches.Item(&lt;span class="code-digit" style="color: navy;"&gt;3&lt;/span&gt;))
  maxMs = &lt;span class="code-keyword" style="color: blue;"&gt;CInt&lt;/span&gt;(m.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).subMatches.Item(&lt;span class="code-digit" style="color: navy;"&gt;4&lt;/span&gt;))
  aveMs = &lt;span class="code-keyword" style="color: blue;"&gt;CInt&lt;/span&gt;(m.Item(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;).subMatches.Item(&lt;span class="code-digit" style="color: navy;"&gt;5&lt;/span&gt;))
  Ping = Eval( bytesSent &amp;gt; bytesLost )
 &lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt;
&lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Function&lt;/span&gt;

&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;Returns false if no server were found alive
&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;outSortedByMs - array sorted fastest response to slowest response time
&lt;/span&gt;&lt;span class="code-keyword" style="color: blue;"&gt;Public&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Function&lt;/span&gt; ServersByPingTime( ByVal inSeverList , _
                ByRef outSortedByMs , bVerbose )
  &lt;span class="code-keyword" style="color: blue;"&gt;On&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Error&lt;/span&gt; Resume &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt;
  ServersByPingTime = &lt;span class="code-keyword" style="color: blue;"&gt;False&lt;/span&gt;
  outLivingSorted = Array
  &lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; s, i , j , temp
  &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; bVerbose &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt;
    WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;[Performing Connectivity Test of Defined Servers]"&lt;/span&gt;)
  &lt;span class="code-keyword" style="color: blue;"&gt;For&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Each&lt;/span&gt; s In inSeverList 
   &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; bVerbose &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt; wscript.StdOut.Write(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;        Server: "&lt;/span&gt; &amp;amp; s )
   &lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; bs, br, bl, mi , ma , av
   &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; Ping( s , bs, br, bl, mi , ma , av ) &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt;
    &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; bVerbose &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt;
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; [Passed]"&lt;/span&gt;)
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;    Bytes Sent: "&lt;/span&gt; &amp;amp; bs )
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;    Bytes Recv: "&lt;/span&gt; &amp;amp; br )
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;    Bytes Lost: "&lt;/span&gt; &amp;amp; bl )
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;        Min ms: "&lt;/span&gt; &amp;amp; mi )
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;        Max ms: "&lt;/span&gt; &amp;amp; ma )
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;    Average ms: "&lt;/span&gt; &amp;amp; av )
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;)
    &lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; 
    i = &lt;span class="code-keyword" style="color: blue;"&gt;UBound&lt;/span&gt;(outLivingSorted) + &lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;  
    &lt;span class="code-keyword" style="color: blue;"&gt;ReDim&lt;/span&gt; Preserve outLivingSorted(i)
    outLivingSorted(i) = Array(s,av)
    ServersByPingTime = &lt;span class="code-keyword" style="color: blue;"&gt;True&lt;/span&gt; &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt; Success there are servers alive... 
&lt;/span&gt;   &lt;span class="code-keyword" style="color: blue;"&gt;Else&lt;/span&gt; 
    &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; bVerbose &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt; 
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt; [Failed]"&lt;/span&gt;)
     WScript.Echo(&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;)
    &lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;if&lt;/span&gt;
   &lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; 
  &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt;
  &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;Sort...
&lt;/span&gt;  &lt;span class="code-keyword" style="color: blue;"&gt;For&lt;/span&gt; i = &lt;span class="code-keyword" style="color: blue;"&gt;UBound&lt;/span&gt;(outLivingSorted) - &lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt; To &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt; Step -1
    &lt;span class="code-keyword" style="color: blue;"&gt;For&lt;/span&gt; j = &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt; To i
      &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt; outLivingSorted(j)(&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;) &amp;gt; outLivingSorted(j+1)(&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;) &lt;span class="code-keyword" style="color: blue;"&gt;Then&lt;/span&gt;
         temp=outLivingSorted(j+1)
         outLivingSorted(j+1)=outLivingSorted(j)
         outLivingSorted(j)=temp
      &lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;If&lt;/span&gt;
    &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt;
  &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt; 
  &lt;span class="code-comment" style="color: green; font-style: italic;"&gt;'&lt;/span&gt;&lt;span class="code-comment" style="color: green; font-style: italic;"&gt;Temp array to store the new pinged and sorted by reponse time...
&lt;/span&gt;  &lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; temparray
  &lt;span class="code-keyword" style="color: blue;"&gt;ReDim&lt;/span&gt; temparray(&lt;span class="code-keyword" style="color: blue;"&gt;UBound&lt;/span&gt;(outLivingSorted))
  &lt;span class="code-keyword" style="color: blue;"&gt;For&lt;/span&gt; i = &lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt; To &lt;span class="code-keyword" style="color: blue;"&gt;UBound&lt;/span&gt;(outLivingSorted) 
    temparray(i) = outLivingSorted(i)(&lt;span class="code-digit" style="color: navy;"&gt;0&lt;/span&gt;)
  &lt;span class="code-keyword" style="color: blue;"&gt;Next&lt;/span&gt;
  outSortedByMs = temparray
&lt;span class="code-keyword" style="color: blue;"&gt;End&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Function&lt;/span&gt;&lt;/pre&gt;
&lt;h2 style="color: #ff9900; font-family: Verdana, Arial, sans-serif; font-size: 13pt;"&gt;

Sample Output - Verbose&lt;/h2&gt;
&lt;div class="pre-action-link" id="premain1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre1" lang="text" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;[Performing Connectivity Test of Defined Servers]
Server: GOOGLE.COM [Passed]
Bytes Sent: 4
Bytes Recv: 3
Bytes Lost: 1
Min ms: 28
Max ms: 31
Average ms: 30
Server: YAHOO.COM [Passed]
Bytes Sent: 4
Bytes Recv: 4
Bytes Lost: 0
Min ms: 15
Max ms: 19
Average ms: 16
Server: CAT [Failed]
Server: LOCALHOST [Passed]
Bytes Sent: 4
Bytes Recv: 4
Bytes Lost: 0
Min ms: 0
Max ms: 0
Average ms: 0
In order fastest to slowest: 
LOCALHOST
YAHOO.COM
GOOGLE.COM&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-1021494055730055553?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/1021494055730055553/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/using-vbscript-to-sort-servers-by-best.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/1021494055730055553?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/1021494055730055553?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/using-vbscript-to-sort-servers-by-best.html' title='Using VBScript to sort servers by best response time - Uses custom ping function for XP and 2000'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkACQ3c_fip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-5353534470484822594</id><published>2012-07-05T23:06:00.000-07:00</published><updated>2012-07-05T23:06:02.946-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:06:02.946-07:00</app:edited><title>Using Web Services with VB.NET</title><content type='html'>&lt;span style="font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px;"&gt;Web Services is one of the greatest technologies developed in the Internet world. They can be used to connect businesses with each other and clients in a standard way using XML (Extensible Markup Language), SOAP (Simple Object Access Protocol), WSDL (Web Services Description Language), and UDDI (Universal Description, Discovery and Integration).&lt;/span&gt;&lt;br /&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
XML is used for structuring the data, SOAP is used to transfer the data, WSDL is used for describing the services, and UDDI is used to get a list of services available. Web Services allows applications to communicate with each other without worrying about their hardware systems, operating systems, and programming languages.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Unlike the older model, Web Services does not provide a user interface but exposes the business logic, which can be programmed; therefore, the user is free to add his own interface to the application.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Google is one of the Web sites that has provided a public Web Services, allowing applications to use features such as search and spell checks. We shall now see how can we use this service in our application using Visual Basic .NET.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
But before we can access Google's Web APIs service, we will have to create a Google account and obtain an license key that will allow us to run about 1,000 automated queries a day. Please visit&lt;a href="http://www.google.co.nz/apis/" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;http://www.Google.co.nz/apis/&lt;/a&gt;&amp;nbsp;to create a Google account. After you have entered your e-mail address and password, Google will mail you a license key, which we'll use in our application.&lt;/div&gt;
&lt;h3 style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 14px; line-height: 20px; margin: 1em 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Getting Started&lt;/h3&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Now that you have received your license key, we will create an application in Visual Basic .NET to create a customized search and a spelling checker that uses the Google Web APIs Service.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Open your Visual Studio .NET, create a new Windows Application Project, which we will call googleapi, and then click OK.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService1.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService1.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;img src="http://www.codeguru.com/img/legacy/vb_internet/WebService1.gif" style="background-color: transparent; border: 0px; height: auto; margin: 0px; max-width: 598px; outline: 0px; padding: 0px; vertical-align: baseline;" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3 style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 14px; line-height: 20px; margin: 1em 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Adding a Web Reference to Google Web APIs Service&lt;/h3&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
We will now add a Web Reference to Google Web APIs Service. Well, this is almost like adding a reference to a COM/ActiveX object, but when we add a Web Reference we now have access to all the XML Web Services on the Google server. Open your Solution Explorer, right-click References, and then click Add Web Reference. Alternatively, you could select Project menu and click Add Web Reference.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
In the Add Web Reference window, type http://api.Google.com/GoogleSearch.wsdl in the address bar. Please make sure you type exactly as shown; this URL is case sensitive.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService2.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService2.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;img src="http://www.codeguru.com/img/legacy/vb_internet/WebService2.gif" style="background-color: transparent; border: 0px; height: auto; margin: 0px; max-width: 598px; outline: 0px; padding: 0px; vertical-align: baseline;" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
After you enter the URL and press Enter, the Google Web Service is loaded. You should see a screen like Figure 2. Also, the Add Reference button is enabled. Click Add Reference button to add this Web reference to our project.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
In the Solution Explorer Window, click the Web Reference to see a Google Web Reference, which we have added. Let's rename that to Google by right-clicking it and clicking Rename.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;img border="1" src="http://www.codeguru.com/img/legacy/vb_internet/WebService3.gif" style="background-color: transparent; border: 0px; height: auto; margin: 0px; max-width: 598px; outline: 0px; padding: 0px; vertical-align: baseline;" /&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Create a User Interface as shown below with the flowing controls and given names.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService4.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService4.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;img src="http://www.codeguru.com/img/legacy/vb_internet/WebService4.gif" style="background-color: transparent; border: 0px; height: auto; margin: 0px; max-width: 598px; outline: 0px; padding: 0px; vertical-align: baseline;" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre class="prettyprint linenums" style="border-bottom-left-radius: 5px !important; border-bottom-right-radius: 5px !important; border-top-left-radius: 5px !important; border-top-right-radius: 5px !important; border: 1px solid black !important; font-size: 12px; line-height: 20px; margin-bottom: 1em !important; outline: 0px; overflow-x: auto !important; padding: 2px; vertical-align: baseline;"&gt;&lt;ol class="linenums" style="background-color: transparent; border: 0px; margin-bottom: 0px; margin-left: 3em !important; margin-right: 1em; margin-top: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;a&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;For&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Searching&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; on the &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Engine&lt;/span&gt;&lt;/li&gt;
&lt;li class="L1" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;txtSearch            &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;TextBox&lt;/span&gt;&lt;/li&gt;
&lt;li class="L2" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;lbl_TotalFound       &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Label&lt;/span&gt;&lt;/li&gt;
&lt;li class="L3" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;btn_Search           &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Button&lt;/span&gt;&lt;/li&gt;
&lt;li class="L4" style="background-color: transparent; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L5" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;b&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;For&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Checking&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Spelling&lt;/span&gt;&lt;/li&gt;
&lt;li class="L6" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L7" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;txt_CheckSpelling    &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;TextBox&lt;/span&gt;&lt;/li&gt;
&lt;li class="L8" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;lbl_CorrectSpelling  &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Label&lt;/span&gt;&lt;/li&gt;
&lt;li class="L9" style="background-color: #eeeeee; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;btn_CheckSpelling    &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;-&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Button&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;h3 style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 14px; line-height: 20px; margin: 1em 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Source Code&lt;/h3&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Type the following code in the click event of the Google Search Button (btn_Search):&lt;/div&gt;
&lt;pre class="prettyprint linenums" style="border-bottom-left-radius: 5px !important; border-bottom-right-radius: 5px !important; border-top-left-radius: 5px !important; border-top-right-radius: 5px !important; border: 1px solid black !important; font-size: 12px; line-height: 20px; margin-bottom: 1em !important; outline: 0px; overflow-x: auto !important; padding: 2px; vertical-align: baseline;"&gt;&lt;ol class="linenums" style="background-color: transparent; border: 0px; margin-bottom: 0px; margin-left: 3em !important; margin-right: 1em; margin-top: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Private&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Sub&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; btn_Search_Click&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;ByVal&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; sender &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;System&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Object&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L1" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;ByVal&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; e &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;System&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;EventArgs&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Handles&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; btn_Search&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Click&lt;/span&gt;&lt;/li&gt;
&lt;li class="L2" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L3" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Dim&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;MyLicenseKey&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;String&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' Variable to Store the&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L4" style="background-color: transparent; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                                   '&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;License&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Key&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L5" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' Declare variable for the Google search service&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L6" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        Dim MyService As Google.GoogleSearchService = New _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L7" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                         Google.GoogleSearchService()&lt;/span&gt;&lt;/li&gt;
&lt;li class="L8" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;'&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Declare&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; variable &lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: #000088; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;for&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; the &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Google&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Search&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Result&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L9" style="background-color: #eeeeee; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Dim&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;MyResult&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Google&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;GoogleSearchResult&lt;/span&gt;&lt;/li&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' Please type your license key here&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L1" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        MyLicenseKey = "tGCTJkYos3YItLYzI9Hg5quBRY8bGqiM"&lt;/span&gt;&lt;/li&gt;
&lt;li class="L2" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;'&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Execute&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Google&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; search on the text enter &lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: #000088; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;and&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L3" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' license key&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L4" style="background-color: transparent; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        MyResult = MyService.doGoogleSearch(MyLicenseKey, _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L5" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                   txtSearch.Text, 0, 1, False, "", False, _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L6" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                                   "", "", "")&lt;/span&gt;&lt;/li&gt;
&lt;li class="L7" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;'&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; output the total &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Results&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; found&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L8" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        lbl_TotalFound&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Text&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;"Total Found : "&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;amp;&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L9" style="background-color: #eeeeee; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                       &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;CStr&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;MyResult&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;estimatedTotalResultsCount&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;/li&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;    &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;End&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Sub&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Type the following code in the click event of the Check Spelling Button (btn_CheckSpelling):&lt;/div&gt;
&lt;pre class="prettyprint linenums" style="border-bottom-left-radius: 5px !important; border-bottom-right-radius: 5px !important; border-top-left-radius: 5px !important; border-top-right-radius: 5px !important; border: 1px solid black !important; font-size: 12px; line-height: 20px; margin-bottom: 1em !important; outline: 0px; overflow-x: auto !important; padding: 2px; vertical-align: baseline;"&gt;&lt;ol class="linenums" style="background-color: transparent; border: 0px; margin-bottom: 0px; margin-left: 3em !important; margin-right: 1em; margin-top: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Private&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Sub&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; btn_CheckSpelling_Click&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;(&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;ByVal&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; sender _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L1" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;System&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Object&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;,&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L2" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;ByVal&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; e &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;System&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;EventArgs&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;)&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L3" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Handles&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; btn_CheckSpelling&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Click&lt;/span&gt;&lt;/li&gt;
&lt;li class="L4" style="background-color: transparent; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L5" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Dim&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;MyLicenseKey&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;String&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' Variable to Store the&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L6" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                                   '&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;License&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Key&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L7" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' Declare variable for the Google search service&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L8" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        Dim  MyService As Google.GoogleSearchService = New _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L9" style="background-color: #eeeeee; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                          Google.GoogleSearchService()&lt;/span&gt;&lt;/li&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;'&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Declare&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; variable &lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: #000088; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;for&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; the &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Google&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Search&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Result&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L1" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Dim&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;MyResult&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;As&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;String&lt;/span&gt;&lt;/li&gt;
&lt;li class="L2" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' Please type your license key here&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L3" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        MyLicenseKey = "tGCTJkYos3YItLYzI9Hg5quBRY8bGqiM"&lt;/span&gt;&lt;/li&gt;
&lt;li class="L4" style="background-color: transparent; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;'&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Execute&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Google&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; search on the text enter &lt;/span&gt;&lt;span class="kwd" style="background-color: transparent; border: 0px; color: #000088; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;and&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L5" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;' license key&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L6" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        MyResult = MyService.doSpellingSuggestion( _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L7" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                   MyLicenseKey, _&lt;/span&gt;&lt;/li&gt;
&lt;li class="L8" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;                   txt_CheckSpelling.Text)&lt;/span&gt;&lt;/li&gt;
&lt;li class="L9" style="background-color: #eeeeee; border: 0px; list-style: decimal outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        &lt;/span&gt;&lt;span class="codeComment" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;'&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; output the results&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="L0" style="background-color: transparent; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;        lbl_CorrectSpelling&lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;.&lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Text&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;=&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="str" style="background-color: transparent; border: 0px; color: #008800; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;"Did you Mean : "&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="pun" style="background-color: transparent; border: 0px; color: #666600; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&amp;amp;&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;MyResult&lt;/span&gt;&lt;/li&gt;
&lt;li class="L1" style="background-color: #eeeeee; border: 0px; list-style: none outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;    &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;End&lt;/span&gt;&lt;span class="pln" style="background-color: transparent; border: 0px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt; &lt;/span&gt;&lt;span class="typ" style="background-color: transparent; border: 0px; color: #660066; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Sub&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;h3 style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 14px; line-height: 20px; margin: 1em 0px 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Finally&lt;/h3&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Now we have finished coding our application. Run the application and type some text to search in the text box. Click the Google Search button to see the number of results found. Also, try the Google spell check.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService5.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;a href="http://www.codeguru.com/vb/vb_internet/webservices/article.php/c4813/WebService5.gif" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;&lt;img src="http://www.codeguru.com/img/legacy/vb_internet/WebService5.gif" style="background-color: transparent; border: 0px; height: auto; margin: 0px; max-width: 598px; outline: 0px; padding: 0px; vertical-align: baseline;" width="500" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Now you must have realized how simple it is to incorporate Google Web APIs Service in your application. Here are few things you could do with this service:&lt;/div&gt;
&lt;ul style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin: 1em 1em 1em 2em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
&lt;li style="background-color: transparent; border: 0px; list-style: disc outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Issue regularly scheduled search requests to monitor the Web for new information on a subject.&lt;/li&gt;
&lt;li style="background-color: transparent; border: 0px; list-style: disc outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Perform market research by analyzing differences in the amount of information available on different subjects over time.&lt;/li&gt;
&lt;li style="background-color: transparent; border: 0px; list-style: disc outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Search via non-HTML interfaces, such as the command line, pagers, or visualization applications.&lt;/li&gt;
&lt;li style="background-color: transparent; border: 0px; list-style: disc outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Create innovative games that play with information on the Web.&lt;/li&gt;
&lt;li style="background-color: transparent; border: 0px; list-style: disc outside; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;Add Google spell-checking to an application.&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
There are a few more things I would like to say before I sign off:&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Google Web APIs support the same search syntax as the Google.com site and provide each developer who registers to use the Google Web APIs service a limit of 1,000 queries per day.&lt;/div&gt;
&lt;div style="border: 0px; font-family: Arial, sans-sarif, serif; font-size: 12px; line-height: 20px; margin-bottom: 1em; outline: 0px; padding: 0px; vertical-align: baseline;"&gt;
Please visit&amp;nbsp;&lt;a href="http://www.google.com/apis/api_faq.html" style="background-color: transparent; margin: 0px; padding: 0px; vertical-align: baseline;" target="new"&gt;http://www.google.com/apis/api_faq.html&lt;/a&gt;&amp;nbsp;if you have further questions about Google Web APIs Service.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-5353534470484822594?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/5353534470484822594/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/using-web-services-with-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/5353534470484822594?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/5353534470484822594?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/using-web-services-with-vbnet.html' title='Using Web Services with VB.NET'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkEDRXY4cSp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-4684928953257961022</id><published>2012-07-05T23:04:00.001-07:00</published><updated>2012-07-05T23:04:34.839-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:04:34.839-07:00</app:edited><title>Consuming .NET Web services with COM and VB6</title><content type='html'>&lt;br /&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
Microsoft's .NET strategy does not leave&amp;nbsp;&lt;a href="http://techrepublic.com.com/1200-3513-5737269.html" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;Visual Basic 6.0&lt;/a&gt;&amp;nbsp;programmers completely in the dark. One of the benefits of .NET is the ease at which you can&amp;nbsp;&lt;a href="http://techrepublic.com.com/5100-3513_11-5778042.html" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;create Web services&lt;/a&gt;. Another benefit is its interoperability with Component Object Model (COM), the basis for VB6 component creation and ActiveX.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
VB6 programmers can find comfort in knowing that .NET components can be registered as COM components, allowing VB6 programmers to create a reference to the registered component and use that component within their own projects. This can be a very powerful way to utilize .NET Web service components within VB6 projects.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
In this article, I will create a simple .NET Web service component, as well as a client proxy for the service, and use that proxy within VB6 without having to utilize the entire&amp;nbsp;&lt;a href="http://techrepublic.com.com/5100-22_11-5092969.html" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;SOAP&lt;/a&gt;&amp;nbsp;toolkit.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
Creating Web services in .NET is simple, because the foundation for HTTP transport through SOAP is built into the .NET Framework. This is, for the most part, transparent to the .NET programmer. The .NET programmer creates classes with public methods just like he/she would with any other development environment. However, when he/she compiles the project, the WSDL and supporting Web service functionality are created also. This is a major benefit to creating applications in .NET.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
Most likely,&amp;nbsp;&lt;a href="http://techrepublic.com.com/5100-3513_11-5768122.html" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;consumption of .NET Web services&lt;/a&gt;&amp;nbsp;is done through a consumer proxy. If you have the&lt;a href="http://www.asp.net/webmatrix" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank"&gt;ASP.NET Web Matrix IDE&lt;/a&gt;&amp;nbsp;on your PC, it contains a tool for automatically creating these proxies. Otherwise, you can create the proxy using command line tools available with the .NET Framework. Once you've created these proxies, which include the source code, you can tweak the code so that you can consume the proxy's functionality as a registered COM component in VB6.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
The first thing to do is create a .NET Web service that provides simple functionality but is representative of a useful business function that you would want to create as a Web service. Let's create a service for grabbing information from a database and supplying that data to the client. This&amp;nbsp;&lt;i&gt;is&lt;/i&gt;&amp;nbsp;what the great majority of all business functions do. The proxy will consume the Web service and will be registered as a COM component. Finally, a standard EXE will consume the proxy COM and display the results in textboxes on a form.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
The most common data you can find in most solutions is user information. So in our .NET Web service, we'll create a method that accepts an integer value, the user ID as the parameter and returns a User type. The User type contains members such as FirstName, LastName, etc.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
First, create a .NET Web service application in the Visual Studio .NET IDE, or you can create this solution in the ASP.NET Web Matrix IDE mentioned above. Add the code in&amp;nbsp;&lt;b&gt;&lt;a href="http://www.techrepublic.com/article/consuming-net-web-services-with-com-and-vb6/5793272#" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;Listing A&lt;/a&gt;&lt;/b&gt;&amp;nbsp;to the newly created project.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
From the preceding code, you can see where we create the connection to the database (in this case, SQL Server), grab the user information based on the user ID passed in to our method, and create and return the User type.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
Compile this code, and test the functionality by navigating your browser to the URL where your Web service is located, such as http://localhost/MyWebService/UserService.asmx. You should get a page that lists the method of your service. Click on this method and you should get a textbox to enter a user ID. Type in a valid user ID, click on the Invoke button, and check the return information in the next page. You should get XML back that looks something like&amp;nbsp;&lt;b&gt;&lt;a href="http://www.techrepublic.com/article/consuming-net-web-services-with-com-and-vb6/5793272#" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;"&gt;Listing B&lt;/a&gt;&lt;/b&gt;.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
If you get this, then we're on the right track. If not, normal errors include security errors such as access to the database. In your web.config file, make sure the authentication type is set to "Windows", and add identity impersonation with the following code:&lt;/div&gt;
&lt;pre style="border: 0px; color: #345220; font-family: consolas, 'Courier New', courier, monospace; font-size: 14px; margin-bottom: 10px; padding: 0px; vertical-align: baseline; white-space: pre-wrap; word-wrap: break-word;"&gt;&amp;lt;authentication type="Windows" /&amp;gt;
&amp;lt;identity impersonate="true" /&amp;gt;&lt;/pre&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
At this point, you may have to add IUSR_[computer name] access to the database. You can add this user to the public role and grant SELECT rights on your user information table to public. However, you should turn off anonymous access to this page through Internet Services Manager.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
In the next article, I'll create the Web service proxy using both the command line tools and the Web Matrix IDE. I'll tweak the code so that it can be used as a COM component and rebuild the DLL. Then I'll create a standard VB6 EXE that will reference the proxy COM.&lt;/div&gt;
&lt;div style="border: 0px; color: #37414b; font-family: 'Helvetica Neue', Helvetica, sans-serif; font-size: 14px; line-height: 19px; margin-bottom: 15px; padding: 0px; vertical-align: baseline;"&gt;
If you're new to Web services in .NET, the&amp;nbsp;&lt;a href="http://www.asp.net/" style="border: 0px; color: #003399; cursor: pointer; font-family: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank"&gt;ASP.NET Web site&lt;/a&gt;&amp;nbsp;provides simple, yet effective, information for creating Web services in .NET.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-4684928953257961022?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/4684928953257961022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/consuming-net-web-services-with-com-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4684928953257961022?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4684928953257961022?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/consuming-net-web-services-with-com-and.html' title='Consuming .NET Web services with COM and VB6'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkEEQnc5fyp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-9032275644465523761</id><published>2012-07-05T23:03:00.001-07:00</published><updated>2012-07-05T23:03:23.927-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:03:23.927-07:00</app:edited><title>VBScript Functions</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="date"&gt;Date/Time Functions&lt;/a&gt;&lt;/h2&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cdate.asp" style="background-color: transparent; color: #900b09;"&gt;CDate&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts a valid date and time expression to the variant of subtype Date&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_date.asp" style="background-color: transparent; color: #900b09;"&gt;Date&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current system date&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_dateadd.asp" style="background-color: transparent; color: #900b09;"&gt;DateAdd&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a date to which a specified time interval has been added&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_datediff.asp" style="background-color: transparent; color: #900b09;"&gt;DateDiff&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the number of intervals between two dates&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_datepart.asp" style="background-color: transparent; color: #900b09;"&gt;DatePart&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the specified part of a given date&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_dateserial.asp" style="background-color: transparent; color: #900b09;"&gt;DateSerial&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the date for a specified year, month, and day&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_datevalue.asp" style="background-color: transparent; color: #900b09;"&gt;DateValue&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a date&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_day.asp" style="background-color: transparent; color: #900b09;"&gt;Day&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the day of the month (between 1 and 31, inclusive)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_formatdatetime.asp" style="background-color: transparent; color: #900b09;"&gt;FormatDateTime&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an expression formatted as a date or time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_hour.asp" style="background-color: transparent; color: #900b09;"&gt;Hour&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the hour of the day (between 0 and 23, inclusive)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_isdate.asp" style="background-color: transparent; color: #900b09;"&gt;IsDate&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a Boolean value that indicates if the evaluated expression can be converted to a date&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_minute.asp" style="background-color: transparent; color: #900b09;"&gt;Minute&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the minute of the hour (between 0 and 59, inclusive)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_month.asp" style="background-color: transparent; color: #900b09;"&gt;Month&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the month of the year (between 1 and 12, inclusive)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_monthname.asp" style="background-color: transparent; color: #900b09;"&gt;MonthName&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the name of a specified month&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_now.asp" style="background-color: transparent; color: #900b09;"&gt;Now&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current system date and time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_second.asp" style="background-color: transparent; color: #900b09;"&gt;Second&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the second of the minute (between 0 and 59, inclusive)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_time.asp" style="background-color: transparent; color: #900b09;"&gt;Time&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current system time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_timer.asp" style="background-color: transparent; color: #900b09;"&gt;Timer&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the number of seconds since 12:00 AM&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_timeserial.asp" style="background-color: transparent; color: #900b09;"&gt;TimeSerial&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the time for a specific hour, minute, and second&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_timevalue.asp" style="background-color: transparent; color: #900b09;"&gt;TimeValue&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_weekday.asp" style="background-color: transparent; color: #900b09;"&gt;Weekday&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the day of the week (between 1 and 7, inclusive)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_weekdayname.asp" style="background-color: transparent; color: #900b09;"&gt;WeekdayName&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the weekday name of a specified day of the week&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_year.asp" style="background-color: transparent; color: #900b09;"&gt;Year&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents the year&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;table style="border: 0px; color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: left; width: 438px;"&gt;&lt;h2 style="background-color: transparent; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="conversion"&gt;Conversion Functions&lt;/a&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;td style="text-align: right; width: 186px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_asc.asp" style="background-color: transparent; color: #900b09;"&gt;Asc&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts the first letter in a string to ANSI code&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cbool.asp" style="background-color: transparent; color: #900b09;"&gt;CBool&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Boolean&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cbyte.asp" style="background-color: transparent; color: #900b09;"&gt;CByte&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Byte&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_ccur.asp" style="background-color: transparent; color: #900b09;"&gt;CCur&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Currency&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cdate.asp" style="background-color: transparent; color: #900b09;"&gt;CDate&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts a valid date and time expression to the variant of subtype Date&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cdbl.asp" style="background-color: transparent; color: #900b09;"&gt;CDbl&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Double&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_chr.asp" style="background-color: transparent; color: #900b09;"&gt;Chr&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts the specified ANSI code to a character&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cint.asp" style="background-color: transparent; color: #900b09;"&gt;CInt&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Integer&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_clng.asp" style="background-color: transparent; color: #900b09;"&gt;CLng&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Long&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_csng.asp" style="background-color: transparent; color: #900b09;"&gt;CSng&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype Single&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cstr.asp" style="background-color: transparent; color: #900b09;"&gt;CStr&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts an expression to a variant of subtype String&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_hex.asp" style="background-color: transparent; color: #900b09;"&gt;Hex&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the hexadecimal value of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_oct.asp" style="background-color: transparent; color: #900b09;"&gt;Oct&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the octal value of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;table style="border: 0px; color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: left; width: 438px;"&gt;&lt;h2 style="background-color: transparent; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="format"&gt;Format Functions&lt;/a&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;td style="text-align: right; width: 186px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_formatcurrency.asp" style="background-color: transparent; color: #900b09;"&gt;FormatCurrency&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an expression formatted as a currency value&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_formatdatetime.asp" style="background-color: transparent; color: #900b09;"&gt;FormatDateTime&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an expression formatted as a date or time&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_formatnumber.asp" style="background-color: transparent; color: #900b09;"&gt;FormatNumber&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an expression formatted as a number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_formatpercent.asp" style="background-color: transparent; color: #900b09;"&gt;FormatPercent&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an expression formatted as a percentage&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;table style="border: 0px; color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: left; width: 438px;"&gt;&lt;h2 style="background-color: transparent; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="math"&gt;Math Functions&lt;/a&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;td style="text-align: right; width: 186px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_abs.asp" style="background-color: transparent; color: #900b09;"&gt;Abs&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the absolute value of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_atn.asp" style="background-color: transparent; color: #900b09;"&gt;Atn&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the arctangent of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_cos.asp" style="background-color: transparent; color: #900b09;"&gt;Cos&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the cosine of a specified number (angle)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_exp.asp" style="background-color: transparent; color: #900b09;"&gt;Exp&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns&amp;nbsp;&lt;i&gt;e&lt;/i&gt;&amp;nbsp;raised to a power&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_hex.asp" style="background-color: transparent; color: #900b09;"&gt;Hex&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the hexadecimal value of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_int.asp" style="background-color: transparent; color: #900b09;"&gt;Int&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the integer part of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_fix.asp" style="background-color: transparent; color: #900b09;"&gt;Fix&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the integer part of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_log.asp" style="background-color: transparent; color: #900b09;"&gt;Log&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the natural logarithm of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_oct.asp" style="background-color: transparent; color: #900b09;"&gt;Oct&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the octal value of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_rnd.asp" style="background-color: transparent; color: #900b09;"&gt;Rnd&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a random number less than 1 but greater or equal to 0&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_sgn.asp" style="background-color: transparent; color: #900b09;"&gt;Sgn&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an integer that indicates the sign of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_sin.asp" style="background-color: transparent; color: #900b09;"&gt;Sin&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the sine of a specified number (angle)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_sqr.asp" style="background-color: transparent; color: #900b09;"&gt;Sqr&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the square root of a specified number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_tan.asp" style="background-color: transparent; color: #900b09;"&gt;Tan&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the tangent of a specified number (angle)&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;table style="border: 0px; color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: left; width: 438px;"&gt;&lt;h2 style="background-color: transparent; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="array"&gt;Array Functions&lt;/a&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;td style="text-align: right; width: 186px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_array.asp" style="background-color: transparent; color: #900b09;"&gt;Array&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a variant containing an array&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_filter.asp" style="background-color: transparent; color: #900b09;"&gt;Filter&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a zero-based array that contains a subset of a string array based on a filter criteria&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_isarray.asp" style="background-color: transparent; color: #900b09;"&gt;IsArray&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a Boolean value that indicates whether a specified variable is an array&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_join.asp" style="background-color: transparent; color: #900b09;"&gt;Join&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a string that consists of a number of substrings in an array&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_lbound.asp" style="background-color: transparent; color: #900b09;"&gt;LBound&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the smallest subscript for the indicated dimension of an array&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_split.asp" style="background-color: transparent; color: #900b09;"&gt;Split&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a zero-based, one-dimensional array that contains a specified number of substrings&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_ubound.asp" style="background-color: transparent; color: #900b09;"&gt;UBound&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the largest subscript for the indicated dimension of an array&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;table style="border: 0px; color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: left; width: 438px;"&gt;&lt;h2 style="background-color: transparent; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="string"&gt;String Functions&lt;/a&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;td style="text-align: right; width: 186px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_instr.asp" style="background-color: transparent; color: #900b09;"&gt;InStr&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the position of the first occurrence of one string within another. The search begins at the first character of the string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_instrrev.asp" style="background-color: transparent; color: #900b09;"&gt;InStrRev&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the position of the first occurrence of one string within another. The search begins at the last character of the string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_lcase.asp" style="background-color: transparent; color: #900b09;"&gt;LCase&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts a specified string to lowercase&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_left.asp" style="background-color: transparent; color: #900b09;"&gt;Left&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a specified number of characters from the left side of a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_len.asp" style="background-color: transparent; color: #900b09;"&gt;Len&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the number of characters in a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_ltrim.asp" style="background-color: transparent; color: #900b09;"&gt;LTrim&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Removes spaces on the left side of a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_rtrim.asp" style="background-color: transparent; color: #900b09;"&gt;RTrim&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Removes spaces on the right side of a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_trim.asp" style="background-color: transparent; color: #900b09;"&gt;Trim&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Removes spaces on both the left and the right side of a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_mid.asp" style="background-color: transparent; color: #900b09;"&gt;Mid&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a specified number of characters from a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_replace.asp" style="background-color: transparent; color: #900b09;"&gt;Replace&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Replaces a specified part of a string with another string a specified number of times&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_right.asp" style="background-color: transparent; color: #900b09;"&gt;Right&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a specified number of characters from the right side of a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_space.asp" style="background-color: transparent; color: #900b09;"&gt;Space&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a string that consists of a specified number of spaces&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_strcomp.asp" style="background-color: transparent; color: #900b09;"&gt;StrComp&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Compares two strings and returns a value that represents the result of the comparison&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_string.asp" style="background-color: transparent; color: #900b09;"&gt;String&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a string that contains a repeating character of a specified length&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_strreverse.asp" style="background-color: transparent; color: #900b09;"&gt;StrReverse&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Reverses a string&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_ucase.asp" style="background-color: transparent; color: #900b09;"&gt;UCase&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Converts a specified string to uppercase&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;table style="border: 0px; color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: left; width: 438px;"&gt;&lt;h2 style="background-color: transparent; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
&lt;a href="" id="other"&gt;Other Functions&lt;/a&gt;&lt;/h2&gt;
&lt;/td&gt;&lt;td style="text-align: right; width: 186px;"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 196px;"&gt;Function&lt;/th&gt;&lt;th style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top; width: 423px;"&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_createobject.asp" style="background-color: transparent; color: #900b09;"&gt;CreateObject&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Creates an object of a specified type&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_eval.asp" style="background-color: transparent; color: #900b09;"&gt;Eval&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Evaluates an expression and returns the result&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_getlocale.asp" style="background-color: transparent; color: #900b09;"&gt;GetLocale&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current locale ID&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_getobject.asp" style="background-color: transparent; color: #900b09;"&gt;GetObject&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a reference to an automation object from a file&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_getref.asp" style="background-color: transparent; color: #900b09;"&gt;GetRef&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Allows you to connect a VBScript procedure to a DHTML event on your pages&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_inputbox.asp" style="background-color: transparent; color: #900b09;"&gt;InputBox&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Displays a dialog box, where the user can write some input and/or click on a button, and returns the contents&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_isempty.asp" style="background-color: transparent; color: #900b09;"&gt;IsEmpty&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a Boolean value that indicates whether a specified variable has been initialized or not&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_isnull.asp" style="background-color: transparent; color: #900b09;"&gt;IsNull&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a Boolean value that indicates whether a specified expression contains no valid data (Null)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_isnumeric.asp" style="background-color: transparent; color: #900b09;"&gt;IsNumeric&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a Boolean value that indicates whether a specified expression can be evaluated as a number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_isobject.asp" style="background-color: transparent; color: #900b09;"&gt;IsObject&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a Boolean value that indicates whether the specified expression is an automation object&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_loadpicture.asp" style="background-color: transparent; color: #900b09;"&gt;LoadPicture&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a picture object. Available only on 32-bit platforms&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_msgbox.asp" style="background-color: transparent; color: #900b09;"&gt;MsgBox&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Displays a message box, waits for the user to click a button, and returns a value that indicates which button the user clicked&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_rgb.asp" style="background-color: transparent; color: #900b09;"&gt;RGB&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a number that represents an RGB color value&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_round.asp" style="background-color: transparent; color: #900b09;"&gt;Round&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Rounds a number&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_scriptengine.asp" style="background-color: transparent; color: #900b09;"&gt;ScriptEngine&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the scripting language in use&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_scriptengine.asp" style="background-color: transparent; color: #900b09;"&gt;ScriptEngineBuildVersion&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the build version number of the scripting engine in use&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_scriptengine.asp" style="background-color: transparent; color: #900b09;"&gt;ScriptEngineMajorVersion&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the major version number of the scripting engine in use&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_scriptengine.asp" style="background-color: transparent; color: #900b09;"&gt;ScriptEngineMinorVersion&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the minor version number of the scripting engine in use&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_setlocale.asp" style="background-color: transparent; color: #900b09;"&gt;SetLocale&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Sets the locale ID and returns the previous locale ID&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_typename.asp" style="background-color: transparent; color: #900b09;"&gt;TypeName&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the subtype of a specified variable&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/vbscript/func_vartype.asp" style="background-color: transparent; color: #900b09;"&gt;VarType&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a value that indicates the subtype of a specified variable&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-9032275644465523761?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/9032275644465523761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/vbscript-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9032275644465523761?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9032275644465523761?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/vbscript-functions.html' title='VBScript Functions'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkMBSXo5cCp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-8329213448794118327</id><published>2012-07-05T23:00:00.002-07:00</published><updated>2012-07-05T23:00:58.428-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:00:58.428-07:00</app:edited><title>SOAP Introduction</title><content type='html'>&lt;br /&gt;
&lt;div class="intro" style="background-color: transparent; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; margin-top: 10px;"&gt;
SOAP is a simple XML-based protocol to let applications exchange information over HTTP.&lt;/div&gt;
&lt;div class="intro" style="background-color: transparent; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; margin-top: 10px;"&gt;
Or more simply: SOAP is a protocol for accessing a Web Service.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

What You Should Already Know&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Before you study SOAP you should have a basic understanding of XML and XML Namespaces.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

What is SOAP?&lt;/h2&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;SOAP stands for Simple Object Access Protocol&lt;/li&gt;
&lt;li&gt;SOAP is a communication protocol&lt;/li&gt;
&lt;li&gt;SOAP is for communication between applications&lt;/li&gt;
&lt;li&gt;SOAP is a format for sending messages&lt;/li&gt;
&lt;li&gt;SOAP communicates via Internet&lt;/li&gt;
&lt;li&gt;SOAP is platform independent&lt;/li&gt;
&lt;li&gt;SOAP is language independent&lt;/li&gt;
&lt;li&gt;SOAP is based on XML&lt;/li&gt;
&lt;li&gt;SOAP is simple and extensible&lt;/li&gt;
&lt;li&gt;SOAP allows you to get around firewalls&lt;/li&gt;
&lt;li&gt;SOAP is a W3C recommendation&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

Why SOAP?&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
It is important for application development to allow Internet communication between programs.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Today's applications communicate using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and security problem; firewalls and proxy servers will normally block this kind of traffic.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

SOAP is a W3C Recommendation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
SOAP became a W3C Recommendation 24. June 2003.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-8329213448794118327?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/8329213448794118327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/soap-introduction.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/8329213448794118327?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/8329213448794118327?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/soap-introduction.html' title='SOAP Introduction'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkMARHg4eip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-3621256441308147222</id><published>2012-07-05T22:59:00.002-07:00</published><updated>2012-07-05T23:00:45.632-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T23:00:45.632-07:00</app:edited><title>Introduction to WSDL</title><content type='html'>&lt;br /&gt;
&lt;div class="intro" style="background-color: transparent; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; margin-top: 10px;"&gt;
WSDL is an XML-based language for describing Web services and how to access them.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

What You Should Already Know&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Before you continue you should have a basic understanding of the following:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;XML&lt;/li&gt;
&lt;li&gt;XML Namespaces&lt;/li&gt;
&lt;li&gt;XML Schema&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

What is WSDL?&lt;/h2&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;WSDL stands for Web Services Description Language&lt;/li&gt;
&lt;li&gt;WSDL is written in XML&lt;/li&gt;
&lt;li&gt;WSDL is an XML document&lt;/li&gt;
&lt;li&gt;WSDL is used to describe Web services&lt;/li&gt;
&lt;li&gt;WSDL is also used to locate Web services&lt;/li&gt;
&lt;li&gt;WSDL is a W3C recommendation&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

WSDL Describes Web Services&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
WSDL stands for Web Services Description Language.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
WSDL is a document written in XML. The document describes a Web service. It specifies the location of the service and the operations (or methods) the service exposes.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

WSDL is a W3C Recommendation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
WSDL became a W3C Recommendation 26. June 2007.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-3621256441308147222?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/3621256441308147222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/introduction-to-wsdl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3621256441308147222?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3621256441308147222?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/introduction-to-wsdl.html' title='Introduction to WSDL'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUQBRnc4fip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-5309281963071216247</id><published>2012-07-05T22:42:00.002-07:00</published><updated>2012-07-05T22:42:37.936-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T22:42:37.936-07:00</app:edited><title>PHP If...Else Statements</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Conditional Statements&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Very often when you write code, you want to perform different actions for different decisions.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
You can use conditional statements in your code to do this.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
In PHP we have the following conditional statements:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;&lt;b&gt;if statement&lt;/b&gt;&amp;nbsp;- use this statement to execute some code only if a specified condition is true&lt;/li&gt;
&lt;li&gt;&lt;b&gt;if...else statement&lt;/b&gt;&amp;nbsp;- use this statement to execute some code if a condition is true and another code if the condition is false&lt;/li&gt;
&lt;li&gt;&lt;b&gt;if...elseif....else statement&lt;/b&gt;&amp;nbsp;- use this statement to select one of several blocks of code to be executed&lt;/li&gt;
&lt;li&gt;&lt;b&gt;switch statement&lt;/b&gt;&amp;nbsp;- use this statement to select one of many blocks of code to be executed&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
The if Statement&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Use the if statement to execute some code only if a specified condition is true.&lt;/div&gt;
&lt;h3 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; font-weight: normal;"&gt;
Syntax&lt;/h3&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
if (&lt;i&gt;condition&lt;/i&gt;)&amp;nbsp;&lt;i&gt;code to be executed if condition is true;&lt;/i&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The following example will output "Have a nice weekend!" if the current day is Friday:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri") echo "Have a nice weekend!";&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Notice that there is no ..else.. in this syntax. The code is executed&amp;nbsp;&lt;b&gt;only if the specified condition is true&lt;/b&gt;.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
The if...else Statement&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Use the if....else statement to execute some code if a condition is true and another code if a condition is false.&lt;/div&gt;
&lt;h3 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; font-weight: normal;"&gt;
Syntax&lt;/h3&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
if (&lt;i&gt;condition&lt;/i&gt;)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;i&gt;code to be executed if condition is true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/i&gt;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;i&gt;code to be executed if condition is false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/i&gt;}&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; font-weight: normal;"&gt;
Example&lt;/h3&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The following example will output "Have a nice weekend!" if the current day is Friday, otherwise it will output "Have a nice day!":&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri")&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Have a nice weekend!";&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Have a nice day!";&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
The&amp;nbsp;&lt;b&gt;if...elseif....else&lt;/b&gt;&amp;nbsp;Statement&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Use the if....elseif...else statement to select one of several blocks of code to be executed.&lt;/div&gt;
&lt;h3 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; font-weight: normal;"&gt;
Syntax&lt;/h3&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
if (&lt;i&gt;condition&lt;/i&gt;)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;i&gt;code to be executed if condition is true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/i&gt;}&lt;br /&gt;elseif (&lt;i&gt;condition&lt;/i&gt;)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;i&gt;code to be executed if condition is true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;/i&gt;}&lt;i&gt;&lt;br /&gt;&lt;/i&gt;else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;i&gt;code to be executed if condition is false;&lt;/i&gt;&amp;nbsp; }&lt;/div&gt;
&lt;/div&gt;
&lt;h3 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; font-weight: normal;"&gt;
Example&lt;/h3&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The following example will output "Have a nice weekend!" if the current day is Friday, and "Have a nice Sunday!" if the current day is Sunday. Otherwise it will output "Have a nice day!":&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$d=date("D");&lt;br /&gt;if ($d=="Fri")&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Have a nice weekend!";&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;elseif ($d=="Sun")&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Have a nice Sunday!";&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Have a nice day!";&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-5309281963071216247?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/5309281963071216247/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-ifelse-statements.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/5309281963071216247?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/5309281963071216247?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-ifelse-statements.html' title='PHP If...Else Statements'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUUMQXgzcSp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-3886467561980802873</id><published>2012-07-05T22:41:00.000-07:00</published><updated>2012-07-05T22:41:20.689-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T22:41:20.689-07:00</app:edited><title>PHP File Upload</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Create an Upload-File Form&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
To allow users to upload files from a form can be very useful.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Look at the following HTML form for uploading files:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;form action="upload_file.php" method="post"&lt;br /&gt;enctype="multipart/form-data"&amp;gt;&lt;br /&gt;&amp;lt;label for="file"&amp;gt;Filename:&amp;lt;/label&amp;gt;&lt;br /&gt;&amp;lt;input type="file" name="file" id="file" /&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" name="submit" value="Submit" /&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Notice the following about the HTML form above:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;The enctype attribute of the &amp;lt;form&amp;gt; tag specifies which content-type to use when submitting the form. "multipart/form-data" is used when a form requires binary data, like the contents of a file, to be uploaded&lt;/li&gt;
&lt;li&gt;The type="file" attribute of the &amp;lt;input&amp;gt; tag specifies that the input should be processed as a file. For example, when viewed in a browser, there will be a browse-button next to the input field&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;Allowing users to upload files is a big security risk. Only permit trusted users to perform file uploads.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Create The Upload Script&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The "upload_file.php" file contains the code for uploading a file:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;?php&lt;br /&gt;if ($_FILES["file"]["error"] &amp;gt; 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Error: " . $_FILES["file"]["error"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Upload: " . $_FILES["file"]["name"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Type: " . $_FILES["file"]["type"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Stored in: " . $_FILES["file"]["tmp_name"];&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;?&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
By using the global PHP $_FILES array you can upload files from a client computer to the remote server.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The first parameter is the form's input name and the second index can be either "name", "type", "size", "tmp_name" or "error". Like this:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;$_FILES["file"]["name"] - the name of the uploaded file&lt;/li&gt;
&lt;li&gt;$_FILES["file"]["type"] - the type of the uploaded file&lt;/li&gt;
&lt;li&gt;$_FILES["file"]["size"] - the size in bytes of the uploaded file&lt;/li&gt;
&lt;li&gt;$_FILES["file"]["tmp_name"] - the name of the temporary copy of the file stored on the server&lt;/li&gt;
&lt;li&gt;$_FILES["file"]["error"] - the error code resulting from the file upload&lt;/li&gt;
&lt;/ul&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
This is a very simple way of uploading files. For security reasons, you should add restrictions on what the user is allowed to upload.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Restrictions on Upload&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
In this script we add some restrictions to the file upload. The user may only upload .gif or .jpeg files and the file size must be under 20 kb:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;?php&lt;br /&gt;if ((($_FILES["file"]["type"] == "image/gif")&lt;br /&gt;|| ($_FILES["file"]["type"] == "image/jpeg")&lt;br /&gt;|| ($_FILES["file"]["type"] == "image/pjpeg"))&lt;br /&gt;&amp;amp;&amp;amp; ($_FILES["file"]["size"] &amp;lt; 20000))&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;if ($_FILES["file"]["error"] &amp;gt; 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Error: " . $_FILES["file"]["error"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Upload: " . $_FILES["file"]["name"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Type: " . $_FILES["file"]["type"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Stored in: " . $_FILES["file"]["tmp_name"];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Invalid file";&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;?&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;For IE to recognize jpg files the type must be pjpeg, for FireFox it must be jpeg.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Saving the Uploaded File&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The examples above create a temporary copy of the uploaded files in the PHP temp folder on the server.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The temporary copied files disappears when the script ends. To store the uploaded file we need to copy it to a different location:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;?php&lt;br /&gt;if ((($_FILES["file"]["type"] == "image/gif")&lt;br /&gt;|| ($_FILES["file"]["type"] == "image/jpeg")&lt;br /&gt;|| ($_FILES["file"]["type"] == "image/pjpeg"))&lt;br /&gt;&amp;amp;&amp;amp; ($_FILES["file"]["size"] &amp;lt; 20000))&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;if ($_FILES["file"]["error"] &amp;gt; 0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Return Code: " . $_FILES["file"]["error"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Upload: " . $_FILES["file"]["name"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Type: " . $_FILES["file"]["type"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb&amp;lt;br /&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Temp file: " . $_FILES["file"]["tmp_name"] . "&amp;lt;br /&amp;gt;";&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (file_exists("upload/" . $_FILES["file"]["name"]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo $_FILES["file"]["name"] . " already exists. ";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;move_uploaded_file($_FILES["file"]["tmp_name"],&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"upload/" . $_FILES["file"]["name"]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Stored in: " . "upload/" . $_FILES["file"]["name"];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Invalid file";&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;?&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The script above checks if the file already exists, if it does not, it copies the file to the specified folder.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;This example saves the file to a new folder called "upload"&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-3886467561980802873?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/3886467561980802873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-file-upload.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3886467561980802873?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3886467561980802873?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-file-upload.html' title='PHP File Upload'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUUBQX8zfip7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-3500568453477089163</id><published>2012-07-05T22:40:00.002-07:00</published><updated>2012-07-05T22:40:50.186-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T22:40:50.186-07:00</app:edited><title>HP Secure E-mails</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP E-mail Injections&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
First, look at the PHP code from the previous chapter:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;if (isset($_REQUEST['email']))&lt;br /&gt;//if "email" is filled out, send email&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;//send email&lt;br /&gt;&amp;nbsp;&amp;nbsp;$email = $_REQUEST['email'] ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$subject = $_REQUEST['subject'] ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$message = $_REQUEST['message'] ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;mail("someone@example.com", "Subject: $subject",&lt;br /&gt;&amp;nbsp;&amp;nbsp;$message, "From: $email" );&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "Thank you for using our mail form";&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;else&lt;br /&gt;//if "email" is not filled out, display the form&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "&amp;lt;form method='post' action='mailform.php'&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Email: &amp;lt;input name='email' type='text' /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Subject: &amp;lt;input name='subject' type='text' /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Message:&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;textarea name='message' rows='15' cols='40'&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/textarea&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;input type='submit' /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/form&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The problem with the code above is that unauthorized users can insert data into the mail headers via the input form.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
What happens if the user adds the following text to the email input field in the form?&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
someone@example.com%0ACc:person2@example.com&lt;br /&gt;%0ABcc:person3@example.com,person3@example.com,&lt;br /&gt;anotherperson4@example.com,person5@example.com&lt;br /&gt;%0ABTo:person6@example.com&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The mail() function puts the text above into the mail headers as usual, and now the header has an extra Cc:, Bcc:, and To: field. When the user clicks the submit button, the e-mail will be sent to all of the addresses above!&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Stopping E-mail Injections&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The best way to stop e-mail injections is to validate the input.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The code below is the same as in the previous chapter, but now we have added an input validator that checks the email field in the form:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;function spamcheck($field)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;//filter_var() sanitizes the e-mail&lt;br /&gt;&amp;nbsp;&amp;nbsp;//address using FILTER_SANITIZE_EMAIL&lt;br /&gt;&amp;nbsp;&amp;nbsp;$field=filter_var($field, FILTER_SANITIZE_EMAIL);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;//filter_var() validates the e-mail&lt;br /&gt;&amp;nbsp;&amp;nbsp;//address using FILTER_VALIDATE_EMAIL&lt;br /&gt;&amp;nbsp;&amp;nbsp;if(filter_var($field, FILTER_VALIDATE_EMAIL))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return TRUE;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return FALSE;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;if (isset($_REQUEST['email']))&lt;br /&gt;&amp;nbsp;&amp;nbsp;{//if "email" is filled out, proceed&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;//check if the email address is invalid&lt;br /&gt;&amp;nbsp;&amp;nbsp;$mailcheck = spamcheck($_REQUEST['email']);&lt;br /&gt;&amp;nbsp;&amp;nbsp;if ($mailcheck==FALSE)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Invalid input";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{//send email&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$email = $_REQUEST['email'] ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$subject = $_REQUEST['subject'] ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$message = $_REQUEST['message'] ;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;mail("someone@example.com", "Subject: $subject",&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;$message, "From: $email" );&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;echo "Thank you for using our mail form";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;{//if "email" is not filled out, display the form&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo "&amp;lt;form method='post' action='mailform.php'&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Email: &amp;lt;input name='email' type='text' /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Subject: &amp;lt;input name='subject' type='text' /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;Message:&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;textarea name='message' rows='15' cols='40'&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/textarea&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;input type='submit' /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/form&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
In the code above we use PHP filters to validate input:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;The FILTER_SANITIZE_EMAIL filter removes all illegal e-mail characters from a string&lt;/li&gt;
&lt;li&gt;The FILTER_VALIDATE_EMAIL filter validates value as an e-mail address&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-3500568453477089163?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/3500568453477089163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/hp-secure-e-mails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3500568453477089163?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3500568453477089163?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/hp-secure-e-mails.html' title='HP Secure E-mails'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEABSHw9eip7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-9024928093383287785</id><published>2012-07-05T20:52:00.000-07:00</published><updated>2012-07-05T20:52:39.262-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:52:39.262-07:00</app:edited><title>JavaScript Form Validation</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

JavaScript Form Validation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
JavaScript can be used to validate data in HTML forms before sending off the content to a server.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Form data that typically are checked by a JavaScript could be:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;has the user left required fields empty?&lt;/li&gt;
&lt;li&gt;has the user entered a valid e-mail address?&lt;/li&gt;
&lt;li&gt;has the user entered a valid date?&lt;/li&gt;
&lt;li&gt;has the user entered text in a numeric field?&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

Required Fields&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The function below checks if a field has been left empty. If the field is blank, an alert box alerts a message, the function returns false, and the form will not be submitted:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
function validateForm()&lt;br /&gt;
{&lt;br /&gt;
var x=document.forms["myForm"]["fname"].value;&lt;br /&gt;
if (x==null || x=="")&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; alert("First name must be filled out");&lt;br /&gt;
&amp;nbsp; return false;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The function above could be called when a form is submitted:&lt;/div&gt;
&lt;div class="example" style="background-color: #e5eecc; background-image: url(http://www.w3schools.com/images/bgfadegreen.gif); background-repeat: repeat no-repeat; border: 1px solid rgb(212, 212, 212); clear: both; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 8px; width: 616px;"&gt;
&lt;h2 class="example" style="background-color: transparent; color: #617f10; font-size: 14px; font-weight: normal; margin-bottom: 10px; margin-top: 0px;"&gt;

Example&lt;/h2&gt;
&lt;div class="example_code notranslate" style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 606px;"&gt;
&amp;lt;form name="myForm" action="demo_form.asp" onsubmit="return validateForm()" method="post"&amp;gt;&lt;br /&gt;
First name: &amp;lt;input type="text" name="fname"&amp;gt;&lt;br /&gt;
&amp;lt;input type="submit" value="Submit"&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

E-mail Validation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The function below checks if the content has the general syntax of an email.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
This means that the input data must contain an @ sign and at least one dot (.). Also, the @ must not be the first character of the email address, and the last dot must be present after the @ sign, and minimum 2 characters before the end:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
function validateForm()&lt;br /&gt;
{&lt;br /&gt;
var x=document.forms["myForm"]["email"].value;&lt;br /&gt;
var atpos=x.indexOf("@");&lt;br /&gt;
var dotpos=x.lastIndexOf(".");&lt;br /&gt;
if (atpos&amp;lt;1 || dotpos&amp;lt;atpos+2 || dotpos+2&amp;gt;=x.length)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; alert("Not a valid e-mail address");&lt;br /&gt;
&amp;nbsp; return false;&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The function above could be called when a form is submitted:&lt;/div&gt;
&lt;div class="example" style="background-color: #e5eecc; background-image: url(http://www.w3schools.com/images/bgfadegreen.gif); background-repeat: repeat no-repeat; border: 1px solid rgb(212, 212, 212); clear: both; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 8px; width: 616px;"&gt;
&lt;h2 class="example" style="background-color: transparent; color: #617f10; font-size: 14px; font-weight: normal; margin-bottom: 10px; margin-top: 0px;"&gt;

Example&lt;/h2&gt;
&lt;div class="example_code notranslate" style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 606px;"&gt;
&amp;lt;form name="myForm" action="demo_form.asp" onsubmit="return validateForm();" method="post"&amp;gt;&lt;br /&gt;
Email: &amp;lt;input type="text" name="email"&amp;gt;&lt;br /&gt;
&amp;lt;input type="submit" value="Submit"&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-9024928093383287785?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/9024928093383287785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/javascript-form-validation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9024928093383287785?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9024928093383287785?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/javascript-form-validation.html' title='JavaScript Form Validation'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEACSX0_eip7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-9195052899937532454</id><published>2012-07-05T20:51:00.002-07:00</published><updated>2012-07-05T20:52:48.342-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:52:48.342-07:00</app:edited><title>JavaScript Cookies</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

What is a Cookie?&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
A cookie is a variable that is stored on the visitor's computer. Each time the same computer requests a page with a browser, it will send the cookie too. With JavaScript, you can both create and retrieve cookie values.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Examples of cookies:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;Name cookie - The first time a visitor arrives to your web page, he or she must fill in her/his name. The name is then stored in a cookie. Next time the visitor arrives at your page, he or she could get a welcome message like "Welcome John Doe!" The name is retrieved from the stored cookie&lt;/li&gt;
&lt;li&gt;Date cookie - The first time a visitor arrives to your web page, the current date is stored in a cookie. Next time the visitor arrives at your page, he or she could get a message like "Your last visit was on Tuesday August 11, 2005!" The date is retrieved from the stored cookie&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;

Create and Store a Cookie&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
In this example we will create a cookie that stores the name of a visitor. The first time a visitor arrives to the web page, he or she will be asked to&amp;nbsp; fill in her/his name. The name is then stored in a cookie. The next time the visitor arrives at the same page, he or she will get welcome message.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
First, we create a function that stores the name of the visitor in a cookie variable:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
function setCookie(c_name,value,exdays)&lt;br /&gt;
{&lt;br /&gt;
var exdate=new Date();&lt;br /&gt;
exdate.setDate(exdate.getDate() + exdays);&lt;br /&gt;
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());&lt;br /&gt;
document.cookie=c_name + "=" + c_value;&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The parameters of the function above hold the name of the cookie, the value of the cookie, and the number of days until the cookie expires.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
In the function above we first convert the number of days to a valid date, then we add the number of days until the cookie should expire. After that we store the cookie name, cookie value and the expiration date in the document.cookie object.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Then, we create another function that returns a specified cookie:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
function getCookie(c_name)&lt;br /&gt;
{&lt;br /&gt;
var i,x,y,ARRcookies=document.cookie.split(";");&lt;br /&gt;
for (i=0;i&amp;lt;ARRcookies.length;i++)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp; x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));&lt;br /&gt;
&amp;nbsp; y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);&lt;br /&gt;
&amp;nbsp; x=x.replace(/^\s+|\s+$/g,"");&lt;br /&gt;
&amp;nbsp; if (x==c_name)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return unescape(y);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The function above makes an array to retrieve cookie names and values, then it checks if the specified cookie exists, and returns the cookie value.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Last, we create the function that displays a welcome message if the cookie is set, and if the cookie is not set it will display a prompt box, asking for the name of the user, and stores the username cookie for 365 days, by calling the setCookie function:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
function checkCookie()&lt;br /&gt;
{&lt;br /&gt;
var username=getCookie("username");&lt;br /&gt;
&amp;nbsp; if (username!=null &amp;amp;&amp;amp; username!="")&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; alert("Welcome again " + username);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; username=prompt("Please enter your name:","");&lt;br /&gt;
&amp;nbsp; if (username!=null &amp;amp;&amp;amp; username!="")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; setCookie("username",username,365);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
All together now:&lt;/div&gt;
&lt;div class="example" style="background-color: #e5eecc; background-image: url(http://www.w3schools.com/images/bgfadegreen.gif); background-repeat: repeat no-repeat; border: 1px solid rgb(212, 212, 212); clear: both; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 8px; width: 616px;"&gt;
&lt;h2 class="example" style="background-color: transparent; color: #617f10; font-size: 14px; font-weight: normal; margin-bottom: 10px; margin-top: 0px;"&gt;

Example&lt;/h2&gt;
&lt;div class="example_code notranslate" style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 606px;"&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;head&amp;gt;&lt;br /&gt;
&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;
function getCookie(c_name)&lt;br /&gt;
{&lt;br /&gt;
var i,x,y,ARRcookies=document.cookie.split(";");&lt;br /&gt;
for (i=0;i&amp;lt;ARRcookies.length;i++)&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));&lt;br /&gt;
&amp;nbsp; y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);&lt;br /&gt;
&amp;nbsp; x=x.replace(/^\s+|\s+$/g,"");&lt;br /&gt;
&amp;nbsp; if (x==c_name)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; return unescape(y);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function setCookie(c_name,value,exdays)&lt;br /&gt;
{&lt;br /&gt;
var exdate=new Date();&lt;br /&gt;
exdate.setDate(exdate.getDate() + exdays);&lt;br /&gt;
var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString());&lt;br /&gt;
document.cookie=c_name + "=" + c_value;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function checkCookie()&lt;br /&gt;
{&lt;br /&gt;
var username=getCookie("username");&lt;br /&gt;
if (username!=null &amp;amp;&amp;amp; username!="")&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; alert("Welcome again " + username);&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp; username=prompt("Please enter your name:","");&lt;br /&gt;
&amp;nbsp; if (username!=null &amp;amp;&amp;amp; username!="")&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; setCookie("username",username,365);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
&amp;lt;/head&amp;gt;&lt;br /&gt;
&amp;lt;body onload="checkCookie()"&amp;gt;&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-9195052899937532454?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/9195052899937532454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/javascript-cookies.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9195052899937532454?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/9195052899937532454?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/javascript-cookies.html' title='JavaScript Cookies'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEEESXwyfyp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-4077455373052999008</id><published>2012-07-05T20:50:00.000-07:00</published><updated>2012-07-05T20:50:08.297-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:50:08.297-07:00</app:edited><title>JavaScript Tutorial</title><content type='html'>&lt;br /&gt;
&lt;h2&gt;
1. Introduction&lt;/h2&gt;
JavaScript is a simple programming language that can be written directly into HTML documents to allow for increased interactivity with the user. For example, JavaScript can be used to&amp;nbsp;&lt;a href="http://www.coolnerds.com/jscript/alancalc.htm"&gt;create online calculators&lt;/a&gt;&amp;nbsp;or show the&amp;nbsp;&lt;a href="http://javascript-world.com/scripts/clocks/access03.html"&gt;current date and time&lt;/a&gt;.&lt;a href="" name="2"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
2. Embedding JavaScript into your HTML document&lt;/h2&gt;
Browsers that recognize JavaScript also recognize the special &amp;lt;SCRIPT&amp;gt; ... &amp;lt;/SCRIPT&amp;gt; tag. This tag goes in the &amp;lt;HEAD&amp;gt; of your HTML document, along with your &amp;lt;TITLE&amp;gt; tag. Here's a short example:&lt;pre&gt;&amp;lt;HTML&amp;gt;
&amp;nbsp;
&amp;lt;HEAD&amp;gt; 
&amp;nbsp;
&amp;lt;TITLE&amp;gt;My JavaScript Page&amp;lt;/TITLE&amp;gt; 
&amp;nbsp;
&amp;lt;SCRIPT&amp;gt; 
(JavaScript code goes in here)


&amp;lt;/SCRIPT&amp;gt; 
&amp;nbsp;
&amp;lt;/HEAD&amp;gt; 
&amp;nbsp;
(rest of your HTML document goes here) &lt;/pre&gt;
To make an object (such as an image, a form button, or a hyperlink) on your page do something in response to a user action, you can add an additional attribute to the tag for that object. For example, the following HTML snippet pops up a thank you message when the user clicks on the link:&lt;br /&gt;
&lt;code&gt;&amp;lt;A HREF="http://www.cs.brown.edu/courses/bridge/" onClick="alert('Thanks for visiting the Bridge home page!')"&amp;gt;Bridge home page&amp;lt;/A&amp;gt;&lt;/code&gt;&lt;br /&gt;
Try it yourself! Just click on the following link:&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/"&gt;Bridge home page&lt;/a&gt;&lt;br /&gt;
You're familiar with the HREF="" attribute that specifies the URL that the link points to, but note the additional onClick="" attribute. The stuff between those quotation marks is JavaScript code, which in this case pops up an alert box with the specified message. (Don't worry if you don't understand the stuff between the quotation marks; you'll learn it later on. The important thing right now is to understand the additional attribute.)&lt;br /&gt;
Another point to recognize is that if a browser does not understand the &amp;lt;SCRIPT&amp;gt; tag, it will skip over it, and the text that is between the two tags (your code, basically) will appear on the screen as ordinary text. Since you want to create an HTML page that is viewable on all browsers, you would want to prevent this from happening.&lt;br /&gt;
To prevent this from happening, you should include the characters &amp;lt;!-- immediately following the &amp;lt;SCRIPT&amp;gt; tag and the characters --&amp;gt; immediately preceding the &amp;lt;/SCRIPT&amp;gt; tag. In HTML in general, using this set of characters allows you to write comments to yourself that the browser will not read or display on the page. Inside the JavaScript tags, the browser ignores these characters. By doing this, a non-JavaScript readable browser will see the comment notation and ignore the text between them (which is your code). Your code would then look like this:&lt;br /&gt;
&lt;code&gt;&amp;lt;HEAD&amp;gt;&lt;br /&gt;&amp;lt;SCRIPT&amp;gt;&lt;br /&gt;&amp;lt;!--&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;(Your code goes here...)&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;--&amp;gt;&lt;br /&gt;&amp;lt;/SCRIPT&amp;gt;&lt;br /&gt;&amp;lt;/HEAD&amp;gt;&lt;/code&gt;&lt;br /&gt;
&lt;a href="" name="3"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
3. Variables&lt;/h2&gt;
&lt;a href="" name="3.1"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
3.1. What are Variables?&lt;/h3&gt;
Variables are like storage units. You can create variables to hold values. It is ideal to name a variable something that is logical, so that you'll remember what you are using it for. For example, if you were writing a program to divide 2 numbers, it could be confusing if you called your variables numberOne, numberTwo, numberThree because you may forget which one is the divisor, which one is the dividend, and which one is the quotient. A more logical approach would be to name them just that: divisor, dividend, quotient.&lt;br /&gt;
It is important to know the proper syntax to which variables must conform:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;They must start with a letter or underscore ("_")&lt;/li&gt;
&lt;li&gt;Subsequent characters can also be digits (0-9) or letters (A-Z and/or a-z). Remember, JavaScript is case-sensitive. (That means that MyVariable and myVariable are two different names to JavaScript, because they have different capitalization.)&lt;/li&gt;
&lt;/ul&gt;
Some examples of legal names are&amp;nbsp;&lt;code&gt;Number_hits&lt;/code&gt;,&amp;nbsp;&lt;code&gt;temp99&lt;/code&gt;, and&amp;nbsp;&lt;code&gt;_name&lt;/code&gt;.&lt;br /&gt;
When you declare a variable by assignment outside of a function, it is called a global variable, because it is available everywhere in the current document. When you declare a variable within a function, it is called a local variable, because it is available only within the function. Using var is optional, but you need to use it if you have a variable that has been declared global and you want to re-declare it as a local variable inside a function.&lt;br /&gt;
Variables can store all kinds of data (see below,&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#3.2"&gt;Values of Variables&lt;/a&gt;, section 3.2). To assign a value to a variable, you use the following notation:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;dividend = 8;

divisor = 4;

myString = "I may want to use this message multiple times";
message = myString;

&lt;/pre&gt;
Let's say the main part of the function will be dividing the dividend by the divisor and storing that number in a variable called&amp;nbsp;&lt;code&gt;quotient&lt;/code&gt;. I can write this line of code in my program:&amp;nbsp;&lt;code&gt;quotient = divisor*dividend&lt;/code&gt;, and I have both stored the value of the quotient to the variable&amp;nbsp;&lt;code&gt;quotient&lt;/code&gt;&amp;nbsp;and I have declared the variable at the same time. If I had wanted to, I could have declared it along with my other assigned variables above, with a value of null. After executing the program, the value of&amp;nbsp;&lt;code&gt;quotient&lt;/code&gt;&amp;nbsp;will be 2.It is important to think about the design of your program before you begin. You should create the appropriate variables so that it makes your life easier when you go to write the program. For instance, if you know that you will be coding a lot of the same strings in a message, you may want to create a variable called&amp;nbsp;&lt;code&gt;message&lt;/code&gt;&amp;nbsp;and give it the value of your message. That way, when you call it in your program, you do not have to retype the same sentence over and over again, and if you want to change the content of that message, you only have to change it once -- in the variable declaration.&lt;a href="" name="3.2"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
3.2. Values of Variables&lt;/h3&gt;
JavaScript recognizes the following types of values:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Numbers, such as 42 or 3.14159&lt;/li&gt;
&lt;li&gt;Logical (Boolean) values, either true or false&lt;/li&gt;
&lt;li&gt;Strings, such as "Howdy!"&lt;/li&gt;
&lt;li&gt;null, a special keyword which refers to nothing&lt;/li&gt;
&lt;/ul&gt;
This relatively small set of types of values, or data types, enables you to perform useful functions with your applications. There is no explicit distinction between integer and real-valued numbers.&lt;br /&gt;
&lt;a href="" name="3.3"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
3.3. Data Type Conversion&lt;/h3&gt;
JavaScript is a loosely typed language. That means you do not have to specify the data type of a variable when you declare it, and data types are converted automatically as needed during script execution. So, for example, you could define a variable as follows:&lt;br /&gt;
&lt;code&gt;var answer = 42&lt;/code&gt;&lt;br /&gt;
And later, you could assign the same variable a string value, for example,&lt;br /&gt;
&lt;code&gt;answer = "Thanks for all the fish..."&lt;/code&gt;&lt;br /&gt;
Because JavaScript is loosely typed, this assignment does not cause an error message. However, this is not good coding! You should create variables for a specific type, such as an integer, string, or array, and be consistent in the values that you store in the variable. This prevents confusion when you are writing your program.&lt;br /&gt;
In expressions involving numeric and string values, JavaScript converts the numeric values to strings. For example, consider the following statements:&lt;br /&gt;
&lt;code&gt;x = "The answer is " + 42&lt;br /&gt;y = 42 + " is the answer."&lt;/code&gt;&lt;br /&gt;
(The + sign tells JavaScript to concatenate, or stick together, the two strings. For example, if you write:&lt;br /&gt;
&lt;code&gt;message = "Hello" + "World"&lt;/code&gt;&lt;br /&gt;
...then the variable&amp;nbsp;&lt;code&gt;message&lt;/code&gt;&amp;nbsp;becomes the string&amp;nbsp;&lt;code&gt;"Hello World"&lt;/code&gt;)&lt;br /&gt;
In the first statement, x becomes the string "The answer is 42." In the second, y becomes the string "42 is the answer."&lt;br /&gt;
&lt;a href="" name="4"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
4. Literals&lt;/h2&gt;
You use literals to represent values in JavaScript. These are fixed values, not variables, that you literally provide in your script. Examples of literals include: 1234, "This is a literal," and&amp;nbsp;&lt;code&gt;true&lt;/code&gt;.&lt;br /&gt;
&lt;a href="" name="4.1"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
4.1. Integers&lt;/h3&gt;
Integers can be expressed in decimal (base 10), hexadecimal (base 16), and octal (base 8). A decimal integer literal consists of a sequence of digits without a leading 0 (zero). A leading 0 (zero) on an integer literal indicates it is in octal; a leading 0x (or 0X) indicates hexadecimal. Hexadecimal integers can include digits (0-9) and the letters a-f and A-F. Octal integers can include only the digits 0-7.&lt;br /&gt;
Some examples of integer literals are: 42, 0xFFF, and -345.&lt;br /&gt;
&lt;a href="" name="4.2"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
4.2. Floating-point literals&lt;/h3&gt;
A floating-point literal can have the following parts: a decimal integer, a decimal point ("."), a fraction (another decimal number), an exponent, and a type suffix. The exponent part is an "e" or "E" followed by an integer, which can be signed (preceded by "+" or "-"). A floating-point literal must have at least one digit, plus either a decimal point or "e" (or "E").&lt;br /&gt;
Some examples of floating-point literals are 3.1415, -3.1E12, .1e12, and 2E-12&lt;br /&gt;
&lt;a href="" name="4.3"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
4.3. Boolean literals&lt;/h3&gt;
The Boolean type has two literal values: true and false.&lt;br /&gt;
&lt;a href="" name="4.4"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
4.4. String literals&lt;/h3&gt;
A string literal is zero or more characters enclosed in double (") or single (') quotation marks. A string must be delimited by quotation marks of the same type; that is, either both single quotation marks or double quotation marks. The following are examples of string literals:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;"blah"&lt;/li&gt;
&lt;li&gt;'blah'&lt;/li&gt;
&lt;li&gt;"1234"&lt;/li&gt;
&lt;li&gt;"one line \n another line"&lt;/li&gt;
&lt;/ul&gt;
In addition to ordinary characters, you can also include special characters in strings, as shown in the last element in the preceding list. The following table lists the special characters that you can use in JavaScript strings.&lt;br /&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th&gt;Character&lt;/th&gt;&lt;th&gt;Meaning&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;\b&lt;/td&gt;&lt;td&gt;backspace&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;\f&lt;/td&gt;&lt;td&gt;form feed&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;\n&lt;/td&gt;&lt;td&gt;new line&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;\r&lt;/td&gt;&lt;td&gt;carriage return&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;\t&lt;/td&gt;&lt;td&gt;tab&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;\\&lt;/td&gt;&lt;td&gt;backslash character&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;a href="" name="4.5"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
4.5. Escaping characters&lt;/h3&gt;
For characters not listed in the preceding table, a preceding backslash is ignored, with the exception of a quotation mark and the backslash character itself.&lt;br /&gt;
You can insert quotation marks inside strings by preceding them with a backslash. This is known as escaping the quotation marks. For example,&lt;br /&gt;
&lt;code&gt;var quote = "He read \"The Cremation of Sam McGee\" by R.W. Service."&lt;br /&gt;document.write(quote)&lt;/code&gt;&lt;br /&gt;
The result of this would be&lt;br /&gt;
&lt;br /&gt;
&lt;dd&gt;&lt;code&gt;He read "The Cremation of Sam McGee" by R.W. Service.&lt;/code&gt;&lt;/dd&gt;To include a literal backslash inside a string, you must escape the backslash character. For example, to assign the file path c:\temp to a string, use the following:&lt;br /&gt;
&lt;code&gt;var home = "c:\\temp"&lt;/code&gt;&lt;a href="" name="5"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
5. Arrays&lt;/h2&gt;
An Array is an object which stores multiple values and has various properties. When you declare an array, you must declare the name of it, and then how many values it will need to store. It is important to realize that each value is stored in one of the elements of the array, and these elements start at 0. This means that the first value in the array is really in the 0 element, and the second number is really in the first element. So for example, if I want to store 10 values in my array, the storage elements would range from 0-9.&lt;br /&gt;
The notation for declaring an array looks like this:&lt;br /&gt;
&lt;code&gt;myArray = new Array(10); foo = new Array(5);&lt;/code&gt;&lt;br /&gt;
Initially, all values are set to null. The notation for assigning values to each unit within the array looks like this:&lt;br /&gt;
&lt;code&gt;myArray[0] = 56;&lt;br /&gt;myArray[1] = 23;&lt;br /&gt;myArray[9] = 44;&amp;nbsp;&lt;/code&gt;&lt;br /&gt;
By putting the element number in brackets [ ] after the array's name, you can assign a value to that specific element. Note that there is no such element, in this example, as&amp;nbsp;&lt;code&gt;myArray[10]&lt;/code&gt;. Remember, the elements begin at&amp;nbsp;&lt;code&gt;myArray[0]&lt;/code&gt;&amp;nbsp;and go up to&amp;nbsp;&lt;code&gt;myArray[9]&lt;/code&gt;.&lt;br /&gt;
In JavaScript, however, an array's length increases if you assign a value to an element higher than the current length of the array. The following code creates an array of length zero, then assigns a value to element 99. This changes the length of the array to 100.&lt;br /&gt;
&lt;code&gt;colors = new Array();&lt;br /&gt;colors[99] = "midnightblue";&lt;/code&gt;&lt;br /&gt;
Be careful to reference the right cells, and make sure to reference them properly!&lt;br /&gt;
Because arrays are objects, they have certain properties that are pre-defined for your convenience. For example, you can find out how many elements&amp;nbsp;&lt;code&gt;myArray&lt;/code&gt;&amp;nbsp;has and store this value in a variable called&lt;code&gt;numberOfElements&lt;/code&gt;&amp;nbsp;by using:&lt;br /&gt;
&lt;code&gt;numberOfElements = myArray.length;&lt;/code&gt;&lt;br /&gt;
&lt;a href="" name="6"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
6. Operators&lt;/h2&gt;
JavaScript has many different operators, which come in several flavors, including binary. This tutorial will cover some of the most essential assignment, comparison, arithmetic and logical operators.&lt;br /&gt;
&lt;a href="" name="6.1"&gt;&lt;/a&gt;&lt;h3&gt;
6.1. Selected assignment operators&lt;/h3&gt;
An assignment operator assigns a value to its left operand based on the value of its right operand. The basic assignment operator is equal (=), which assigns the value of its right operand to its left operand. The other operators are shorthand for standard operations. Find an abridged list of shorthand operators below:&lt;br /&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Shorthand operator&lt;/td&gt;&lt;td&gt;Meaning&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;x += y&lt;/td&gt;&lt;td&gt;x = x + y&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;x -= y&lt;/td&gt;&lt;td&gt;x = x - y&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;x *= y&lt;/td&gt;&lt;td&gt;x = x * y&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;x /= y&lt;/td&gt;&lt;td&gt;x = x / y&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
Note that the = sign here refers to assignment, not "equals" in the mathematical sense. So if x is 5 and y is 7,&amp;nbsp;&lt;code&gt;x = x + y&lt;/code&gt;&amp;nbsp;is not a valid mathematical expression, but it works in JavaScript. It makes x the value of x + y (12 in this case).&lt;br /&gt;
&lt;b&gt;EXAMPLES:&lt;/b&gt;&amp;nbsp;If x = 10 and y = 2, x += y would mean x = x + y, hence x's new value would be the sum of x's previous value plus y's previous value. Upon executing x = x + y = 10 + 2, x's new value becomes 12, while y's new value remains equal to its old value. Similarly, x -= y would change x's value to 8. Calculate x *= y and x /= y to get a better idea of how these operators work.&lt;br /&gt;
&lt;a href="" name="6.2"&gt;&lt;/a&gt;&lt;h3&gt;
6.2. Comparison operators&lt;/h3&gt;
A comparison operator compares its operands and returns a logical value based on whether the comparison is true or not. The operands can be numerical or string values. When used on string values, the comparisons are based on the standard lexicographical ordering. They are described in the following table.&lt;br /&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Operator&lt;/td&gt;&lt;td&gt;Description&lt;/td&gt;&lt;td&gt;Example&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Equal (= =)&lt;/td&gt;&lt;td&gt;Evaluates to true if the operands are equal.&lt;/td&gt;&lt;td&gt;x == y evaluates to true if x equals y.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Not equal (!=)&lt;/td&gt;&lt;td&gt;Evaluates to true if the operands are not equal.&lt;/td&gt;&lt;td&gt;x != y evaluates to true if x is not equal to y.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Greater than (&amp;gt;)&lt;/td&gt;&lt;td&gt;Evaluates to true if left operand is greater than right operand.&lt;/td&gt;&lt;td&gt;x &amp;gt; y evaluates to true if x is greater than y.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Greater than or equal (&amp;gt;=)&lt;/td&gt;&lt;td&gt;Evaluates to true if left operand is greater than or equal to right operand.&lt;/td&gt;&lt;td&gt;x &amp;gt;= y evaluates to true if x is greater than or equal to y.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Less than (&amp;lt;)&lt;/td&gt;&lt;td&gt;Evaluates to true if left operand is less than right operand.&lt;/td&gt;&lt;td&gt;x &amp;lt; y evaluates to true if x is less than y.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;Less than or equal (&amp;lt;=)&lt;/td&gt;&lt;td&gt;Evaluates to true if left operand is less than or equal to right operand.&lt;/td&gt;&lt;td&gt;x &amp;lt;= y evaluates to true if x is less than or equal to y.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt;EXAMPLES:&lt;/b&gt;&amp;nbsp;5 == 5 would return TRUE. 5 != 5 would return FALSE. (The statement 'Five is not equal to five.' is patently false.) 5 &amp;lt;= 5 would return TRUE. (Five is less than or equal to five. More precisely, it's exactly equal to five, but JavaScript could care less about boring details like that.)&lt;br /&gt;
&lt;a href="" name="6.3"&gt;&lt;/a&gt;&lt;h3&gt;
6.3. Selected Arithmetic Operators&lt;/h3&gt;
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value. The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), division (/) and remainder (%). These operators work as they do in other programming languages, as well as in standard algebra.&lt;br /&gt;
Since programmers frequently need to add or subtract 1 from a variable, JavaScript has shortcuts for doing this. myVar++ adds one to the value of myVar, while myVar-- subtracts one from myVar.&lt;br /&gt;
&lt;b&gt;EXAMPLES:&lt;/b&gt;&amp;nbsp;Let x = 3.&amp;nbsp;&lt;code&gt;x++&lt;/code&gt;&amp;nbsp;bumps x up to 4, while&amp;nbsp;&lt;code&gt;x--&lt;/code&gt;&amp;nbsp;makes x equal to 2.&lt;br /&gt;
&lt;a href="" name="6.4"&gt;&lt;/a&gt;&lt;h3&gt;
6.4. Logical Operators&lt;/h3&gt;
Logical operators take Boolean (logical) values as operands and return a Boolean value. That is, they evaluate whether each subexpression within a Boolean expression is true or false, and then execute the operation on the respective truth values. Consider the following table:&lt;br /&gt;
&lt;table border="1"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;Operator&lt;/td&gt;&lt;td&gt;Usage&lt;/td&gt;&lt;td&gt;Description&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;and (&amp;amp;&amp;amp;)&lt;/td&gt;&lt;td&gt;expr1 &amp;amp;&amp;amp; expr2&lt;/td&gt;&lt;td&gt;True if both logical expressions expr1 and expr2 are true. False otherwise.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;or (||)&lt;/td&gt;&lt;td&gt;expr1 || expr2&lt;/td&gt;&lt;td&gt;True if either logical expression expr1 or expr2 is true. False if both expr1 and expr2 are false.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;not (!)&lt;/td&gt;&lt;td&gt;!expr&lt;/td&gt;&lt;td&gt;False if expr is true; true if expr is false.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;b&gt;EXAMPLES:&lt;/b&gt;&amp;nbsp;Since we have now learned to use the essential operators, we can use them in conjunction with one another. See if you can work out why the following examples resolve the way they do:&lt;br /&gt;
If x = 4 and y = 7, ((x + y + 2) == 13) &amp;amp;&amp;amp; (((x + y) / 2) == 2) returns FALSE.&lt;br /&gt;
If x = 4 and y = 7, ((y - x + 9) == 12) || ((x * y) == 2) returns TRUE.&lt;br /&gt;
If x = 4 and y = 7, !((x/2 + y) == 9) || ((x * (y/2)) == 2) returns FALSE.&lt;br /&gt;
&lt;a href="" name="7"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
7. Using JavaScript Objects&lt;/h2&gt;
When you load a document in your web browser, it creates a number of JavaScript objects with properties and capabilities based on the HTML in the document and other pertinent information. These objects exist in a hierarchy that reflects the structure of the HTML page itself.&lt;br /&gt;
The pre-defined objects that are most commonly used are the&amp;nbsp;&lt;code&gt;window&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;document&lt;/code&gt;&amp;nbsp;objects. The&amp;nbsp;&lt;code&gt;window&lt;/code&gt;&amp;nbsp;has methods that allow you to create new windows with the&amp;nbsp;&lt;code&gt;open()&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;close()&lt;/code&gt;&amp;nbsp;methods. It also allows you to create message boxes using&amp;nbsp;&lt;code&gt;alert(), confirm(),&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;prompt()&lt;/code&gt;. Each displays the text that you put between the parentheses. For example, the following code:&lt;br /&gt;
&lt;code&gt;alert("This is an alert box")&lt;/code&gt;&lt;br /&gt;
...pops up an alert box displaying the given message. Try it yourself by clicking on&amp;nbsp;&lt;a href=""&gt;this link&lt;/a&gt;.&lt;br /&gt;
The&amp;nbsp;&lt;code&gt;document&lt;/code&gt;&amp;nbsp;object models the HTML page. The&amp;nbsp;&lt;code&gt;document&lt;/code&gt;&amp;nbsp;object contains arrays which store all the components constituting the contents of your web page, such as images, links, and forms. You can access and call methods on these elements of your web page through the arrays.&lt;br /&gt;
The objects in this pre-defined hierarchy can be accessed and modified. To refer to specific properties, you must specify the property name and all its ancestors, spelling out the complete hierarchy until the&lt;code&gt;document&lt;/code&gt;&amp;nbsp;object. A period, '.', is used in between each object and the name of its property. Generally, a property / object gets its name from the NAME attribute of the HTML tag. For example, the following refers to the&amp;nbsp;&lt;i&gt;value&lt;/i&gt;&amp;nbsp;property of a text field named&amp;nbsp;&lt;i&gt;text1&lt;/i&gt;&amp;nbsp;in a form named&amp;nbsp;&lt;i&gt;myform&lt;/i&gt;&amp;nbsp;in the current document.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;document.myform.text1.value&lt;/pre&gt;
Form elements can also be accessed through the aforementioned&amp;nbsp;&lt;code&gt;forms&lt;/code&gt;&amp;nbsp;array of the&amp;nbsp;&lt;code&gt;document&lt;/code&gt;&amp;nbsp;object. In the above example, if the form named&amp;nbsp;&lt;i&gt;myform&lt;/i&gt;&amp;nbsp;was the first form on the page, and&amp;nbsp;&lt;i&gt;text1&lt;/i&gt;&amp;nbsp;was the third field in the form, the following also refers to that field's value property.&lt;pre&gt;document.forms[0].elements[2].value&lt;/pre&gt;
Functions (capabiltiies) of an object can similarly be accessed using the period notation. For example, the following instruction resets the 2nd form in the document.&lt;pre&gt;document.forms[2].reset();&lt;/pre&gt;
Click on one of the objects below to view the Netscape documentation on the specific properties and methods that that object has:&lt;br /&gt;
&lt;br /&gt;
&lt;center&gt;&lt;img border="0" src="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/nav_hier.gif" usemap="#nav_hier" /&gt;&lt;map name="nav_hier"&gt;&lt;/map&gt;&lt;/center&gt;&lt;a href="" name="8"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
8. Functions&lt;/h2&gt;
Functions are one of the fundamental building blocks in JavaScript. A function is a JavaScript procedure -- a set of statements that performs a specific task. A function definition has these basic parts:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;The function keyword&lt;/li&gt;
&lt;li&gt;A function name&lt;/li&gt;
&lt;li&gt;A comma-separated list of arguments to the function in parentheses&lt;/li&gt;
&lt;li&gt;The statements in the function in curly braces: { }&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="" name="8.1"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
8.1. Defining a Function&lt;/h3&gt;
When defining a function, it is&amp;nbsp;&lt;i&gt;very&lt;/i&gt;&amp;nbsp;important that you pay close attention to the syntax. Unlike HTML, JavaScript is case sensitive, and it is very important to remember to enclose a function within curly braces { }, separate parameters with commas, and use a semi-colon at the end of your line of code.&lt;br /&gt;
It's important to understand the difference between&amp;nbsp;&lt;i&gt;defining&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;calling&lt;/i&gt;&amp;nbsp;a function.&lt;br /&gt;
Defining the function names the function and specifies what to do when the function is called. You define a function within the &amp;lt;SCRIPT&amp;gt;...&amp;lt;/SCRIPT&amp;gt; tags within the &amp;lt;HEAD&amp;gt;...&amp;lt;/HEAD&amp;gt; tags. In defining a function, you must also declare the variables which you will be calling in that function.&lt;br /&gt;
Here's an example of&amp;nbsp;&lt;i&gt;defining&lt;/i&gt;&amp;nbsp;a function:&lt;br /&gt;
&lt;pre&gt;function popupalert() {

  alert('This is an alert box.');

}

&lt;/pre&gt;
&lt;br /&gt;
Notice the parentheses after the function name. It is imperative that you include these parentheses, even if they are empty. If you want to pass a&amp;nbsp;&lt;i&gt;parameter&lt;/i&gt;&amp;nbsp;into the function, you would include that parameter inside of the parentheses. A parameter is a bit of extra information that cn be different each time the function is run. It is stored in a variable and can be accessed just like any other variable. Here's an example of a function that takes a parameter:&lt;br /&gt;
&lt;pre&gt;function anotherAlert(word) {

  alert(word + ' is the word that you clicked on');

}

&lt;/pre&gt;
When you call this function, you need to pass a parameter (such as the word that the user clicked on) into the function. Then the function can use this information. You can pass in a different word as a parameter each time you call the function, and the alert box will change appropriately. You'll see how to pass a parameter a little later on.&lt;a href="" name="example1"&gt;&lt;/a&gt;You can pass in multiple parameters, by separating them with a comma. You would want to pass in a few parameters if you have more than one variable that you either want to change or use in your function. Here are two examples of passing in multiple parameters when you are defining the function:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;function secondAlert(word,password) {

  confirm(word + ' is the word that you clicked on. The

    secret password is ' + password);

}



function thirdAlert(word,password) {

  confirm(word + ' is the word you clicked on. Please

    take note of the password, ' + password);

}

&lt;/pre&gt;
You'll notice that the same parameters are passed into both of these functions. However, you can pass in whatever values you want to use (see this same&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#example"&gt;example below&lt;/a&gt;&amp;nbsp;in calling the function).&lt;a href="" name="8.2"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
8.2. Calling a Function&lt;/h3&gt;
Calling the function actually performs the specified actions. When you call a function, this is usually within the BODY of the HTML page, and you usually pass a parameter into the function. A parameter is a variable from outside of the defined function on which the function will act.&lt;br /&gt;
&lt;br /&gt;
Here's an example of&amp;nbsp;&lt;u&gt;calling&lt;/u&gt;&amp;nbsp;the same function:&lt;br /&gt;
&lt;code&gt;popupalert();&lt;/code&gt;For the other example, this is how you may call it:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;A HREF="#top" onClick="anotherAlert('top')"&amp;gt;top&amp;lt;/A&amp;gt;

&lt;/pre&gt;
This would bring you to the top of the page, and bring up an alert box that said: "top is the word you clicked on" Try it for yourself:&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#top"&gt;top&lt;/a&gt;&lt;br /&gt;
&lt;a href="" name="example"&gt;&lt;/a&gt;Here is the same example with multiple parameters that was&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#example1"&gt;shown above&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&amp;lt;A HREF="#top" onClick="secondAlert('awesome','pandas')"&amp;gt;awesome&amp;lt;/A&amp;gt;

&amp;lt;A HREF="#top" onClick="thirdAlert('computers','insert')"&amp;gt;computers&amp;lt;/A&amp;gt;



&lt;/pre&gt;
You'll notice in the code that different values for the variables&amp;nbsp;&lt;code&gt;word&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code&gt;password&lt;/code&gt;&amp;nbsp;are passed in. These values here are what the function will need to perform the actions in the function. Make sure that the values you pass in are in the correct order because the function will take them in and assign these values to the parameters in the parentheses of the function declaration. Once you pass values into your function, you can use them however you want within your function.&lt;br /&gt;
Try it for yourself:&lt;br /&gt;
When you click on the words below, a confirmation box will pop up and then the link will bring you to the top of the page.&lt;br /&gt;
&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#top"&gt;awesome&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html#top"&gt;computers&lt;/a&gt;&lt;br /&gt;
&lt;a href="" name="9"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
9. If/Else Statements&lt;/h2&gt;
&lt;tt&gt;if&lt;/tt&gt;&amp;nbsp;statements execute a set of commands if a specified condition is true. If the condition is false, another set of statements can be executed through the use of the&amp;nbsp;&lt;tt&gt;else&lt;/tt&gt;&amp;nbsp;keyword.&lt;br /&gt;
The main idea behind&amp;nbsp;&lt;tt&gt;if&lt;/tt&gt;&amp;nbsp;statements is embodied by the sentence: "If the weather's good tomorrow, we'll go out and have a picnic and Lisa will do cartwheels -- else, we'll stay in and Catherine will watch TV."&lt;br /&gt;
As you can see, the idea is quite intuitive and, surprisingly enough, so is the syntax:&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;if&lt;/b&gt; (&lt;i&gt;condition&lt;/i&gt;) {
 &lt;i&gt;statements1&lt;/i&gt;
}
&lt;/pre&gt;
-or-&lt;pre&gt;&lt;b&gt;if&lt;/b&gt; (&lt;i&gt;condition&lt;/i&gt;) {
 &lt;i&gt;statements1&lt;/i&gt;
}
&lt;b&gt;else&lt;/b&gt; {
 &lt;i&gt;statements2&lt;/i&gt;
}
&lt;/pre&gt;
(An&amp;nbsp;&lt;b&gt;if&lt;/b&gt;&amp;nbsp;statement does not require an&amp;nbsp;&lt;b&gt;else&lt;/b&gt;&amp;nbsp;statement following it, but an&amp;nbsp;&lt;b&gt;else&lt;/b&gt;&amp;nbsp;statement must be preceded by an&amp;nbsp;&lt;b&gt;if&lt;/b&gt;&amp;nbsp;statement.)&lt;br /&gt;
&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;can be any JavaScript expression that evaluates to true or false. Parentheses are required around the condition. If&amp;nbsp;&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;evaluates to true, the statements in&amp;nbsp;&lt;i&gt;statements1&lt;/i&gt;&amp;nbsp;are executed.&lt;br /&gt;
&lt;i&gt;statements1&lt;/i&gt;&amp;nbsp;and&amp;nbsp;&lt;i&gt;statements2&lt;/i&gt;&amp;nbsp;can be any JavaScript statements, including further nested&amp;nbsp;&lt;b&gt;if&lt;/b&gt;&amp;nbsp;statements. Multiple statements must be enclosed in braces.&lt;br /&gt;
&lt;br /&gt;
Here's an example:&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;if&lt;/b&gt; (weather == 'good') {
 go_out(we);
 have_a_picnic(we);
 do_cartwheels(Lisa);
}
&lt;b&gt;else&lt;/b&gt; {
 stay_in(we);
 watch_TV(Catherine);
}
&lt;/pre&gt;
&lt;a href="" name="10"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
10. Loops&lt;/h2&gt;
Loops are an incredibly useful programming tool. Loops handle repetitive tasks extremely well, especially in the context of consecutive elements. Arrays immediately spring too mind here, since array elements are numbered consecutively. It would be quite intuitive (and equally practical), for instance, to write a loop that added 1 to each element within an array. Don't worry if this doesn't make a lot of sense now, it will, after you finish reading the tutorial.&lt;br /&gt;
&lt;br /&gt;
The two most common types of loops are&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;&amp;nbsp;and&amp;nbsp;&lt;tt&gt;while&lt;/tt&gt;&amp;nbsp;loops:&lt;a href="" name="10.1"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h3&gt;
10.1. for Loops&lt;/h3&gt;
A&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;&amp;nbsp;loop constitutes a statement which consists of three expressions, enclosed in parentheses and separated by semicolons, followed by a block of statements executed in the loop.&lt;br /&gt;
This definition may, at first, sound confusing. Indeed, it is hard to understand&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;&amp;nbsp;loops without seeing them in action.&lt;br /&gt;
A&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;&amp;nbsp;loop resembles the following:&lt;br /&gt;
&lt;pre&gt;for (&lt;i&gt;initial-expression&lt;/i&gt;; &lt;i&gt;condition&lt;/i&gt;; &lt;i&gt;increment-expression&lt;/i&gt;) {
 &lt;i&gt;statements&lt;/i&gt;
}
&lt;/pre&gt;
The&amp;nbsp;&lt;i&gt;initial-expression&lt;/i&gt;&amp;nbsp;is a statement or variable declaration. (See the section on variables for more information.) It is typically used to initialize a counter variable. This expression may optionally declare new variables with the&amp;nbsp;&lt;tt&gt;var&lt;/tt&gt;&amp;nbsp;keyword.&lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp;&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;is evaluated on each pass through the loop. If this condition evaluates to true, the statements in&amp;nbsp;&lt;i&gt;statements&lt;/i&gt;&amp;nbsp;are performed. When the condition evaluates to false, the execution of the&amp;nbsp;&lt;code&gt;for&lt;/code&gt;&amp;nbsp;loop stops. This conditional test is optional. If omitted, the condition always evaluates to true.&lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp;&lt;i&gt;increment-expression&lt;/i&gt;&amp;nbsp;is generally used to update or increment the counter variable.&lt;br /&gt;
&lt;br /&gt;
The&amp;nbsp;&lt;i&gt;statements&lt;/i&gt;&amp;nbsp;constitute a block of statements that are executed as long as&amp;nbsp;&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;evaluates to true. This can be a single statement or multiple statements. Although not required, it is good practice to indent these statements from the beginning of the&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;&amp;nbsp;statement to make your code more readable.&lt;br /&gt;
&lt;br /&gt;
Check out the following&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;&amp;nbsp;statement. It starts by declaring the variable&amp;nbsp;&lt;i&gt;i&lt;/i&gt;&amp;nbsp;and initializing it to zero. It checks whether&amp;nbsp;&lt;i&gt;i&lt;/i&gt;&amp;nbsp;is less than nine, performs the two successive statements, and increments&amp;nbsp;&lt;i&gt;i&lt;/i&gt;&amp;nbsp;by one after each pass through the loop:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;var n = 0;
for (var i = 0; i &amp;lt; 3; i++) {
 n += i;
 alert("The value of n is now " + n);
}
&lt;/pre&gt;
Try it yourself:&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html"&gt;Click this link&lt;/a&gt;&lt;a href="" name="10.2"&gt;&lt;/a&gt;&lt;h3&gt;
10.2. while Loops&lt;/h3&gt;
The&amp;nbsp;&lt;tt&gt;while&lt;/tt&gt;&amp;nbsp;loop, although most people would not recognize it as such, is&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;'s twin. The two can fill in for one another - using either one is only a matter of convenience or preference according to context.&lt;tt&gt;while&lt;/tt&gt;&amp;nbsp;creates a loop that evaluates an expression, and if it is true, executes a block of statements. The loop then repeats, as long as the specified condition is true.The syntax of&amp;nbsp;&lt;tt&gt;while&lt;/tt&gt;&amp;nbsp;differs slightly from that of&amp;nbsp;&lt;tt&gt;for&lt;/tt&gt;:&lt;br /&gt;
&lt;pre&gt;&lt;b&gt;while&lt;/b&gt; (&lt;i&gt;condition&lt;/i&gt;) {
 &lt;i&gt;statements&lt;/i&gt;
}
&lt;/pre&gt;
&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;is evaluated before each pass through the loop. If this condition evaluates to true, the statements in the succeeding block are performed. When&amp;nbsp;&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;evaluates to false, execution continues with the statement following&amp;nbsp;&lt;i&gt;statements&lt;/i&gt;.&lt;i&gt;statements&lt;/i&gt;&amp;nbsp;is a block of statements that are executed as long as the&amp;nbsp;&lt;i&gt;condition&lt;/i&gt;&amp;nbsp;evaluates to true. Although not required, it is good practice to indent these statements from the beginning of the statement.&lt;br /&gt;
The following&amp;nbsp;&lt;tt&gt;while&lt;/tt&gt;&amp;nbsp;loop iterates as long as&amp;nbsp;&lt;i&gt;n&lt;/i&gt;&amp;nbsp;is less than three.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;var n = 0;
var x = 0;
while(n &amp;lt; 3) {
 n++;
 x += n;
 alert("The value of n is " + n + ". The value of x is " + x);
}
&lt;/pre&gt;
Try it for yourself:&amp;nbsp;&lt;a href="http://www.cs.brown.edu/courses/bridge/1998/res/javascript/javascript-tutorial.html"&gt;Click this link&lt;/a&gt;&lt;a href="" name="11"&gt;&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
11. Commenting&lt;/h2&gt;
Comments allow you to write notes to yourself within your program. These are important because they allow someone to browse your code and understand what the various functions do or what your variables represent. Comments also allow you to understand your code if it's been a while since you last looked at it.In JavaScript, you can write both one-line comments and multiple line comments. The notation for each is different though. For a one line comment, you precede your comment with //. This indicates that everything written on that line, after the //, is a comment and the program should disregard it.&lt;br /&gt;
For a multiple-line comment, you start with /* and end with */ . It is nice to put an * at the beginning of each line just so someone perusing your code realizes that he/she is looking at a comment (if it is really long this helps). This is not necessary though.&lt;br /&gt;
The following are examples of comments in JavaScript.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;// This is a single line comment.

/* This is a multiple line comment with only one line. */

/* This is a multiple line comment.
 * The star (*) at the beginning of this line is optional.
 * So is the star at the beginning of this line. */&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-4077455373052999008?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/4077455373052999008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/javascript-tutorial.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4077455373052999008?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4077455373052999008?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/javascript-tutorial.html' title='JavaScript Tutorial'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEMDQH08fCp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-5533878539590465596</id><published>2012-07-05T20:47:00.003-07:00</published><updated>2012-07-05T20:47:51.374-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:47:51.374-07:00</app:edited><title>Java Building a Simple Web Service ?</title><content type='html'>&lt;br /&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0in; text-indent: 0in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Symbol;"&gt;&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Installation&lt;/b&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Install JDK (in D:\j2sdk1.4.2_04)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Install Tomcat (in E:\Tomcat5.5)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Install Eclipse (in E:\Eclipse3.1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Install Lomboz (in E:\Eclipse3.1)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in; text-indent: -0.25in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Symbol;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Setting up&lt;/b&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="1" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Set up the installed JRE in eclipse (Windows -&amp;gt; Preferences -&amp;gt; Java -&amp;gt; Installed JREs)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="525" src="http://www.roseindia.net/webservices/buildi1.jpg" style="border: 0px;" v:shapes="_x0000_i1025" width="580" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="2" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Set up the installed runtime for server in eclipse (Windows -&amp;gt; Preferences -&amp;gt; Server -&amp;gt; Installed Runtimes)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="525" src="http://www.roseindia.net/webservices/buildi2.jpg" style="border: 0px;" v:shapes="_x0000_i1026" width="580" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin: 0in 0in 0.0001pt;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="3" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Set up the Server view in eclipse (Windows -&amp;gt; Show View -&amp;gt; Other)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="414" src="http://www.roseindia.net/webservices/buildi3.jpg" style="border: 0px;" v:shapes="_x0000_i1027" width="296" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="4" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Set up the Tomcat Server by right clicking and selecting New -&amp;gt; Server option from the Server view in eclipse&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="192" src="http://www.roseindia.net/webservices/buildi4.jpg" style="border: 0px;" v:shapes="_x0000_i1028" width="447" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="531" src="http://www.roseindia.net/webservices/buildi5.jpg" style="border: 0px;" v:shapes="_x0000_i1029" width="540" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in; text-indent: -0.25in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Symbol;"&gt;·&lt;span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Creating a Web service&lt;/b&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="1" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Create a new Dynamic Web Project in eclipse (File -&amp;gt; New -&amp;gt; Other)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="500" src="http://www.roseindia.net/webservices/buildi6.jpg" style="border: 0px;" v:shapes="_x0000_i1030" width="500" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="2" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Enter name as ?WebServiceTutorial?, select project location as ?E:\Test? and select Apache Tomcat v5.5 as the Target server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="488" src="http://www.roseindia.net/webservices/buildi7.jpg" style="border: 0px;" v:shapes="_x0000_i1031" width="513" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="3" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Now create a new Java class from the Project Explorer (Dynamic Web Projects -&amp;gt; Java Source -&amp;gt; New -&amp;gt; Class)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="241" src="http://www.roseindia.net/webservices/buildi8.jpg" style="border: 0px;" v:shapes="_x0000_i1032" width="527" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="4" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Enter name as ?Hello? and package as ?com.tutorial?.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="592" src="http://www.roseindia.net/webservices/buildi9.jpg" style="border: 0px;" v:shapes="_x0000_i1033" width="495" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="5" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Add a simple method in the ?Hello? class as below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: navy;"&gt;public String sayHello(String name){&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: navy;"&gt;return "Hello " + name;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: navy;"&gt;}&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&amp;nbsp;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="180" src="http://www.roseindia.net/webservices/buildi10.jpg" style="border: 0px;" v:shapes="_x0000_i1034" width="361" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="6" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Save and build the project.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Create a new Web service in eclipse (File -&amp;gt; New -&amp;gt; Other)&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="500" src="http://www.roseindia.net/webservices/buildi11.jpg" style="border: 0px;" v:shapes="_x0000_i1035" width="500" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="8" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Select Generate a proxy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Select Test the Web service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Select Overwrite files without warning.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="540" src="http://www.roseindia.net/webservices/buildi12.jpg" style="border: 0px;" v:shapes="_x0000_i1036" width="500" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="11" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Select or enter the Bean name as ?com.tutorial.Hello?. This is the java class that we just now created.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="540" src="http://www.roseindia.net/webservices/buildi13.jpg" style="border: 0px;" v:shapes="_x0000_i1037" width="500" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="12" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Continue the wizard by clicking Next and finish.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;On Finish, the Tomcat server starts up and launches the Test client.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Verify the generated contents. Look for Hello.class and the generated JSPs as below.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="541" src="http://www.roseindia.net/webservices/buildi14.jpg" style="border: 0px;" v:shapes="_x0000_i1038" width="349" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="15" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Verify the Tomcat folder and ensure the newly created web applications ? WebServiceTutorial, WebServiceTutorialClient.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;img border="0" height="227" src="http://www.roseindia.net/webservices/buildi15.jpg" style="border: 0px;" v:shapes="_x0000_i1039" width="268" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="16" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;We can also run the following url from the browser to access/test the Web service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;a href="http://localhost:8080/WebServiceTutorialClient/sampleHelloProxy/TestClient.jsp" style="color: #d10026; font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: bold; line-height: normal;"&gt;http://localhost:8080/WebServiceTutorialClient/sampleHelloProxy/TestClient.jsp&lt;/a&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol start="17" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;If servlet error ?org.eclipse.jst.ws.util.JspUtils cannot be resolved or is not a type? is thrown on the browser, then copy the webserviceutils.jar file from the E:\Eclipse3.1\eclipse\plugins\org.eclipse.jst.ws.consumption_0.7.0 into the WEB-INF\lib folder of the WebServiceTutorialClient application and restart the Tomcat server.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;ol start="18" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;The browser displays the methods available in the web service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img border="0" height="379" src="http://www.roseindia.net/webservices/buildi16.jpg" style="border: 0px;" v:shapes="_x0000_i1040" width="577" /&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="19" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Click on the&amp;nbsp;&lt;b&gt;sayHello(..)&lt;/b&gt;&amp;nbsp;method, enter your name (for e.g. ?Jeeva?) in the inputs section and click ?Invoke?.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img border="0" height="379" src="http://www.roseindia.net/webservices/buildi17.jpg" style="border: 0px;" v:shapes="_x0000_i1044" width="577" /&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="20" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;The browser greets using the web service.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img border="0" height="379" src="http://www.roseindia.net/webservices/buildi18.jpg" style="border: 0px;" v:shapes="_x0000_i1041" width="577" /&gt;&lt;/span&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="21" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;The WSDL for the Hello Web service can be found in E:\Test\WebServiceTutorial\WebContent\wsdl\Hello.wsdl. On double-click, the WSDL opens in a graphical editor.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.25in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;&amp;nbsp;&amp;nbsp;&lt;img border="0" height="500" src="http://www.roseindia.net/webservices/buildi19.jpg" style="border: 0px;" v:shapes="_x0000_i1042" width="600" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ol start="22" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-top: 0in;" type="1"&gt;
&lt;li class="MsoNormal"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: navy;"&gt;Right-click on the WSDL file and explore the options to test the web service / publish the WSDL file / generate client / etc.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 24px; margin-left: 0.5in;"&gt;
&lt;span style="color: navy;"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;img border="0" height="491" src="http://www.roseindia.net/webservices/buildi20.jpg" style="border: 0px;" v:shapes="_x0000_i1043" width="454" /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-5533878539590465596?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/5533878539590465596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/java-building-simple-web-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/5533878539590465596?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/5533878539590465596?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/java-building-simple-web-service.html' title='Java Building a Simple Web Service ?'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEUDRXk6fCp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-2643469691862947382</id><published>2012-07-05T20:44:00.002-07:00</published><updated>2012-07-05T20:44:34.714-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:44:34.714-07:00</app:edited><title>PHP Mail Functions</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Mail Introduction&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The mail() function allows you to send emails directly from a script.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Requirements&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
For the mail functions to be available, PHP requires an installed and working email system. The program to be used is defined by the configuration settings in the php.ini file.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Installation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The mail functions are part of the PHP core. There is no installation needed to use these functions.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Runtime Configuration&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The behavior of the mail functions is affected by settings in the php.ini file.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Mail configuration options:&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="20%"&gt;Name&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="15%"&gt;Default&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="42%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="23%"&gt;Changeable&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;SMTP&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"localhost"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Windows only: The DNS name or IP address of the SMTP server&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;smtp_port&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"25"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Windows only: The SMTP port number. Available since PHP 4.3&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;sendmail_from&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Windows only: Specifies the "from" address to be used in email sent from PHP&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;sendmail_path&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Unix systems only: Specifies where the sendmail program can be found (usually /usr/sbin/sendmail or /usr/lib/sendmail)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_SYSTEM&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Mail Functions&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the function.&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="20%"&gt;Function&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="75%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;ezmlm_hash()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Calculates the hash value needed by the EZMLM mailing list system&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mail_mail.asp" style="background-color: transparent; color: #900b09;"&gt;mail()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Allows you to send emails directly from a script&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-2643469691862947382?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/2643469691862947382/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-mail-functions_05.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/2643469691862947382?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/2643469691862947382?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-mail-functions_05.html' title='PHP Mail Functions'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;D08FRnw5eyp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-4277175593979807840</id><published>2012-07-05T20:35:00.000-07:00</published><updated>2012-07-05T20:36:57.223-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:36:57.223-07:00</app:edited><title>how to call java webservice in vb 6</title><content type='html'>&lt;span style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;I am trying to call java web service method in vb6, but always error..&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;i use SOAP type library v 3.0..&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;The error is :&lt;/span&gt;&lt;br /&gt;
&lt;div class="pre-action-link" id="premain0" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre0" lang="text" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;Client : Incorrect number of parameters supplied for SOAP request
HRESULT=0x80070057: The parameters is incorrect.
- CLient:Unspecified client error, HRESULT=0x080070057: The parameter is incorrect&lt;/pre&gt;
&lt;br /&gt;
&lt;span style="font-family: Verdana, Arial, sans-serif; font-size: 13px;"&gt;this is my listing code :&lt;/span&gt;&lt;br /&gt;
&lt;div class="pre-action-link" id="premain1" style="border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-bottom-width: 1px; color: #004cd5; font-family: Verdana, Arial, sans-serif; font-size: 0.8em; text-align: right;" width="100%"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id="pre1" lang="vb" style="background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: 'Courier New', Courier, mono; font-size: 9pt; overflow: auto; padding: 6px; white-space: pre-wrap; word-wrap: break-word;"&gt;&lt;span class="code-keyword" style="color: blue;"&gt;Private&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;Sub&lt;/span&gt; Command8_Click()
&amp;nbsp;
&lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; clientSOAP &lt;span class="code-keyword" style="color: blue;"&gt;As&lt;/span&gt; SoapClient30
&lt;span class="code-keyword" style="color: blue;"&gt;Set&lt;/span&gt; clientSOAP = &lt;span class="code-keyword" style="color: blue;"&gt;New&lt;/span&gt; SoapClient30
&lt;span class="code-keyword" style="color: blue;"&gt;Dim&lt;/span&gt; port &lt;span class="code-keyword" style="color: blue;"&gt;As&lt;/span&gt; &lt;span class="code-keyword" style="color: blue;"&gt;New&lt;/span&gt; WSDLPort
&amp;nbsp;
clientSOAP.mssoapinit &lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;http://dealerhondabali.com:8080/TambahSPKService/TambahSPKService?WSDL;
&amp;nbsp;
Dim nResult As Integer
Dim strResult As String
&amp;nbsp;
'================method insertDataSPK===============
Dim spkTanggal As String
Dim posId As String
Dim slsId As String
Dim spkNoKtpFakturStnk As String
Dim spkNamaFakturStnk As String
Dim spkAlamatFakturStnk As String
Dim spkKelurahanFakturStnk As String
Dim spkJenisPenjualan As Integer
Dim spkLeasing As String
Dim spkDownPayment As String
Dim spkTenor As String
Dim spkJenisBunga As String
Dim dlrCodeHso As String
Dim createBy As String
Dim createDate As String
Dim updateBy As String
Dim updateDate As String
&amp;nbsp;
spkTanggal = "&lt;/span&gt;21/06/2012&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
posId = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;09221001&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
slsId = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;203872&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkNoKtpFakturStnk = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;5108023112790062&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkNamaFakturStnk = "&lt;/span&gt;I Made Testing&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkAlamatFakturStnk = "&lt;/span&gt;Jalan street gang line&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkKelurahanFakturStnk = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;14&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkJenisPenjualan = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkLeasing = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;1&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkDownPayment = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;500000&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkTenor = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;36&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
spkJenisBunga = "&lt;/span&gt;menurun&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
dlrCodeHso = "&lt;/span&gt;&lt;span class="code-digit" style="color: navy;"&gt;00637&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
createBy = "&lt;/span&gt;user&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
createDate = "&lt;/span&gt;21/06/2012&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
updateBy = "&lt;/span&gt;user&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
updateDate = "&lt;/span&gt;21/06/2012&lt;span class="code-string" style="color: purple;"&gt;"&lt;/span&gt;&lt;span class="code-string" style="color: purple;"&gt;
&amp;nbsp;
nResult = clientSOAP.insertDataSPK(spkTanggal, posId, slsId, spkNoKtpFakturStnk, spkNamaFakturStnk, _
spkAlamatFakturStnk, spkKelurahanFakturStnk, spkJenisPenjualan, _
spkLeasing, spkDownPayment, spkTenor, spkJenisBunga, dlrCodeHso, createBy, _
createDate, updateBy, updateDate)
&amp;nbsp;
End Sub&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-4277175593979807840?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/4277175593979807840/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/how-to-call-java-webservice-in-vb-6.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4277175593979807840?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/4277175593979807840?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/how-to-call-java-webservice-in-vb-6.html' title='how to call java webservice in vb 6'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DkEBRHYyfCp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-1715907098248473294</id><published>2012-07-05T20:17:00.000-07:00</published><updated>2012-07-05T20:17:35.894-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:17:35.894-07:00</app:edited><title>PHP MySQL Functions</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP MySQL Introduction&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The MySQL functions allows you to access MySQL database servers.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Installation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
For the MySQL functions to be available, you must compile PHP with MySQL support.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
For compiling, use&amp;nbsp;&lt;i&gt;--with-mysql=DIR&amp;nbsp;&lt;/i&gt;(the optional DIR points to the MySQL directory).&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;For full functionality of MySQL versions greater than 4.1., use the MySQLi extension instead. If you would like to install both the mysql extension and the mysqli extension you should use the same client library to avoid any conflicts.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Installation on Linux Systems&lt;/b&gt;&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP 5+:&lt;/b&gt;&amp;nbsp;MySQL and the MySQL library is not enabled by default. Use the&amp;nbsp;&lt;i&gt;--with-mysql=DIR&lt;/i&gt;configure option to include MySQL support and download headers and libraries from&lt;a href="http://www.mysql.com/" style="background-color: transparent; color: #900b09;" target="_blank"&gt;www.mysql.com&lt;/a&gt;.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Installation on Windows Systems&lt;/b&gt;&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP 5+:&lt;/b&gt;&amp;nbsp;MySQL is not enabled by default, so the php_mysql.dll must be enabled inside of php.ini. Also, PHP needs access to the MySQL client library. A file named libmysql.dll is included in the Windows PHP distribution, and in order for PHP to talk to MySQL this file needs to be available to the Windows systems PATH.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
To enable any PHP extension, the PHP extension_dir setting (in the php.ini file) should be set to the directory where the PHP extensions are located. An example extension_dir value is c:\php\ext.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;If you get the following error when starting the web server: "Unable to load dynamic library './php_mysql.dll'", this is because php_mysql.dll or libmysql.dll cannot be found by the system.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Runtime Configuration&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The behavior of the MySQL functions is affected by settings in the php.ini file.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
MySQL configuration options:&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="20%"&gt;Name&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="15%"&gt;Default&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="42%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="23%"&gt;Changeable&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.allow_persistent&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"1"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Whether or not to allow persistent connections&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_SYSTEM&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.max_persistent&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"-1"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The maximum number of persistent connections per process&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_SYSTEM&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.max_links&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"-1"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The maximum number of connections per process (persistent connections included)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_SYSTEM&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.trace_mode&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"0"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Trace mode. When set to "1", warnings and SQL-errors will be displayed. Available since PHP 4.3&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.default_port&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The default TCP port number to use&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.default_socket&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The default socket name to use. Available since PHP 4.0.1&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.default_host&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The default server host to use (doesn't apply in SQL safe mode)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.default_user&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The default user name to use (doesn't apply in SQL safe mode)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.default_password&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;The default password to use (doesn't apply in SQL safe mode)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql.connect_timeout&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"60"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Connection timeout in seconds&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Resource Types&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
There are two resource types used in the MySQL extension. The first one is the link_identifier for a database connection, the second is a resource which holds the result of a query.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;Most MySQL functions accept link_identifier as the last optional parameter. If it is not provided, the last opened connection is used.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP MySQL Functions&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the function.&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="35%"&gt;Function&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="60%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_affected_rows.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_affected_rows()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the number of affected rows in the previous MySQL operation&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_change_user()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Changes the user of the current MySQL connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_client_encoding.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_client_encoding()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the name of the character set for the current connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_close.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_close()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Closes a non-persistent MySQL connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_connect.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_connect()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Opens a non-persistent MySQL connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_create_db()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Creates a new MySQL database. Use mysql_query() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_data_seek.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_data_seek()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Moves the record pointer&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_db_name.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_db_name()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a database name from a call to mysql_list_dbs()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_db_query()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Sends a MySQL query. Use mysql_select_db() and mysql_query() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_drop_db()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Deletes a MySQL database. Use mysql_query() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_errno.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_errno()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the error number of the last MySQL operation&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_error.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_error()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the error description of the last MySQL operation&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_escape_string()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Escapes a string for use in a mysql_query. Use mysql_real_escape_string() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_fetch_array.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_fetch_array()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a row from a recordset as an associative array and/or a numeric array&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_fetch_assoc.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_fetch_assoc()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a row from a recordset as an associative array&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_fetch_field.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_fetch_field()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns column info from a recordset as an object&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_fetch_lengths.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_fetch_lengths()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the length of the contents of each field in a result row&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_fetch_object.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_fetch_object()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a row from a recordset as an object&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_fetch_row.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_fetch_row()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns a row from a recordset as a numeric array&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_field_flags.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_field_flags()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the flags associated with a field in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_field_len.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_field_len()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the maximum length of a field in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_field_name.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_field_name()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the name of a field in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_field_seek.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_field_seek()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Moves the result pointer to a specified field&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_field_table.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_field_table()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the name of the table the specified field is in&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_field_type.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_field_type()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the type of a field in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_free_result.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_free_result()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Free result memory&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_get_client_info.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_get_client_info()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns MySQL client info&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_get_host_info.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_get_host_info()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns MySQL host info&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_get_proto_info.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_get_proto_info()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns MySQL protocol info&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_get_server_info.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_get_server_info()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns MySQL server info&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_info.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_info()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns information about the last query&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_insert_id.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_insert_id()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the AUTO_INCREMENT ID generated from the previous INSERT operation&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_list_dbs.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_list_dbs()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Lists available databases on a MySQL server&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_list_fields()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Lists MySQL table fields. Use mysql_query() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_list_processes.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_list_processes()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Lists MySQL processes&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_list_tables()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Lists tables in a MySQL database. Use mysql_query() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_num_fields.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_num_fields()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the number of fields in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_num_rows.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_num_rows()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the number of rows in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_pconnect.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_pconnect()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Opens a persistent MySQL connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_ping.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_ping()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Pings a server connection or reconnects if there is no connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_query.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_query()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Executes a query on a MySQL database&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_real_escape_string.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_real_escape_string()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Escapes a string for use in SQL statements&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_result.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_result()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the value of a field in a recordset&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_select_db.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_select_db()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Sets the active MySQL database&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_stat.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_stat()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current system status of the MySQL server&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;mysql_tablename()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;span class="deprecated" style="background-color: transparent; color: #e80000;"&gt;Deprecated.&lt;/span&gt;&amp;nbsp;Returns the table name of field. Use mysql_query() instead&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_thread_id.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_thread_id()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current thread ID&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mysql_unbuffered_query.asp" style="background-color: transparent; color: #900b09;"&gt;mysql_unbuffered_query()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Executes a query on a MySQL database (without fetching / buffering the result)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP MySQL Constants&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Since PHP 4.3 it has been possible to specify additional flags for the mysql_connect() and mysql_pconnect() functions:&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the constant.&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="45%"&gt;Constant&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="50%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_CLIENT_COMPRESS&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Use compression protocol&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4.3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td height="25" style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_CLIENT_IGNORE_SPACE&lt;/td&gt;&lt;td height="25" style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Allow space after function names&lt;/td&gt;&lt;td height="25" style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4.3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_CLIENT_INTERACTIVE&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Allow interactive timeout seconds of inactivity before closing the connection&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4.3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_CLIENT_SSL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Use SSL encryption (only available with version 4+ of the MySQL client library)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4.3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The mysql_fetch_array() function uses a constant for the different types of result arrays. The following constants are defined:&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="25%"&gt;Constant&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="70%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_ASSOC&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Columns are returned into the array with the fieldname as the array index&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_BOTH&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Columns are returned into the array having both a numerical index and the fieldname as the array index&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;MYSQL_NUM&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Columns are returned into the array having a numerical index (index starts at 0)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-1715907098248473294?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/1715907098248473294/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-mysql-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/1715907098248473294?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/1715907098248473294?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-mysql-functions.html' title='PHP MySQL Functions'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CU4NQ3c4eSp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-445097024218027997</id><published>2012-07-05T20:06:00.002-07:00</published><updated>2012-07-05T20:06:32.931-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T20:06:32.931-07:00</app:edited><title>PHP Date / Time Functions</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Date / Time Introduction&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The date/time functions allow you to extract and format the date and time on the server.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;Note:&lt;/b&gt;&amp;nbsp;These functions depend on the locale settings of the server!&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Installation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The date/time functions are part of the PHP core. There is no installation needed to use these functions.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Runtime Configuration&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The behavior of the date/time functions is affected by settings in php.ini.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Date/Time configuration options:&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="20%"&gt;Name&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="15%"&gt;Default&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="42%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="23%"&gt;Changeable&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;date.default_latitude&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;"31.7667"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Specifies the default latitude (available since PHP 5). This option is used by date_sunrise() and date_sunset()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;date.default_longitude&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"35.2333"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Specifies the default longitude (available since PHP 5). This option is used by date_sunrise() and date_sunset()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;date.sunrise_zenith&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"90.83"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Specifies the default sunrise zenith (available since PHP 5). This option is used by date_sunrise() and date_sunset()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;date.sunset_zenith&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"90.83"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Specifies the default sunset zenith (available since PHP 5). This option is used by date_sunrise() and date_sunset()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;date.timezone&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;""&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Specifies the default timezone (available since PHP 5.1)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Date / Time Functions&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the function.&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="38%"&gt;Function&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="57%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_checkdate.asp" style="background-color: transparent; color: #900b09;"&gt;checkdate()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Validates a Gregorian date&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_default_timezone_get.asp" style="background-color: transparent; color: #900b09;"&gt;date_default_timezone_get()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the default time zone&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_default_timezone_set.asp" style="background-color: transparent; color: #900b09;"&gt;date_default_timezone_set()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Sets the default time zone&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_sunrise.asp" style="background-color: transparent; color: #900b09;"&gt;date_sunrise()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the time of sunrise for a given day / location&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_sunset.asp" style="background-color: transparent; color: #900b09;"&gt;date_sunset()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the time of sunset for a given day / location&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_date.asp" style="background-color: transparent; color: #900b09;"&gt;date()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Formats a local time/date&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_getdate.asp" style="background-color: transparent; color: #900b09;"&gt;getdate()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an array that contains date and time information for a Unix timestamp&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_gettimeofday.asp" style="background-color: transparent; color: #900b09;"&gt;gettimeofday()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an array that contains current time information&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_gmdate.asp" style="background-color: transparent; color: #900b09;"&gt;gmdate()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Formats a GMT/UTC date/time&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_gmmktime.asp" style="background-color: transparent; color: #900b09;"&gt;gmmktime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the Unix timestamp for a GMT date&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_gmstrftime.asp" style="background-color: transparent; color: #900b09;"&gt;gmstrftime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Formats a GMT/UTC time/date according to locale settings&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_idate.asp" style="background-color: transparent; color: #900b09;"&gt;idate()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Formats a local time/date as integer&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_localtime.asp" style="background-color: transparent; color: #900b09;"&gt;localtime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns an array that contains the time components of a Unix timestamp&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;4&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_microtime.asp" style="background-color: transparent; color: #900b09;"&gt;microtime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the microseconds for the current time&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_mktime.asp" style="background-color: transparent; color: #900b09;"&gt;mktime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the Unix timestamp for a date&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_strftime.asp" style="background-color: transparent; color: #900b09;"&gt;strftime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Formats a local time/date according to locale settings&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_strptime.asp" style="background-color: transparent; color: #900b09;"&gt;strptime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Parses a time/date generated with strftime()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;5&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_strtotime.asp" style="background-color: transparent; color: #900b09;"&gt;strtotime()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Parses an English textual date or time into a Unix timestamp&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_date_time.asp" style="background-color: transparent; color: #900b09;"&gt;time()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Returns the current time as a Unix timestamp&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Date / Time Constants&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the constant.&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="38%"&gt;Constant&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="57%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_ATOM&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Atom (example: 2005-08-15T16:13:03+0000)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_COOKIE&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;HTTP Cookies (example: Sun, 14 Aug 2005 16:13:03 UTC)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_ISO8601&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;ISO-8601 (example: 2005-08-14T16:13:03+0000)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_RFC822&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;RFC 822 (example: Sun, 14 Aug 2005 16:13:03 UTC)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_RFC850&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;RFC 850 (example: Sunday, 14-Aug-05 16:13:03 UTC)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_RFC1036&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;RFC 1036 (example: Sunday, 14-Aug-05 16:13:03 UTC)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_RFC1123&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;RFC 1123 (example: Sun, 14 Aug 2005 16:13:03 UTC)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_RFC2822&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;RFC 2822 (Sun, 14 Aug 2005 16:13:03 +0000)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_RSS&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;RSS (Sun, 14 Aug 2005 16:13:03 UTC)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;DATE_W3C&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;World Wide Web Consortium (example: 2005-08-14T16:13:03+0000)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-445097024218027997?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/445097024218027997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-date-time-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/445097024218027997?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/445097024218027997?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-date-time-functions.html' title='PHP Date / Time Functions'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUIHQ3k7cCp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-412407641036583639</id><published>2012-07-05T19:58:00.003-07:00</published><updated>2012-07-05T19:58:52.708-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T19:58:52.708-07:00</app:edited><title>PHP Example - AJAX RSS Reader</title><content type='html'>&lt;br /&gt;
&lt;div class="intro" style="background-color: transparent; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; margin-top: 10px;"&gt;
An RSS Reader is used to read RSS Feeds.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
AJAX RSS Reader&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The following example will demonstrate an RSS reader, where the RSS-feed is loaded into a webpage without reloading:&lt;/div&gt;
&lt;form style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;select&gt;&amp;nbsp;&lt;option value=""&gt;Select an RSS-feed:&lt;/option&gt;&amp;nbsp;&lt;option value="Google"&gt;Google News&lt;/option&gt;&amp;nbsp;&lt;option value="MSNBC"&gt;MSNBC News&lt;/option&gt;&amp;nbsp;&lt;/select&gt;&lt;/form&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;div id="rssOutput" style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 634px;"&gt;
&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Example Explained - The HTML Page&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
When a user selects an RSS-feed in the dropdown list above, a function called "showResult()" is executed. The function is triggered by the "onchange" event:&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;head&amp;gt;&lt;br /&gt;&amp;lt;script type="text/javascript"&amp;gt;&lt;br /&gt;function showRSS(str)&lt;br /&gt;{&lt;br /&gt;if (str.length==0)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;document.getElementById("rssOutput").innerHTML="";&lt;br /&gt;&amp;nbsp; return;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;if (window.XMLHttpRequest)&lt;br /&gt;&amp;nbsp; {// code for IE7+, Firefox, Chrome, Opera, Safari&lt;br /&gt;&amp;nbsp; xmlhttp=new XMLHttpRequest();&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;else&lt;br /&gt;&amp;nbsp; {// code for IE6, IE5&lt;br /&gt;&amp;nbsp; xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;xmlhttp.onreadystatechange=function()&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; if (xmlhttp.readyState==4 &amp;amp;&amp;amp; xmlhttp.status==200)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;document.getElementById("rssOutput").innerHTML=xmlhttp.responseText;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;xmlhttp.open("GET","getrss.php?q="+str,true);&lt;br /&gt;xmlhttp.send();&lt;br /&gt;}&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;form&amp;gt;&lt;br /&gt;&amp;lt;select onchange="showRSS(this.value)"&amp;gt;&lt;br /&gt;&amp;lt;option value=""&amp;gt;Select an RSS-feed:&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value="Google"&amp;gt;Google News&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;option value="MSNBC"&amp;gt;MSNBC News&amp;lt;/option&amp;gt;&lt;br /&gt;&amp;lt;/select&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&lt;br /&gt;&amp;lt;br /&amp;gt;&lt;br /&gt;&amp;lt;div id="rssOutput"&amp;gt;RSS-feed will be listed here...&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The showResult() function does the following:&lt;/div&gt;
&lt;ul style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;li&gt;Check if an RSS-feed is selected&lt;/li&gt;
&lt;li&gt;Create an XMLHttpRequest object&lt;/li&gt;
&lt;li&gt;Create the function to be executed when the server response is ready&lt;/li&gt;
&lt;li&gt;Send the request off to a file on the server&lt;/li&gt;
&lt;li&gt;Notice that a parameter (q) is added to the URL (with the content of the dropdown list)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
The PHP File&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The page on the server called by the JavaScript above is a PHP file called "getrss.php":&lt;/div&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&amp;lt;?php&lt;br /&gt;//get the q parameter from URL&lt;br /&gt;$q=$_GET["q"];&lt;br /&gt;&lt;br /&gt;//find out which feed was selected&lt;br /&gt;if($q=="Google")&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;$xml=("http://news.google.com/news?ned=us&amp;amp;topic=h&amp;amp;output=rss");&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;elseif($q=="MSNBC")&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;$xml=("http://rss.msnbc.msn.com/id/3032091/device/rss/rss.xml");&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;br /&gt;$xmlDoc = new DOMDocument();&lt;br /&gt;$xmlDoc-&amp;gt;load($xml);&lt;br /&gt;&lt;br /&gt;//get elements from "&amp;lt;channel&amp;gt;"&lt;br /&gt;$channel=$xmlDoc-&amp;gt;getElementsByTagName('channel')-&amp;gt;item(0);&lt;br /&gt;$channel_title = $channel-&amp;gt;getElementsByTagName('title')&lt;br /&gt;-&amp;gt;item(0)-&amp;gt;childNodes-&amp;gt;item(0)-&amp;gt;nodeValue;&lt;br /&gt;$channel_link = $channel-&amp;gt;getElementsByTagName('link')&lt;br /&gt;-&amp;gt;item(0)-&amp;gt;childNodes-&amp;gt;item(0)-&amp;gt;nodeValue;&lt;br /&gt;$channel_desc = $channel-&amp;gt;getElementsByTagName('description')&lt;br /&gt;-&amp;gt;item(0)-&amp;gt;childNodes-&amp;gt;item(0)-&amp;gt;nodeValue;&lt;br /&gt;&lt;br /&gt;//output elements from "&amp;lt;channel&amp;gt;"&lt;br /&gt;echo("&amp;lt;p&amp;gt;&amp;lt;a href='" . $channel_link&lt;br /&gt;&amp;nbsp;&amp;nbsp;. "'&amp;gt;" . $channel_title . "&amp;lt;/a&amp;gt;");&lt;br /&gt;echo("&amp;lt;br /&amp;gt;");&lt;br /&gt;echo($channel_desc . "&amp;lt;/p&amp;gt;");&lt;br /&gt;&lt;br /&gt;//get and output "&amp;lt;item&amp;gt;" elements&lt;br /&gt;$x=$xmlDoc-&amp;gt;getElementsByTagName('item');&lt;br /&gt;for ($i=0; $i&amp;lt;=2; $i++)&lt;br /&gt;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;$item_title=$x-&amp;gt;item($i)-&amp;gt;getElementsByTagName('title')&lt;br /&gt;&amp;nbsp;&amp;nbsp;-&amp;gt;item(0)-&amp;gt;childNodes-&amp;gt;item(0)-&amp;gt;nodeValue;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$item_link=$x-&amp;gt;item($i)-&amp;gt;getElementsByTagName('link')&lt;br /&gt;&amp;nbsp;&amp;nbsp;-&amp;gt;item(0)-&amp;gt;childNodes-&amp;gt;item(0)-&amp;gt;nodeValue;&lt;br /&gt;&amp;nbsp;&amp;nbsp;$item_desc=$x-&amp;gt;item($i)-&amp;gt;getElementsByTagName('description')&lt;br /&gt;&amp;nbsp;&amp;nbsp;-&amp;gt;item(0)-&amp;gt;childNodes-&amp;gt;item(0)-&amp;gt;nodeValue;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo ("&amp;lt;p&amp;gt;&amp;lt;a href='" . $item_link&lt;br /&gt;&amp;nbsp;&amp;nbsp;. "'&amp;gt;" . $item_title . "&amp;lt;/a&amp;gt;");&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo ("&amp;lt;br /&amp;gt;");&lt;br /&gt;&amp;nbsp;&amp;nbsp;echo ($item_desc . "&amp;lt;/p&amp;gt;");&lt;br /&gt;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;?&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-412407641036583639?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/412407641036583639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-example-ajax-rss-reader.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/412407641036583639?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/412407641036583639?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-example-ajax-rss-reader.html' title='PHP Example - AJAX RSS Reader'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUUHR3c9eyp7ImA9WhJSFUk.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-3276960452465879769</id><published>2012-07-05T19:52:00.000-07:00</published><updated>2012-07-05T19:53:56.963-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T19:53:56.963-07:00</app:edited><title>PHP Mail Functions</title><content type='html'>&lt;br /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Mail Introduction&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The mail() function allows you to send emails directly from a script.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Requirements&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
For the mail functions to be available, PHP requires an installed and working email system. The program to be used is defined by the configuration settings in the php.ini file.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Installation&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The mail functions are part of the PHP core. There is no installation needed to use these functions.&lt;/div&gt;
&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
Runtime Configuration&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
The behavior of the mail functions is affected by settings in the php.ini file.&lt;/div&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
Mail configuration options:&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="20%"&gt;Name&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="15%"&gt;Default&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="42%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="23%"&gt;Changeable&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;SMTP&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"localhost"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Windows only: The DNS name or IP address of the SMTP server&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;smtp_port&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;"25"&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Windows only: The SMTP port number. Available since PHP 4.3&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;sendmail_from&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Windows only: Specifies the "from" address to be used in email sent from PHP&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_ALL&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;sendmail_path&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;NULL&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Unix systems only: Specifies where the sendmail program can be found (usually /usr/sbin/sendmail or /usr/lib/sendmail)&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;PHP_INI_SYSTEM&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;h2 style="background-color: transparent; font-family: verdana, helvetica, arial, sans-serif; font-size: 19px; font-weight: normal; margin-bottom: 10px; margin-top: 10px;"&gt;
PHP Mail Functions&lt;/h2&gt;
&lt;div style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;"&gt;
&lt;b&gt;PHP&lt;/b&gt;: indicates the earliest version of PHP that supports the function.&lt;/div&gt;
&lt;table class="reference" style="border-collapse: collapse; border: 1px solid rgb(195, 195, 195); color: black; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; width: 633px;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="20%"&gt;Function&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="75%"&gt;Description&lt;/th&gt;&lt;th align="left" style="background-color: #e5eecc; border: 1px solid rgb(195, 195, 195); padding: 3px; text-align: left; vertical-align: top;" valign="top" width="5%"&gt;PHP&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;ezmlm_hash()&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Calculates the hash value needed by the EZMLM mailing list system&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;&lt;a href="http://www.w3schools.com/php/func_mail_mail.asp" style="background-color: transparent; color: #900b09;"&gt;mail()&lt;/a&gt;&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;Allows you to send emails directly from a script&lt;/td&gt;&lt;td style="border: 1px solid rgb(195, 195, 195); padding: 3px; vertical-align: top;" valign="top"&gt;3&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br style="font-family: verdana, helvetica, arial, sans-serif; font-size: 12px;" /&gt;&lt;hr style="background-color: #d4d4d4; border: 0px; clear: both; color: #d4d4d4; font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; height: 1px;" /&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-3276960452465879769?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/3276960452465879769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-mail-functions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3276960452465879769?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/3276960452465879769?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/php-mail-functions.html' title='PHP Mail Functions'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUcGQXY5fCp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-8840319568375375282</id><published>2012-07-05T19:10:00.001-07:00</published><updated>2012-07-05T22:37:00.824-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T22:37:00.824-07:00</app:edited><title>Calling Polygon in Google Maps</title><content type='html'>&lt;a href="http://4.bp.blogspot.com/-hnkNAhziqIA/T_Z4qNLtrAI/AAAAAAAAAL8/joI0m6DdZ9E/s1600/01a.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="93" src="http://4.bp.blogspot.com/-hnkNAhziqIA/T_Z4qNLtrAI/AAAAAAAAAL8/joI0m6DdZ9E/s320/01a.jpg" width="320" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;h2 class="example" style="background-color: transparent; color: #617f10; font-family: verdana, helvetica, arial, sans-serif; font-size: 14px; font-weight: normal; margin-bottom: 10px; margin-top: 0px;"&gt;
Example&lt;/h2&gt;
&lt;div class="example_code notranslate" style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 606px;"&gt;
&lt;br /&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
function Polygon(_nama, _points, _color, _info, _wlyID, _tipeRegion){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;//_color = get_random_color();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;var _polygon = new google.maps.Polygon({&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;paths: _points,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;strokeColor: "#ffffff",&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;strokeOpacity: 0.8,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;strokeWeight: 1,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;fillColor: _color,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;fillOpacity: 0.35&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;});&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;//Adding Listener&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;google.maps.event.addListener(_polygon, "click", FUNC_infowindow);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;//Function Infowindow&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;function FUNC_infowindow(event){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;var content_header = "Loading...";&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;var content_config = "";&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;var view_all_content = content_header + content_config;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_infowindow.close();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_infowindow = new google.maps.InfoWindow();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;google.maps.event.addListener(_infowindow, 'domready', function() { &amp;nbsp; &amp;nbsp;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;if (_showRegionTipe=="kecamatan_populasi"){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;_infowindow.close();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;closeDialog();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;$("#dialog_container").load('dataKecamatan.php?kd_kec='+_wlyID+'&amp;amp;bulan='+global_bulan+'&amp;amp;tahun='+global_tahun);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;}&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;if (_showRegionTipe=="kabupaten_populasi"){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;_infowindow.close();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;closeDialog();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;$("#dialog_container").load('dataKabupaten.php?kd_kab='+_wlyID+'&amp;amp;bulan='+global_bulan+'&amp;amp;tahun='+global_tahun);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;}&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;else {&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;     &lt;/span&gt;$("#tabs").tabs();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;}&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;});&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_infowindow.setContent(view_all_content);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_infowindow.setPosition(event.latLng);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_infowindow.open(map);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;};&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;//return to fuction&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;_tipeRegion.push(_polygon);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;};&lt;/div&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-8840319568375375282?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/8840319568375375282/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/calling-polygon-in-google-maps.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/8840319568375375282?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/8840319568375375282?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/calling-polygon-in-google-maps.html' title='Calling Polygon in Google Maps'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-hnkNAhziqIA/T_Z4qNLtrAI/AAAAAAAAAL8/joI0m6DdZ9E/s72-c/01a.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;CUUEQ3s_eyp7ImA9WhJSFUg.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-7541061343428776140</id><published>2012-07-05T19:06:00.003-07:00</published><updated>2012-07-05T22:40:02.543-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T22:40:02.543-07:00</app:edited><title>Marker Google Maps in PHP + Radius</title><content type='html'>&lt;br /&gt;
&lt;div&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;
&lt;a href="http://1.bp.blogspot.com/-bUJFBrJ4I4Q/T_Z6FXZx7II/AAAAAAAAAMU/FcRLOhar20Y/s1600/01c.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="93" src="http://1.bp.blogspot.com/-bUJFBrJ4I4Q/T_Z6FXZx7II/AAAAAAAAAMU/FcRLOhar20Y/s320/01c.jpg" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class="code notranslate" style="background-color: #e5eecc; border: 1px solid rgb(212, 212, 212); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; margin: 0px; padding: 5px; width: 622px;"&gt;
&lt;div style="background-color: white; border: 1px solid rgb(212, 212, 212); font-family: 'courier new'; font-size: 13px; padding: 4px; width: 612px;"&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
function gambarMarker(_nama, _lokasi, _codeDealer, _namaArray, _tipeDealer, _iconimage, _circleColor, _namaArray2, _radius){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;var _shadowimage = '../icon/logo_dealer_shadow.png';&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;var _marker = new google.maps.Marker({&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;position: _lokasi,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;title: _nama,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;animation: google.maps.Animation.DROP,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;icon: _iconimage,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;shadow: _shadowimage&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;});&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;google.maps.event.addListener(_marker, "click", FUNC_infowindow);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;function FUNC_infowindow() {&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_infowindow.close();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;if (_tipeDealer=="tipe:HondaDealer"){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;closeDialog();&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;$("#dialog_container").load('dataMarker.php?dlr='+_codeDealer);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;};&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;google.maps.event.addListener(_marker, "click", function(){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_marker.setAnimation(google.maps.Animation.BOUNCE);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;setTimeout(function() {&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;    &lt;/span&gt;_marker.setAnimation(null);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;}, 2250);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;});&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;//Return dari Fungsi Menggambar Marker&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;_namaArray.push(_marker);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;if(_radius &amp;gt; 0){&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;//Gambar Circle&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;var _circle = new google.maps.Circle({&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;strokeColor: &amp;nbsp;"000000",&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;strokeOpacity: 0.8,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;strokeWeight: 2,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;fillColor: &amp;nbsp;_circleColor,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;fillOpacity: 0.35,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;center: _lokasi,&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;radius: _radius&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;});&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;//_circle.bindTo('center', _marker, 'position');&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;_namaArray2.push(_circle);&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;};&lt;/div&gt;
&lt;div style="font-family: 'Times New Roman'; font-size: medium;"&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br class="Apple-interchange-newline" /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-7541061343428776140?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/7541061343428776140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/marker-google-maps-in-php.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/7541061343428776140?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/7541061343428776140?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/marker-google-maps-in-php.html' title='Marker Google Maps in PHP + Radius'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-bUJFBrJ4I4Q/T_Z6FXZx7II/AAAAAAAAAMU/FcRLOhar20Y/s72-c/01c.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A04FSHs-fSp7ImA9WhJSFU4.&quot;'><id>tag:blogger.com,1999:blog-302276586085671298.post-2841879573152089804</id><published>2012-07-05T18:58:00.000-07:00</published><updated>2012-07-05T18:58:39.555-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2012-07-05T18:58:39.555-07:00</app:edited><title>Web Services (Visual Basic)</title><content type='html'>&lt;br /&gt;
&lt;h1 style="border-bottom-color: rgb(153, 185, 225); border-bottom-style: solid; border-bottom-width: 1px; color: #274e80; font-family: Corbel, sans-serif; font-size: 1.8em; font-weight: normal; margin-top: 1.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="An_Example"&gt;An Example&lt;/span&gt;&lt;/h1&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
To understand, let's take a look at a hypothetical example. Imagine a class like this:&lt;/div&gt;
&lt;pre style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 16px; margin: 1em; padding: 5px; text-align: left;"&gt;Dim ournews As NewsTicker= new NewsTicker()
Dim headline As String = ournews.GetHeadline(1)
Console.WriteLine(headline)
&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
This could be a local function operating on your own machine, or it could be a web service. If it were a web service, the actual code that returns the headline might be running on some other machine somewhere on the internet. You don't have to know what it's doing; there might be a database on the other end of the service, a screen-scraper, or a carrier-pigeon-message translation service. The code on the remote webserver might be PHP, Java, Python, or COBOL. That's the point of web services.&lt;/div&gt;
&lt;h1 style="border-bottom-color: rgb(153, 185, 225); border-bottom-style: solid; border-bottom-width: 1px; color: #274e80; font-family: Corbel, sans-serif; font-size: 1.8em; font-weight: normal; margin-top: 1.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Technical_Background:_SOAP"&gt;Technical Background: SOAP&lt;/span&gt;&lt;/h1&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
Under the hood, Mono uses a protocol called SOAP to make web services work just like other methods. In the example above, when GetHeadline() is called, Mono generates an XML file that describes an information request. It could look like this:&lt;/div&gt;
&lt;pre style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 16px; margin: 1em; padding: 5px; text-align: left;"&gt;&amp;lt;webservice url="http://somenewsservice.com/webservice"&amp;gt;
        &amp;lt;function name="GetHeadLine" &amp;gt;
                &amp;lt;int name="number" value="1" /&amp;gt;
        &amp;lt;/function&amp;gt;
&amp;lt;/webservice&amp;gt;
&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
In the real world it looks very different and much more complicated, but that's the basic logic. The remote webserver reads the request, interprets it, and runs some business logic. It sends back an XML response packet something like this:&lt;/div&gt;
&lt;pre style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 16px; margin: 1em; padding: 5px; text-align: left;"&gt;&amp;lt;webservice url="http://somenewsservice.com/webservice"&amp;gt;
        &amp;lt;function name="GetHeadLine" &amp;gt;
                &amp;lt;int name="return" value="This is some new from CNN" /&amp;gt;
        &amp;lt;/function&amp;gt;
&amp;lt;/webservice&amp;gt;
&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
Mono knows how to take XML response packets and turn them into data your application can use.&lt;/div&gt;
&lt;h1 style="border-bottom-color: rgb(153, 185, 225); border-bottom-style: solid; border-bottom-width: 1px; color: #274e80; font-family: Corbel, sans-serif; font-size: 1.8em; font-weight: normal; margin-top: 1.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Internal_Communication"&gt;Internal Communication&lt;/span&gt;&lt;/h1&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
In order to use a web service, Mono requires a descriptor file written in WSDL (Web Services Description Language). WSDL is an XML description of the API for a given web service. Mono's tool&amp;nbsp;&lt;tt style="background-color: #f8f8f8; border: 1px solid rgb(238, 238, 238); font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 1em;"&gt;wsdl&amp;nbsp;&lt;/tt&gt;knows how to translate a WSDL file into a C# library that can run that web service. The local library file is a wrapper around the web service, but it gets installed into the GAC just like any other library.&lt;/div&gt;
&lt;h1 style="border-bottom-color: rgb(153, 185, 225); border-bottom-style: solid; border-bottom-width: 1px; color: #274e80; font-family: Corbel, sans-serif; font-size: 1.8em; font-weight: normal; margin-top: 1.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Consuming_Web_Services"&gt;Consuming Web Services&lt;/span&gt;&lt;/h1&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
As an example of what can be done with web services, let's use a part of Google's publicly accessible web services, the Google spell checker. When you enter "spelll checker" in Google, it will ask you if you meant "spell checker". With the Google web service, you can use that function directly from C#.&lt;/div&gt;
&lt;h2 style="color: #19194b; font-family: Corbel, sans-serif; font-size: 1.4em; font-weight: normal; line-height: 1.5em; margin-top: 0.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="First_Steps:_Creating_the_Local_Stub"&gt;First Steps: Creating the Local Stub&lt;/span&gt;&lt;/h2&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
To create the local library that will invoke Google's web service, we'll use their WSDL file. You can get the Google WSDL files at&lt;a class="external free" href="http://api.google.com/GoogleSearch.wsdl" rel="nofollow" style="color: #0d71c0; text-decoration: none;"&gt;http://api.google.com/GoogleSearch.wsdl&lt;/a&gt;. To generate the C# stub source type:&lt;/div&gt;
&lt;pre class="bash" style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-size: 1em; margin: 1em; padding: 5px; text-align: left;"&gt;wsdl http:&lt;span style="color: black; font-weight: bold;"&gt;//&lt;/span&gt;api.google.com&lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;GoogleSearch.wsdl -language:vb&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
This will result in&amp;nbsp;&lt;tt style="background-color: #f8f8f8; border: 1px solid rgb(238, 238, 238); font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 1em;"&gt;GoogleSearchService.vb&amp;nbsp;&lt;/tt&gt;. Compile with:&lt;/div&gt;
&lt;pre class="bash" style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-size: 1em; margin: 1em; padding: 5px; text-align: left;"&gt;vbnc &lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;target:library GoogleSearchService.vb -r:System.Web.Services.dll,System.Xml.dll&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
The above command line instructs the compiler to generate a library, and to reference (-r:) the System.Web.Services library.&lt;/div&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
Now you have the final stub assembly:&amp;nbsp;&lt;tt style="background-color: #f8f8f8; border: 1px solid rgb(238, 238, 238); font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 1em;"&gt;GoogleSearchService.dll&lt;/tt&gt;&lt;/div&gt;
&lt;h2 style="color: #19194b; font-family: Corbel, sans-serif; font-size: 1.4em; font-weight: normal; line-height: 1.5em; margin-top: 0.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Google_License_key"&gt;Google License key&lt;/span&gt;&lt;/h2&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
Google does lock the web service with a special key. You can obtain a key at&amp;nbsp;&lt;a class="external free" href="https://www.google.com/accounts/NewAccount" rel="nofollow" style="color: #0d71c0; text-decoration: none;"&gt;https://www.google.com/accounts/NewAccount&lt;/a&gt;. This key allows ~50 actions per day. You must replace my sample key with yours.&lt;/div&gt;
&lt;h2 style="color: #19194b; font-family: Corbel, sans-serif; font-size: 1.4em; font-weight: normal; line-height: 1.5em; margin-top: 0.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Application_1:_The_Google_Spell_Checker_on_a_Webpage"&gt;Application 1: The Google Spell Checker on a Webpage&lt;/span&gt;&lt;/h2&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
We will start by using the spell checker on a simple web page. First you will have to drop the stub GoogleSearchService.dll in your ASP.NET bin directory. The example is very simple to understand.&lt;/div&gt;
&lt;pre style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 16px; margin: 1em; padding: 5px; text-align: left;"&gt;&amp;lt;%@ Page Language="VB"&amp;nbsp;%&amp;gt;
&amp;lt;script runat="Server"&amp;gt;

Sub Page_Load (ByVal sender As Object, ByVal e As EventArgs)
    
 // Put your license key here
 Const licensekey As String = "FCszK/FQFHJWQE1n5OkeGmZAWzCFY5+7"
 
 // Create a Google Search object
 Dim Service1 As GoogleSearchService = new GoogleSearchService()
 
 // Ask for spelling suggestion
 // The first argument is your key
 // The second one, the text the user should enter.
 
 Dim suggestion As String = Service1.doSpellingSuggestion(licensekey, TextBox1.Text)
 
 // Display the suggestion, if any
 If suggestion Is Nothing Then
  Label1.Text = "[No suggestion]"
 Else 
  Label1.Text = suggestion
 End If
End Sub

&amp;lt;/script&amp;gt;

&amp;lt;html&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;h2&amp;gt;Hello WebService!&amp;lt;/h2&amp;gt;
&amp;lt;form runat="server"&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;asp:TextBox id="TextBox1" runat="server"&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;asp:Label id="Label1" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;p&amp;gt;&amp;lt;input type="submit" value="Submit" runat="server"&amp;gt;&amp;lt;/input&amp;gt;&amp;lt;/p&amp;gt;
&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
This will look like this:&lt;/div&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
[Image:google.png]&lt;/div&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
The code where the web service is accessed is marked red. To test the service enter "spelll checker" for example, and watch it correct your spelling.&lt;/div&gt;
&lt;h2 style="color: #19194b; font-family: Corbel, sans-serif; font-size: 1.4em; font-weight: normal; line-height: 1.5em; margin-top: 0.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Application_2:_A_Console_Application"&gt;Application 2: A Console Application&lt;/span&gt;&lt;/h2&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
You can also consume the WebService with a Console or Gtk# application. You'll need to reference GoogleSearchService.dll when you compile.&lt;/div&gt;
&lt;pre class="bash" style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-size: 1em; margin: 1em; padding: 5px; text-align: left;"&gt;vbnc &lt;span style="color: black; font-weight: bold;"&gt;/&lt;/span&gt;r:GoogleSearchService.dll spellchecker.vb&lt;/pre&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
The Code:&lt;/div&gt;
&lt;pre style="background-color: #f8f8f8; border-color: rgb(221, 221, 221); border-style: solid; border-width: 1px 1px 1px 5px; color: #333333; font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 16px; margin: 1em; padding: 5px; text-align: left;"&gt;Imports System

Module UseWSInMono
    Public Sub Main(ByVal args() As String)

        Dim licensekey As String = "FCszK/FQFHJWQE1n5OkeGmZAWzCFY5+7"
        Dim Service1 As GoogleSearchService = New GoogleSearchService()
        Dim suggestion As String = Service1.doSpellingSuggestion(licensekey, args(0))

        Console.WriteLine(suggestion)
    End Sub
End Module
&lt;/pre&gt;
&lt;h2 style="color: #19194b; font-family: Corbel, sans-serif; font-size: 1.4em; font-weight: normal; line-height: 1.5em; margin-top: 0.25em; text-align: left;"&gt;
&lt;span class="mw-headline" id="Documentation"&gt;Documentation&lt;/span&gt;&lt;/h2&gt;
&lt;div style="color: #333333; font-family: Corbel, sans-serif; font-size: 16px; text-align: left;"&gt;
If you want to do more, you will require documentation of the web service. For Google's API, one place to look is in the comments of the WSDL file. Individual web service providers are responsible for providing good documentation, though you may be able to use the C# introspection tools or read the source generated by&amp;nbsp;&lt;tt style="background-color: #f8f8f8; border: 1px solid rgb(238, 238, 238); font-family: Consolas, Courier, 'DejaVu Sans Mono', monospace; font-size: 1em;"&gt;wsdl&amp;nbsp;&lt;/tt&gt;for a slightly better idea of how any given web service works.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/302276586085671298-2841879573152089804?l=java-php-vb.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://java-php-vb.blogspot.com/feeds/2841879573152089804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/web-services-visual-basic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/2841879573152089804?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/302276586085671298/posts/default/2841879573152089804?v=2'/><link rel='alternate' type='text/html' href='http://java-php-vb.blogspot.com/2012/07/web-services-visual-basic.html' title='Web Services (Visual Basic)'/><author><name>Gabenk - admin</name><uri>http://www.blogger.com/profile/15639202309297285963</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>