$X > $Y Problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bruce A. Julseth

    $X > $Y Problem

    I'm editing my PHP with MS Front Page and use PHP Rocket. The following is
    happening.

    In my code, I have:

    if ($X > $Y) { .......

    When I switch to "Normal" mode, all my PHP code beginning with $Y is
    displayed on the web page. NOTE: The PHP code does not show when I display
    in the browser.

    If I change to

    if($Y < $X) { .....

    The PHP code is not displayed in web page.




  • Alan Little

    #2
    Re: $X &gt; $Y Problem

    Carved in mystic runes upon the very living rock, the last words of
    Bruce A. Julseth of comp.lang.php make plain:
    [color=blue]
    > I'm editing my PHP with MS Front Page[/color]

    I'm sorry.
    [color=blue]
    > and use PHP Rocket. The following is happening.
    >
    > In my code, I have:
    >
    > if ($X > $Y) { .......
    >
    > When I switch to "Normal" mode, all my PHP code beginning with $Y is
    > displayed on the web page. NOTE: The PHP code does not show when I
    > display in the browser.[/color]

    This sounds more like a FrontPage and/or PHP Rocket problem than a PHP
    problem. If they have NG's you might have more luck asking there.

    --
    Alan Little
    Phorm PHP Form Processor

    Comment

    • David Robley

      #3
      Re: $X &gt; $Y Problem

      In article <3f9bf76f_3@new s1.prserv.net>, bruceaj@attglob al.net says...[color=blue]
      > I'm editing my PHP with MS Front Page and use PHP Rocket. The following is
      > happening.
      >
      > In my code, I have:
      >
      > if ($X > $Y) { .......
      >
      > When I switch to "Normal" mode, all my PHP code beginning with $Y is
      > displayed on the web page. NOTE: The PHP code does not show when I display
      > in the browser.
      >
      > If I change to
      >
      > if($Y < $X) { .....
      >
      > The PHP code is not displayed in web page.[/color]

      I imagine that < and > are being helpfully translated by FrontPage to &lt;
      and &gt; respectively - try a 'view source' on the page to see. If this is
      the case, I imgine there is some configuration adjustment required
      probably in FrontPage.

      --
      Quod subigo farinam

      $email =~ s/oz$/au/o;
      A: Because it messes up the order in which people normally read text.
      Q: Why is top-posting such a bad thing?
      A: Top-posting.
      Q: What is the most annoying thing on usenet?

      Comment

      Working...