Learning ASP Series - Installing Personal Web Server

Written by Amrit Hallan

Continued from page 1


And when I have to viewrepparttar page on my browser, I'll have to type


asrepparttar 131917 URL.

After you've installedrepparttar 131918 PWS, it's icon appears on your desktop, and atrepparttar 131919 bottom right of your screen. Click or double-click onrepparttar 131920 icon. Onrepparttar 131921 main window, you should seerepparttar 131922 message:

Web publishing is on. Your Home page is available at http://servername

The servername isrepparttar 131923 name you use instead of localhost. But if you are confused about this name game, just use localhost and it should always work if you haven't been naughty and messing around with your computer's basic setup.

Before you proceed further, openrepparttar 131924 Windows Explorer, go to c:inetpubwwwroot and create a new folder here byrepparttar 131925 name of "learnASP" (how boringly predictable! So you can name it something else). We'll be storing ALL our files in this folder.

Hence, whenever we want to run a newly created file, we'd type inrepparttar 131926 location bar:

http://localhost/learnASP/newfile.asp and press Enter.

Ok, next, click onrepparttar 131927 Advanced tab. Select Enable Default Document

Inrepparttar 131928 Default Document(s) box, typerepparttar 131929 list of file names you would like to use as your default file oncerepparttar 131930 name of your site is type inrepparttar 131931 browser.

If you have no idea what'srepparttar 131932 default file, it isrepparttar 131933 file that answers your call when you type a specific URL without a specific file. For instance, if I type http://www.bytesworth.comrepparttar 131934 file that actually gets loaded by default is DEFAULT.ASP. This depends onrepparttar 131935 setting. Some servers use INDEX.ASP or INDEX.HTML or INDEX.SHTML. It all depends onrepparttar 131936 file parsing set up on your web-hosting server.

Then click onrepparttar 131937 Edit Properties button, after selectingrepparttar 131938 Home folder. There are three select boxes, viz., "Read", "Execute", "Script". Select all of them. The selections tellrepparttar 131939 server that we want to execute server side scripts in our ASP pages. ASP pages won't run ifrepparttar 131940 server can't read and execute them.

Closerepparttar 131941 window, and your PWS is running. Of course do not run two servers simultaneously. So if you installedrepparttar 131942 Apache Web Server and left it running, and then loaded PWS, there is going to be some problem for you to sort out.

Amrit Hallan is a freelance web designer. For all web site development and web promotion needs, you can get in touch with him at http://www.bytesworth.com. For more such articles, visit http://www.bytesworth.com/articles and http://www.bytesworth.com/learn.

Learning ASP Series -- Getting Your Hands Dirty With VBScript

Written by Amrit Hallan

Continued from page 1

<%=name%>! An ancient Egyptian mummy!

Another example:

<%@Language=VBScript%> <% Option Explicit %> Testing a VBSCript< itle> </head> <body> <% Dim number1, number2 number1 = 33 number2 = 44 %><p><p>The product of <%=number1%> and <%=number2%> is <%=number1 * number2%></p><p></body> </html><p>So now its amply clear that whenever you want to insert Server Side code, or a part of it, you enclose it within <% %>.<p>You can try making short programs and test run<IMG height=12 src="/the2.jpg" alt="repparttar "> page.<p> <br><img src="images/ata.gif"><br> <p>Amrit Hallan is a freelance web designer. For all web site development and web promotion needs, you can get in touch with him at http://www.bytesworth.com. For more such articles, visit http://www.bytesworth.com/articles and http://www.bytesworth.com/learn.<br><br><br></font></td><!-- google_ad_section_end --></tr><tr><td>    <a class="mlink" href="Learning_ASP_Series_-_Installing_Personal_Web_Server-31917.htm"><</a>Back to Page 1</td></tr></table><script type="text/javascript"><!-- google_ad_client = "pub-5766870852072819"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_channel ="8831454965"; google_color_border = "CFB9A1"; google_color_bg = "CFB9A1"; google_color_link = "000000"; google_color_url = "431B02"; google_color_text = "431B02"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </td> </tr> </table> <table width="770" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> </tr> <tr> <td height="48" align="center" background="images/bg_nav_bottm.jpg"><span class="style3">ImproveHomeLife.com © 2005<br> <a href="terms.html" rel="nofollow">Terms of Use</a></span></td> </tr> </table></td> </tr> </table> <script type="text/javascript"> var HASH_ESCAPED="%23"; function TrackIt(adUnit){ if (window.status) { var adDomain = escape(window.status.substring(6)); var pyPage = document.location.pathname; var params = document.location.search; var hasAnchor = params.lastIndexOf(HASH_ESCAPED)!= -1; params = hasAnchor? (params.substring(0, params.lastIndexOf(HASH_ESCAPED))) : params; pyPage = escape(pyPage.substring(pyPage.lastIndexOf('/') + 1)); pyPage = pyPage + params; var curTime = new Date().valueOf(); var bug = new Image(); bug.src = '/track/adsenseTrack.php?pyPage=' + pyPage + '&adDomain=' + adDomain + '&adUnit=' + adUnit + "&time=" + curTime; } } function TrackIt0() {TrackIt(0); } function TrackIt1() {TrackIt(1); } function TrackIt2() {TrackIt(2); } var elements = document.getElementsByTagName("iframe"); for (var i = 0; i < elements.length; i++) { if(elements[i].src.indexOf('googlesyndication.com') > -1) { //elements[i].onfocus = TrackIt; if (i==0) elements[i].onfocus = TrackIt0; if (i==1) elements[i].onfocus = TrackIt1; if (i==2) elements[i].onfocus = TrackIt2; } } </script> <!--WEBBOT bot="HTMLMarkup" startspan ALT="Site Meter" --> <script type="text/javascript" language="JavaScript">var site="s19improve"</script> <script type="text/javascript" language="JavaScript1.2" src="http://s19.sitemeter.com/js/counter.js?site=s19improve"> </script> <noscript> <a href="http://s19.sitemeter.com/stats.asp?site=s19improve" target="_top"> <img src="http://s19.sitemeter.com/meter.asp?site=s19improve" alt="Site Meter" border=0></a> </noscript> <!-- Copyright (c)2002 Site Meter --> <!--WEBBOT bot="HTMLMarkup" Endspan --> </body> </html>