|
Posted by Anonymous on 02/11/06 12:30
Denebola wrote:
>
> I have to agree that I would not be happy working from a command
> prompt. I have written the simplest html page i can as follows:
>
> <html>
> <head>
> <title>simple php test</title>
> </head>
> <body>
> <?php
>
> echo( "Hello World!" ) ;
>
> ?>
>
> </body>
> </html>
>
> I have saved it in (index.html) the correct directory of my Abyss web
> server, but when I call the page in IE by typing
> http://localhost/index.html all I see is a blank page with the title
> 'simple php test'. It's almost as if the php part of the page is
> ignored. I have installed php onto my webserver as instructed in the
> abyss instructions. I'm very frustrated now. I'm probably missing a
> very simple step somewhere here. I will try to install the Apache lite
> version and try again. I'm determined to sort this out. Thanks for your
> advice, and keep it coming.
>
> Regards
I have to admit I have never heard of Abyss, I'm using Apache myself.
But your problem sounds like one of these two possibilities:
1) The webserver isn't configured to use PHP.
2) The webserver doesn't know that it should parse the file through PHP.
The solution to 2 is easy:
Webservers are usually configured to parse files that end in .php
through PHP, but not files that end in .html. So you either rename the
file to index.php or you reconfigure your webserver to also parse .html
files (the latter not recommended).
If that doesn't work you need to check the configuration of your
webserver. Check your webserver's manual. You don't need to read the PHP
manual yet, as it is a PHP command reference, which you will only need
once you start programming.
Bye!
Navigation:
[Reply to this message]
|