Hello,
I am a novice, so other people may have a better answer.
My guess is you have the test php program in a directory that PHP is not
allowed to get to (not the correct permissions), or you may have an
open_basedir problem.
In your php.ini config file, you should have an open_basedir variable set to
say c:\windows
That means you can only run your php script if it exists in the c:\windows
dir or further down the tree (ie c:\windows\temp)
So, if you have the test script in c:\myphpdir\myfirstprogram
It will not run because it is outside of the open_basedir starting point.
And also make sure the permissions are correct on the test script to allow
it to execute and be read.
If you have the phpinfo() script working, put your new test script in the
same directory, and make sure the permissions are the same as a functioning
php script.
I hope this helps, but I am sure other people have better ideas
"SubSonic" <tech.TakeThisOut@web4tunes.co.uk> wrote in message
news:jJTQc.832$4s.442@newsfe5-gui.ntli.net...
>I am to say the least confused... I am using Apache2 with php5... on a
> windows 2000 server.
>
> phpinfo() works
>
> however the following produces nothing
>
> <html>
> <head>
> <title>Test Page</title>
> </head>
> <body>
> <?php
> $this = "this";
> $that = "that";
> $the_other = 2.200000000;
>
> print "$this, $not_set, $that+$the_other<br>";
> ?>
> </body>
> </html>
>
> when I look at source of the browser I get the following...
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META http-equiv=Content-Type content="text/html;
> charset=iso-8859-1"></HEAD>
> <BODY></BODY></HTML>
>
> From the manule I am looking at in the browser I should see
>
> this,,that+2.2
>
> What am I missing here?
>
><!-- ~MESSAGE_AFTER~ -->