Rob:
Check out www.devshed.com/Server_side/PHP, it is very good source of
information for setting up PHP and Apache. We setup Apache, PHP3 and
MySQL here at work, and it was a bit of challenge to get it all working. I
needed all of these components for our internal web based email using IMP.
We didn't do alot of PHP programing, but during the setup I ran some
test PHP scripts to get things up and running. The scripts I used were
embedded in html (or php3) code like the following:
<HTML>
<HEAD>
<TITLE>Our first PHP3.0 script</TITLE>
</HEAD>
<BODY>
<CENTER>Our first PHP3.0 script</CENTER>
<?
/* the above "<?" signals that the PHP script has begun */
$today = date("Y-m-d");
PRINT "<CENTER>Today is: $today.</CENTER>";
# the following "?>" closes the script
?>
</BODY>
</HTML>
There is also a nifty php command that you can include into the test
program that will show how Apache is confiugred:
<?phpinfo()?>
(Pulled this out of the INSTALL.REDHAT file under PHP)
Also check out www.php.net/FAQ.php3
Hope this helps,
Greg Broten
Scientific Instrumentation LTd.
On Wed, 3 May 2000, Tanner, Robby wrote:
> Does anyone have a test script or web page or whatever that I can
> use to see if my Apache/PHP install is correct. I'm kind of new with this
> sort of thing and need some simple tools for testing to help me with
> understanding how these things interact.
>
> For example, if I double-click on a .php or .phtml file, does the
> web server send that page to the PHP module for processing and than forward
> the results to the web client? Or do I click on an .html page and the .php
> or .phtml is opened by the PHP module. Some of these subtleties may seem
> glaringly obvious to the more advanced, but I'm missing something.
>
> Anyway, thanks for listening and thanks for any help you can
> provide.
>
> -------------------------------------
>
> Robby Tanner B.E., B.Sc.
> Project Engineer
> Wardrop Technologies, Inc.
> 203-2121 Airport Dr.
> Saskatoon, SK
> Canada
> S7L 6W5
>
> Phone: (306) 244-4712
> Fax: (306) 244-4754
>
>
> --
> Saskatoon Linux Group Mailing List.
> --
> To unsubscribe, send mail to
> 'linux-request@slg.org' with
> 'unsubscribe' in the body.
>
-- Gregory Broten, P.Eng. (@ @) ( ^ )~^ Internet: broteng@home.com ==w==w=== [] Ph. No:(306) 652-5493 [] /||\ ================================================================ -- Saskatoon Linux Group Mailing List. -- To unsubscribe, send mail to 'linux-request@slg.org' with 'unsubscribe' in the body.Received on Wed May 3 11:29:46 2000
This archive was generated by hypermail 2.1.8 : Sun Jan 09 2005 - 13:53:59 CST