Re: Continuance of the struggle (trying to understand)

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

 



Col Day wrote:
> ""Col Day"" <colinday3@xxxxxxx> wrote in message
> news:23.81.45586.2820BAC4@xxxxxxxxxxxxxxx
>>    <html>
>>    <head>
>>    <title>PHP Test</title>
>>    </head>
>>    <body>
>>    <p>This is an HTML line
      </p> <!-- close your tag, you evil man! :-) -->
>>    <?php
>>       echo "<p>This is a PHP line</p>";
>>       phpinfo();
>>    ?>
>>    </body>
>>    </html>

> If I paste this into a webpage I only get the "HTML" line as before.

What do you mean, "webpage"? foo.php, for example, or foo.html? If the
latter then I am guessing your Apache will serve the page purely as
html, and it will never be processed by php. If the former then check
that Apache is configured to run php files through php before serving
them (must admit, I'm not sure how to do that, it depends on your Apache
and PHP). Or, really, just install xampp, it's by far the easiest way
and will avoid all the problems associated with configuring two rather
complex pieces of software.


-- 
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