GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP GD images resizing question (https://gfy.com/showthread.php?t=893269)

Bird 03-12-2009 02:04 PM

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

Tube Ace 03-12-2009 02:16 PM

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

Can you give a URL of the script?

StariaDaniel 03-12-2009 02:22 PM

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 ;)

Bird 03-12-2009 02:33 PM

Quote:

Originally Posted by Tube Ace (Post 15620002)
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

fris 03-12-2009 02:42 PM

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;" />


All times are GMT -7. The time now is 12:49 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123