by "real PHP program", I mean that normally
PHP program are launch by a web server like
Apache or IIS.
Which means that you have configured your web
server to "know" that to lauch a .php script,
it has to send it to the PHP interpreter.
It's not the web server itself which interpret
the PHP code.
In your context, that mean you have to
launch the PHP script "by hand", that's why
you need to lauch the PHP interpreter first,
telling him which PHP script you want to execute.
The PHP interpreter is an executable application
under your favorite OS.
Under Unix, you can also specify with a special
first line, who is responsible for interpreting
your file.
For instance , in a shell script, the first line
is often :
#!/bin/sh
which means that the command interpreter has
to lauch the "sh" program for interpreting the
current shell script.
You can do the same kind of things for PHP script
too.
Hervé.