MACROMEDIA DREAMWEAVER 8-GETTING STARTED WITH DREAMWEAVER Getting Started page 310

Table of Contents

Advertisement

310 Setup for Sample PHP Site
5.
In your web browser, enter the following URL and press Return:
http://localhost/~your_user_name/timetest.php
The test page should open and display a time of day.
The specified time is known as dynamic content because it changes every
time you request the page. Click your browser's Refresh button to generate
a new page with a different time.
Looking at the source code (View > View Source in Safari) will confirm that
the page does not use any client-side JavaScript to achieve this effect.
If the page doesn't work as expected, check for the following possible
errors:
The file does not have a .php extension.
The URL contains a typing mistake. Check for errors and make sure
the filename is not followed by a slash, such as http://localhost/
~your_user_name/timetest.php/. Also make sure you included the tilde
(~) before your user name.
The page code contains a typing mistake.
The Apache server is not running. Look in System Preferences, in the
Sharing category, to see whether Personal Web Sharing is enabled.
After testing and testing the server software, create a root folder for your
web application.
Creating a root folder (Macintosh)
After the server software is installed, create a root folder for your web
application on the Macintosh.
To create a root folder for your web application:
Create a folder called MySampleApps in the /Users/your_user_name/
Sites folder.
Apache will process any page in this folder or in any of its subfolders in
response to an HTTP request from a web browser.
After configuring your system, you must define a Dreamweaver site.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver 8

Table of Contents