Re: Intro to PHP question

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

 



Dave Goodchild wrote:
Of course it's possible to output raw html in a php file, that's one of it's
fundamental uses! In fact, it's more efficient to switch the php parser off
and send raw html as the php parser doesn't need to get involved.

Just to point out, the last person did not say to output html, he said to use html. There is a big difference when working things from he CLI.

each of the following examples worked for me

# cat ./cli.php
#!/usr/local/bin/php -q
<?php
echo "<html>";
echo "  <body>";
echo "          Hello World!";
echo "  </body>";
echo "</html>";
?>
# ./cli.php
<html>  <body>          Hello World!    </body></html>


# cat html.php
<html>
        <body>
        <?php echo "Hello World!"; ?>
        </body>
</html>
# php html.php
<html>
        <body>
        Hello World!    </body>
</html>


# cat php.php
<?php
echo "<html>";
echo "  <body>";
echo "          Hello World!";
echo "  </body>";
echo "</html>";
?>
# php php.php
<html>  <body>          Hello World!    </body></html>


--
Enjoy,

Jim Lucas

Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree.

- Rush

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