phpthumb - html/xhtml validation problem

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

    phpthumb - html/xhtml validation problem

    How can I get my webpage to validate to XHTML strict if I am using the
    commands as given in the phpthumb demo:

    <img src="../phpThumb.php?sr c=images/disk.jpg&w=200" >

    This gives validation errors as I'm not allowed the 'w' or other
    parameters.

    I wondered if it was possible to do something like this (bare with me)

    $thisThumb = phpThumb(src=im ages/disk.jpg&w=200) ;
    echo '<img src="'.$thisThu mb.'">;

    But I am unsure of what the variable will contain, I ideally want to
    create the thumbnail and for the result to be a string pointing to the
    location of said thumbnail.

    I've checked google but there doesn't seem to be any issues with using
    phpthumb and validating html. (Am I missing something) :)

    Thanks in advance for any replies. (p.s. please keep in on topic).

  • Karl Groves

    #2
    Re: phpthumb - html/xhtml validation problem

    peteski22@gmail .com wrote in news:1155652970 .767956.93180
    @i42g2000cwa.go oglegroups.com:
    How can I get my webpage to validate to XHTML strict if I am using the
    commands as given in the phpthumb demo:
    >
    <img src="../phpThumb.php?sr c=images/disk.jpg&w=200" >
    >
    This gives validation errors as I'm not allowed the 'w' or other
    parameters.

    The validation error is because of the ampersand.

    Use: <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w= 200">

    (if it is XHTML, use <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w=
    200" />

    You'll also need to supply an alt attribute to pass validation as well.

    --
    Karl Groves

    Comment

    • Rik

      #3
      Re: phpthumb - html/xhtml validation problem

      peteski22@gmail .com wrote:
      How can I get my webpage to validate to XHTML strict if I am using the
      commands as given in the phpthumb demo:
      >
      <img src="../phpThumb.php?sr c=images/disk.jpg&w=200" >
      >
      This gives validation errors as I'm not allowed the 'w' or other
      parameters.
      No, that's not the reason.
      <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w= 200">
      Will be valid.

      >
      I wondered if it was possible to do something like this (bare with me)
      >
      $thisThumb = phpThumb(src=im ages/disk.jpg&w=200) ;
      echo '<img src="'.$thisThu mb.'">;
      No.
      (p.s. please keep in on topic).
      Tssk, this is usenet, you know :-)

      Grtz,
      --
      Rik Wasmus


      Comment

      • peteski22@gmail.com

        #4
        Re: phpthumb - html/xhtml validation problem

        Karl, spot on!! sorry about that.. makes sense too. :) (thanks for the
        speedy reply).

        Thanks again
        Peteski
        (Php newbie)

        I get a 'literal is missing closing delimiter.' where the first / is
        following the
        Karl Groves wrote:
        peteski22@gmail .com wrote in news:1155652970 .767956.93180
        @i42g2000cwa.go oglegroups.com:
        >
        How can I get my webpage to validate to XHTML strict if I am using the
        commands as given in the phpthumb demo:

        <img src="../phpThumb.php?sr c=images/disk.jpg&w=200" >

        This gives validation errors as I'm not allowed the 'w' or other
        parameters.
        >
        >
        The validation error is because of the ampersand.
        >
        Use: <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w= 200">
        >
        (if it is XHTML, use <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w=
        200" />
        >
        You'll also need to supply an alt attribute to pass validation as well.
        >
        --
        Karl Groves
        www.karlcore.com

        Comment

        • peteski22@gmail.com

          #5
          Re: phpthumb - html/xhtml validation problem

          newshroup posting newbie also, please ignore the literal is missing
          closing delimeter comment, it was an accidental paste from the
          clipboard.

          petesk...@gmail .com wrote:
          Karl, spot on!! sorry about that.. makes sense too. :) (thanks for the
          speedy reply).
          >
          Thanks again
          Peteski
          (Php newbie)
          >
          I get a 'literal is missing closing delimiter.' where the first / is
          following the
          Karl Groves wrote:
          peteski22@gmail .com wrote in news:1155652970 .767956.93180
          @i42g2000cwa.go oglegroups.com:
          How can I get my webpage to validate to XHTML strict if I am using the
          commands as given in the phpthumb demo:
          >
          <img src="../phpThumb.php?sr c=images/disk.jpg&w=200" >
          >
          This gives validation errors as I'm not allowed the 'w' or other
          parameters.

          The validation error is because of the ampersand.

          Use: <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w= 200">

          (if it is XHTML, use <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w=
          200" />

          You'll also need to supply an alt attribute to pass validation as well.

          --
          Karl Groves
          www.karlcore.com

          Comment

          • peteski22@gmail.com

            #6
            Re: phpthumb - html/xhtml validation problem

            newsgroup posting newbie also, please ignore the literal is missing
            closing delimeter comment, it was an accidental paste from the
            clipboard.

            petesk...@gmail .com wrote:
            Karl, spot on!! sorry about that.. makes sense too. :) (thanks for the
            speedy reply).
            >
            Thanks again
            Peteski
            (Php newbie)
            >
            I get a 'literal is missing closing delimiter.' where the first / is
            following the
            Karl Groves wrote:
            peteski22@gmail .com wrote in news:1155652970 .767956.93180
            @i42g2000cwa.go oglegroups.com:
            How can I get my webpage to validate to XHTML strict if I am using the
            commands as given in the phpthumb demo:
            >
            <img src="../phpThumb.php?sr c=images/disk.jpg&w=200" >
            >
            This gives validation errors as I'm not allowed the 'w' or other
            parameters.

            The validation error is because of the ampersand.

            Use: <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w= 200">

            (if it is XHTML, use <img src="../phpThumb.php?sr c=images/disk.jpg&amp;w=
            200" />

            You'll also need to supply an alt attribute to pass validation as well.

            --
            Karl Groves
            www.karlcore.com

            Comment

            • Rik

              #7
              Re: phpthumb - html/xhtml validation problem

              peteski22@gmail .com wrote:
              newsgroup posting newbie also, please ignore the literal is missing
              closing delimeter comment, it was an accidental paste from the
              clipboard.

              Well, we'll forgive you if you promise to stop top-posting.

              Grtz,
              --
              Rik Wasmus


              Comment

              • Gary Hasler

                #8
                Re: phpthumb - html/xhtml validation problem

                Okay, I have to ask...why the "rule" against top posting? Personally I
                VERY much prefer it. And where can I find these rules; is there a FAQ?

                Rik wrote:
                Well, we'll forgive you if you promise to stop top-posting.

                Comment

                • Shelly

                  #9
                  Re: phpthumb - html/xhtml validation problem


                  "Gary Hasler" <garyhasler@the logconnection.c omwrote in message
                  news:44E23142.C 0058293@thelogc onnection.com.. .
                  Okay, I have to ask...why the "rule" against top posting? Personally I
                  VERY much prefer it. And where can I find these rules; is there a FAQ?
                  It is a commonly accepted convention. Most people to perefer to see a
                  comment immediately below the thing to which it is commenting. You are in
                  the very small minority. Note that this wa inline posting. If I had been
                  responding to several points in a larger post then you, the reader, would
                  have very little idea as to just which part I was responding. This way, it
                  is clear.

                  Shelly


                  Comment

                  • Rik

                    #10
                    Re: phpthumb - html/xhtml validation problem

                    Gary Hasler wrote:
                    >Well, we'll forgive you if you promise to stop top-posting.
                    Okay, I have to ask...why the "rule" against top posting? Personally
                    I VERY much prefer it. And where can I find these rules; is there a
                    FAQ?
                    Google for netiquette, there are hundreds of pages explaining it.
                    The main reason: keep the same flow in the conversation. The normal answer
                    of non-believers to that is:"But all the information is already in the post
                    before?!".

                    To this we say: Remember this is usenet, differnet newsservers, between
                    which a message can often be delayed for hours or even not arrive at all.
                    (Unfortunately, I detected that last problem a couple of times a week in
                    this ng, I'll have to contact my ISP about what's going on.) I may not be
                    able to see the message you're replying to, and allthough you quote, reading
                    from the bottom up is terribly annoying. Also, when setting a follow-up to a
                    more relevant newsgroup, it's nice to give the readers there a normal
                    starting point for the conversation.

                    Consider this flow:

                    Ah, now I see.
                    This is usenet, they might not be there.
                    >But why don't they first read the proevious posts then?
                    >>Well, It's a lot easier to read, and follows the
                    >>flow of the conversation
                    >>>Why do people keep asking me to toppost?
                    Grtz,
                    --
                    Rik Wasmus


                    Comment

                    • Rik

                      #11
                      Re: phpthumb - html/xhtml validation problem

                      Rik wrote:
                      >>>>Why do people keep asking me to toppost?
                      Euhm, to _stop_ toppost offcourse :-)

                      Grtz,
                      --
                      Rik Wasmus


                      Comment

                      • Default User

                        #12
                        Re: phpthumb - html/xhtml validation problem

                        Shelly wrote:
                        >
                        "Gary Hasler" <garyhasler@the logconnection.c omwrote in message
                        news:44E23142.C 0058293@thelogc onnection.com.. .
                        Okay, I have to ask...why the "rule" against top posting?
                        Personally I VERY much prefer it. And where can I find these
                        rules; is there a FAQ?
                        >
                        It is a commonly accepted convention. Most people to perefer to see
                        a comment immediately below the thing to which it is commenting.
                        You are in the very small minority. Note that this wa inline
                        posting. If I had been responding to several points in a larger post
                        then you, the reader, would have very little idea as to just which
                        part I was responding. This way, it is clear.
                        Here's a handy web site:

                        <http://www.caliburn.nl/topposting.html >




                        Brian

                        Comment

                        • Gary Hasler

                          #13
                          Re: phpthumb - html/xhtml validation problem

                          Rik wrote:
                          Google for netiquette, there are hundreds of pages explaining it.
                          Hmmm...from wikipedia:

                          "Objections to top-posting, as a rule, seem to come from persons who
                          first went online in the earlier days of Usenet, and in communities
                          that date to Usenet's early days. Among the most vehement communities
                          are those in the Usenet comp.lang hierarchy,.."

                          Well put!

                          Comment

                          • Rik

                            #14
                            Re: phpthumb - html/xhtml validation problem

                            Gary Hasler wrote:
                            Rik wrote:
                            >
                            >Google for netiquette, there are hundreds of pages explaining it.
                            >
                            Hmmm...from wikipedia:
                            >
                            "Objections to top-posting, as a rule, seem to come from persons
                            who first went online in the earlier days of Usenet, and in
                            communities that date to Usenet's early days. Among the most
                            vehement communities are those in the Usenet comp.lang
                            hierarchy,.."
                            >
                            Well put!
                            Well, the second argument is. It's probably derived from our our wish for
                            well-structured data. And according to the other link given in this
                            conversation, I'm even more strict because I'm dutch :-)

                            About being from the early days on internet. Hardly. I got my first computer
                            in 1999, my first usage of newsgroups dates back to 2003. But I know either
                            buggy or lagging newsservers, so I know what a pain it is to decypher what
                            an original question was, and tend to accomodate other users who might not
                            have seen the earlier post, in the hope they'll do the same for me.

                            Grtz,
                            --
                            Rik Wasmus


                            Comment

                            • Default User

                              #15
                              Re: phpthumb - html/xhtml validation problem

                              Gary Hasler wrote:

                              <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
                              Was this a, "what's even worse than top-posting example"?

                              *plonk*




                              Brian
                              --
                              Please don't top-post. Your replies belong following or interspersed
                              with properly trimmed quotes. See the majority of other posts in the
                              newsgroup, or:
                              <http://www.caliburn.nl/topposting.html >

                              Comment

                              Working...