Test PHP is installed (Macintosh)
The Apache Web server that you can check Macintosh to go up through running test page and PHP apply program server.
But, when the content that handles PHP page and MySQL database in use Web server, must configure this server first, can use PHP and MySQL what make.
If want to check Apache Web server and server of PHP application process, execute the following operation please:
1, the specification of the article that goes up according to Macromedia Web site configures this server.
2, be in Dreamweaver or in any text editors, found file of a simple text to name its for Timetest.php.
3, in this file, input the following code:
This code shows the time that handles this page on the server.
4, duplicate this file to go up to Macintosh / in Users/your_user_name/Sites folder.
This Sites folder is folder of your root of individual of Apache Web server.
5, in the Web browser in you, input the following URL, press Return key next:
Http://localhost/~your_user_name/timetest.php
Test page should be opened and show time, following place show:
This designation time calls dynamic content, because you request this page every time,it produces change. Click the pushbutton of ” refresh ” on the browser to make the new page that has different time.
Attention: Examine source code (the ” in Safari is examined “>”Examine source file ” ) to will affirm this page did not use any clients to carry JavaScript to achieve this result.
If this page was not pressed,expect means job, check put whether possibly in the following mistake:
This file does not have.php patulous name.
Include in URL key in a mistake. Whether is the examination put in the mistake to ensure to there is sprit after file name, for example Http://localhost/~your_user_name/timetest.php/ . Ensure to there is swung dash before your user name at the same time (~) .
Include in page code key in a mistake.
Apache server did not move. Open ” of option of ” systematic head, ” category is shared in ” in, examine whether to enable ” individual Web to share ” .
After checking server software, for your Web application the program founds a folder.
