PHP GD images resizing question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bird
    Confirmed User
    • Jan 2005
    • 4365

    #1

    PHP GD images resizing question

    I have been generating thumbs with this PHP image resizer and I get a XHTML validation error at the first "&x="

    How can I get a string like

    images/thumb.php?src=imagesource.php&x=320&y=320

    to just be the name of an image like

    images/thumb123456.jpg
    ICQ:268731675
  • Tube Ace
    So Fucking Banned
    • Nov 2008
    • 4941

    #2
    It's an XHTML validation and not a PHP error?

    Can you give a URL of the script?

    Comment

    • StariaDaniel
      Confirmed User
      • Oct 2007
      • 415

      #3
      You've to replace the & with & amp ; (without spaces) to make the url xhtml valid

      If you want it to look like a .jpg file you could do this via .htaccess and mod_rewrite, but i don't see the sense there ;)
      Last edited by StariaDaniel; 03-12-2009, 01:24 PM.
      YezzClips.com - Sell your clips and photosets - Promote YezzClips Clipstores and get 20% revshare for life
      YooGirls.com - Sell your non-nude content - Promote Yoogirls Clipstores and get 20% revshare for life
      [email protected] • ICQ #464114379

      Comment

      • Bird
        Confirmed User
        • Jan 2005
        • 4365

        #4
        Originally posted by Tube Ace
        It's an XHTML validation and not a PHP error?

        Can you give a URL of the script?
        Yes it's XML Parsing Error: not well-formed

        XML Parsing Error: not well-formed
        Location: http://www.mobileshit.com/pbm/index....awoutput=xhtml
        Line Number 18, Column 74:<img src="thumb.php?src=http://www.playboygirls.com/PODWO/photos/12.jpg&w=770&h=300&f=0&q=80" alt="sorry" style="vertical-align:middle; border-style:none" /><br style="clear:both;" />
        -------------------------------------------------------------------------^

        http://www.mobileshit.com/pbm/index....awoutput=xhtml
        ICQ:268731675

        Comment

        • fris
          Too lazy to set a custom title
          • Aug 2002
          • 55679

          #5
          Code:
          <img src="thumb.php?src=http://www.playboygirls.com/PODWO/photos/12.jpg&amp;w=770&amp;h=300&amp;f=0&amp;q=80" alt="sorry" style="vertical-align:middle; border-style:none" /><br style="clear:both;" />
          Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

          Comment

          Working...