Configuring your system (PHP) 309
Configuring your Macintosh system (PHP)
If you’re a Macintosh user, you can run PHP pages on your computer using
the Apache web server and PHP application server installed with your
operating system. Configuring your system consists of making sure the web
server and PHP application server are working, and then creating a root
folder for your PHP files.
This section contains the following topics:
■
“Testing the PHP installation (Macintosh)” on page 309
■
“Creating a root folder (Macintosh)” on page 310
For more information on Apache and PHP on the Macintosh, see the
following websites:
■
http://developer.apple.com/internet/opensource/php.html
■
www.entropy.ch/software/macosx/php/
Testing the PHP installation (Macintosh)
You can test the Apache web server and PHP application server on your
Macintosh by running a test page.
However, before you can use the web server to serve PHP pages and
content from MySQL databases, you must configure the server to work
with PHP and MySQL. For information on this process, see
www.macromedia.com/go/php_macintosh
.
To test the Apache web server and PHP application server:
1.
Configure the server as described in the article on the Macromedia
website.
2.
In Dreamweaver or any text editor, create a plain text file and name it
timetest.php.
3.
In the file, enter the following code:
<p>This page was created at <b>
<?php echo date("h:i:s a", time()); ?>
</b> on the computer running PHP.</p>
This code displays the time the page was processed on the server.
4.
Copy the file to the /Users/
your_user_name
/Sites folder on your
Macintosh.
This Sites folder is your personal root folder for the Apache web server.
Содержание DREAMWEAVER 8-GETTING STARTED WITH...
Страница 1: ...Getting Started with Dreamweaver...
Страница 8: ...8 Contents...
Страница 10: ......
Страница 46: ...46 Dreamweaver Basics...
Страница 48: ......
Страница 128: ...128 Tutorial Formatting Your Page with CSS...
Страница 136: ...136 Tutorial Publishing Your Site...
Страница 138: ......
Страница 189: ...Add a Repeat Region XSLT object 189 3 Select Insert XSLT Objects Repeat Region...
Страница 196: ...196 Tutorial Displaying XML Data...
Страница 216: ......
Страница 230: ...230 Understanding Web Applications...
Страница 236: ...236 Installing a Web Server...
Страница 254: ...254 Setup for Sample ColdFusion Site...
Страница 268: ...268 Setup for Sample ASP NET Site...
Страница 284: ...284 Setup for Sample ASP Site...
Страница 300: ...300 Setup for Sample JSP Site...
Страница 320: ...320 Setup for Sample PHP Site...