SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 738 | Next

David A. Karp

"Windows Vista Annoyances: Tips, Secrets, and Hacks"


The key to a CGI script, though, is the WScript.Echo command, which is
used to send your text output to the web server. Here??™s an example of a simple
four-line script that generates a basic HTML-formatted* web page:
WScript.Echo ""
WScript.Echo ""
WScript.Echo "

Here Comes the Metric System!

"
WScript.Echo ""
* A discussion of HTML (HyperText Markup Language) is beyond the scope of this book, but there
are many adequate HTML references on the Web.
Object References | 539
Scripting and
Automation
To run the script, first save it in the executable folder you configured earlier. If
the IISAdmin service is not currently running, start it now (via services.msc).
Then, open a web browser, and type this URL into the address bar:
http://localhost/foldername/script.vbs
where foldername is the Alias you chose for the executable folder, and
script.vbs is the filename of the script. If all goes well, you should see our
message, ???Here Comes the Metric System!??? right in the browser window. If
it doesn??™t work, check the permissions of the script file and executable folder
(right-click, select Properties, and choose the Security tab). See Chapter 8 for
more information on user accounts, ownership, and file permissions.
With IIS installed and active, your PC is a web server, which means you can
just as easily call the script from a remote computer, as long as you??™re connected
to a network or to the Internet, and you know the IP address or URL
of your machine (visit http://www.


Pages:
726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6