Re: tutorial failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



php is not processing the file.  There's a few reasons for this, but the
first thing I would check is the permissions of the file.  From the
directory try

$ ls -oa

This should tell you who owns the file and what it's permissions are.  You
mentioned that you copied it as root, you could change it's ownership to
www-data.

again from the directory try.

$ chown www-data test.php

then run ls -oa to ensure the change took place.


Chris.

On Wed, Aug 18, 2010 at 6:03 AM, e-letter <inpost@xxxxxxxxx> wrote:

> I changed the code as follows:
>
> <html>
>        <head>
>                <title>php test
>                </title>
>        </head>
>        <body>
>                 <?php phpinfo ?>
>                 <?php
>                        echo "<p>Hi, I am a PHP script</p>";
>                ?>
>                <p>
>                this is a test
>                </p>
>        </body>
> </html>
>
> The result (http://localhost/test.php):
>
> Hi, I am a PHP script
>
> "; ?>
>
> this is a test
>
> If I use single quotes characters:
>
> Hi, I am a PHP script
>
> '; ?>
>
> this is a test
>
> The phpinfo instruction does not seem to be recognised. What else
> should I check?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux