Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-12-2009, 02:04 PM   #1
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
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
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-12-2009, 02:16 PM   #2
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
It's an XHTML validation and not a PHP error?

Can you give a URL of the script?
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-12-2009, 02:22 PM   #3
StariaDaniel
Confirmed User
 
Join Date: Oct 2007
Location: Netherlands
Posts: 415
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 at 02:24 PM..
StariaDaniel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-12-2009, 02:33 PM   #4
Bird
Confirmed User
 
Bird's Avatar
 
Join Date: Jan 2005
Location: Stockton
Posts: 4,365
Quote:
Originally Posted by Tube Ace View Post
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
Bird is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-12-2009, 02:42 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,287
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.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.