Print Page | Close Window

Few Small Questions

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10856
Printed Date: 31 March 2026 at 5:13am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Few Small Questions
Posted By: neotrix
Subject: Few Small Questions
Date Posted: 13 June 2004 at 11:21pm
  1. What is <% Option Explicit %> and what dose it has to do with The definition of variable
  2. when the variable (Excluding Arrays) works without Defining it (Dim strblablabla) then why define it ???
  3. Can asp read a text file using http Stream ? like php ? i mean can asp read a file from http://mysite.com/blablabla/file.txt - http://mysite.com/blablabla/file.txt ? php can, but dont think asp can as well..


-------------
http://www.muhammadbinyusrat.com/blog/" rel="nofollow - Say to the believing men..



Replies:
Posted By: 808Rider
Date Posted: 14 June 2004 at 1:28am

1. Option Explicit : http://www.devx.com/asp/Article/16802/0/page/ - http://www.devx.com/asp/Article/16802/0/page/

 



-------------
PodcastPUP: http://podcastpup.com - http://podcastpup.com
808Talk: http://808Talk.com - http://808Talk.com
808TTV: http://808Talk.tv - http://808Talk.tv


Posted By: Mart
Date Posted: 14 June 2004 at 2:46am

1. It prevents usage of undefined variables

2. It speeds up your code and development time. I.e. is you mis-type a variable name i.e. tabel instead of table ASP will just create a new blank variable called tabel. Which will confuse you because you would think that table has no value - and it has. With Option Explicit turned on when ASP see's the tabel variable it will throw an error because it is not defined. You can then just rewrite the variable name and you don't have to bother with any diagnostics.

3. Yes, ASP can. Take a look at Microsofts XML HTTP component



Posted By: dpyers
Date Posted: 14 June 2004 at 11:59am
Example of XMLHTTP here...
http://www.sitetechnique.com/stuff/ - http://www.sitetechnique.com/stuff/

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Semikolon
Date Posted: 14 June 2004 at 12:08pm
Please note that when using XMLHTTP the page generation time will go up.. sometimes you may maybe get script timeout errors..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net