PHP Code Not Understood

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

    PHP Code Not Understood

    I picked up someone elses code and it has the following in it:

    $curr_cat_name = <<< END

    in this area there is some unquoted HTML, followed by

    END:

    My Apache server doesn't like it.

    Can someone tell me what I'm looking at and what to I need to do so that my
    Apache server likes it.

    Thanks...


  • jamen

    #2
    Re: PHP Code Not Understood

    Bruce A. Julseth wrote:[color=blue]
    > I picked up someone elses code and it has the following in it:
    >
    > $curr_cat_name = <<< END
    >
    > in this area there is some unquoted HTML, followed by
    >
    > END:
    >
    > My Apache server doesn't like it.[/color]

    END;

    with a semicolon. And be aware:

    semicolon _must_ be the last character on this line after END, not even
    a space must be present

    Comment

    • Ewoud Dronkert

      #3
      Re: PHP Code Not Understood

      Bruce A. Julseth wrote:[color=blue]
      > $curr_cat_name = <<< END
      >
      > in this area there is some unquoted HTML, followed by
      >
      > END:[/color]



      --
      E. Dronkert

      Comment

      • Bruce A. Julseth

        #4
        Re: PHP Code Not Understood


        "Bruce A. Julseth" <bruceajNoSpam@ attglobal.net> wrote in message
        news:43511d3a_1 @news1.prserv.n et...[color=blue]
        >I picked up someone elses code and it has the following in it:
        >
        > $curr_cat_name = <<< END
        >
        > in this area there is some unquoted HTML, followed by
        >
        > END:
        >
        > My Apache server doesn't like it.
        >
        > Can someone tell me what I'm looking at and what to I need to do so that
        > my Apache server likes it.
        >
        > Thanks...
        >[/color]

        Thanks to all for the comeback. Great tool, Heredoc..

        Bruce


        Comment

        Working...