lenbell wrote:
When I create a html using my html editor and then insert php code I get odd
results. I've gotten rid of most but some remain. If I rename the file to
a .php it helps but still screws up. here are tow examples
http://dominatesoftware.com/tenets/Hello11.php
http://dominatesoftware.com/tenets/Hello1.html
Same exact code!
One more question
What the hell are these tokens
<?
?>
I see them in some sample code and they do seem to help in some of my code
but I have no idea what they do
(I can't seem to Google them either - probably the symbols <screw the
search)
Len Bell
Before asking in a php news group, perhaps should familiarize yourself
with the contents of PHP.101. Your questions fall into the DUH!!! category.
1 - To run as php, unless you do special stuff on the host, it MUST have
a php extension. Otherwise it won't recognize the file as a being a php
file. ALWAYS, repeat -- ALWAYS, end your php files with a php extension.
2 - The <? ?are referred to as short tags and should be avoided. Use
should use <?php ?>
3 - In a PHP file, the php code falls between the <?php and the ?tags
(or, the short tag version, <? and ?>, which, as I said above, should
be avoided in favor or the long tags.
4 - "Screws up" is not a very informative diagnostic.