Chapter 2 Getting Started with PowerDynamo


Viewing template output in a browser

You can access a PowerDynamo Web site in several ways:

In previous tutorials, we have been using Sybase Central to access the site locally. In this tutorial we first use a Web browser and the Personal Web Server to access the site locally, and then use a Web browser and the Personal Web Server to access the site across a local-area network.

Note   Browser and TCP/IP required You must have a Web browser or other Web client to run this tutorial.

Web browsers require a TCP/IP protocol stack to communicate with a Web server, even if the server is on the same machine and there is no intervening network. You must have TCP/IP installed to use PowerDynamo.

Accessing the Web site locally

Web clients generally access data across the Internet or other network. They exchange information with a Web server, which relays the information in the addressed document to the Web client. In this tutorial, the Web server is on the same computer as the browser or other Web client.

Steps To access data in the PowerDynamo sample Web site from a browser or other Web client:

  1. Start the Personal Web Server.



    The software installation configures the Personal Web Server to access the PowerDynamo sample Web site, so that no further configuration is needed.

  2. Start your browser or other Web client.

  3. Type the following URL into the address field of your browser or Web client:

    http://localhost/Site/products.stm




    The products template output, including the results of a query, is processed by the Web server and displayed in your browser.


Notes

Accessing the Web site over a network

Although the Personal Web Server is designed primarily for testing and development work, and for same-machine (local) access to Web data, it can be used as a normal Web server and accessed from other machines on a local network or over the Internet.

With its small footprint, and its simplicity, the Personal Web Server is suited for use for an Intranet site server for workgroups. Workgroups can use Intranet sites as a place to share information. If the workgroup grows to the point that the 10 connection limit of the Personal Web Server is no longer sufficient, a third party web server should be used.

This tutorial shows how to access Web information on a Personal Web Server across a local-area TCP/IP network.

Note  

Required facilities: You require a local-area TCP/IP network and a Web browser to follow this tutorial.

Steps To access Web information on a Personal Web Server across a network:

  1. Ensure your Personal Web Server is running (there should be a small "tray icon" at the opposite end of the taskbar from the Start menu if the Personal Web Server is running).

  2. Take note of the IP address or the name of the machine on which the Personal Web Server is running. A typical IP address is of the following form: 123.45.67.220. If you are using domain name services, you can use the machine name instead of the TCP/IP address.

  3. Start a Web browser on another machine on the network.

  4. Enter the following URL in the browser:

    http://ip-number/Site/products.stm


    or

    http://machine name/Site/products.stm


    The products template output, including the results of a query, is processed by the Personal Web Server and relayed across the network to be displayed in your browser.


Notes

 


Copyright © 1999 Sybase, Inc. All rights reserved.