![]() |
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 |
It's an XHTML validation and not a PHP error?
Can you give a URL of the script? |
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 ;) |
Quote:
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 |
Code:
<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;" /> |
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