Invoking a PHP script is pretty straight forward once you've set PHP up.
In the first instance, name your file with a .php
extension. Thereafter you insert code in a similar way to JSP. Some examples:
PHP info | The basic script to tell you your PHP installation has worked |
MySQL | talk to your MySQL database |
This PHP script should print out the basic info about your PHP installation.
Note the <?
and ?>
delimiters which introduce PHP code.
Suppose you have set up your test_user
identified by
their test_password
with access to your
test_table
in your test_db
.
Copyright 2002 Lunanbay Limited. All rights reserved.