php ignoring code after greater than sybmol

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dennis.mcknight@gmail.com

    php ignoring code after greater than sybmol

    new to php -- please help.

    it seems like php is treating any '>' character as the end of my code
    segment, even when it's embedded in a string, as shown

    <?
    $s="THIS IS MY TEST STRING";
    ?>

    please advise -- it seems like something stupid. i'm running with PHP
    5.1.4 + PECL on Apache 2.0.58.

    thanks!

  • Jerry Stuckle

    #2
    Re: php ignoring code after greater than sybmol

    dennis.mcknight @gmail.com wrote:
    new to php -- please help.
    >
    it seems like php is treating any '>' character as the end of my code
    segment, even when it's embedded in a string, as shown
    >
    <?
    $s="THIS IS MY TEST STRING";
    ?>
    >
    please advise -- it seems like something stupid. i'm running with PHP
    5.1.4 + PECL on Apache 2.0.58.
    >
    thanks!
    >
    Are you sure it's ignoring anything after the '>'? Or is in not working
    because short tags is off?

    Try using <?php to start your PHP code instead.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • dennis.mcknight@gmail.com

      #3
      Re: php ignoring code after greater than sybmol

      it was the short tags thing. i found it in php.ini.

      thanks!!!


      Jerry Stuckle wrote:
      dennis.mcknight @gmail.com wrote:
      new to php -- please help.

      it seems like php is treating any '>' character as the end of my code
      segment, even when it's embedded in a string, as shown

      <?
      $s="THIS IS MY TEST STRING";
      ?>

      please advise -- it seems like something stupid. i'm running with PHP
      5.1.4 + PECL on Apache 2.0.58.

      thanks!
      >
      Are you sure it's ignoring anything after the '>'? Or is in not working
      because short tags is off?
      >
      Try using <?php to start your PHP code instead.
      >
      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • Jerry Stuckle

        #4
        Re: php ignoring code after greater than sybmol

        dennis.mcknight @gmail.com wrote:
        it was the short tags thing. i found it in php.ini.
        >
        thanks!!!
        >
        >
        Jerry Stuckle wrote:
        >
        >>dennis.mcknig ht@gmail.com wrote:
        >>
        >>>new to php -- please help.
        >>>
        >>>it seems like php is treating any '>' character as the end of my code
        >>>segment, even when it's embedded in a string, as shown
        >>>
        >>><?
        >>>$s="THIS IS MY TEST STRING";
        >>>?>
        >>>
        >>>please advise -- it seems like something stupid. i'm running with PHP
        >>>5.1.4 + PECL on Apache 2.0.58.
        >>>
        >>>thanks!
        >>>
        >>
        >>Are you sure it's ignoring anything after the '>'? Or is in not working
        >>because short tags is off?
        >>
        >>Try using <?php to start your PHP code instead.
        >>
        >>--
        >>============= =====
        >>Remove the "x" from my email address
        >>Jerry Stuckle
        >>JDS Computer Training Corp.
        >>jstucklex@att global.net
        >>============= =====
        >
        >
        NP.

        It's not a good idea to run with short tags on. For one thing, it will
        conflict with XML code.

        Also, please don't top post. This group uses bottom posting as a standard.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • raedmsh@gmail.com

          #5
          Re: php ignoring code after greater than sybmol

          also you should use &gt; instead of specially in xhtml pages

          Comment

          Working...