Like to use my html editor NVU

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lenbell

    Like to use my html editor NVU

    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





    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


  • Paul Lautman

    #2
    Re: Like to use my html editor NVU

    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

    >

    >
    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 I tried to program anything in php, I read the manual.

    Try it, it helps.


    Comment

    • Allodoxaphobia

      #3
      Re: Like to use my html editor NVU

      On Sun, 25 May 2008 10:16:57 -0400, 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
      First: This is not a PHP question. It is an editor issue.

      Second: You should upgrade to KompoZer -- a bug-fixed and
      enhanced version of the now unsupported Nvu:


      Third: Ask your question(s) in the KompoZer forums:

      Sign up and be rewarded with some Very Fine advice
      offered by a number of knowledgeable and patient folks.

      Your question(s) are pretty much an FAQ in the WYSIFA Forums.

      Jonesy
      --
      Marvin L Jones | jonz | W3DHJ | linux
      38.24N 104.55W | @ config.com | Jonesy | OS/2
      *** Killfiling google posts: <http://jonz.net/ng.htm>

      Comment

      • sheldonlg

        #4
        Re: Like to use my html editor NVU

        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
        >

        >

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

        Comment

        Working...