patawic Posted November 9, 2009 Share Posted November 9, 2009 i have a variable $image which contains the following url "http://tiles.xbox.com/tiles/oo/P5/0mdsb2JgbA9ECgR8GgMfWSpVL2ljb24vMC84MDAwIAABAAAAAP3Wg70=.jpg" but for some reason it is breaking my code by adding a space to the end of the url Warning: imagecreatefromjpeg(http://tiles.xbox.com/tiles/oo/P5/0mdsb2JgbA9ECgR8GgMfWSpVL2ljb24vMC84MDAwIAABAAAAAP3Wg70=.jpg ) [function.imagecreatefromjpeg]: failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found in /home/wutwillu/public_html/xbox/nxe/image.php on line 32 how can i remove this space? Link to comment https://forums.phpfreaks.com/topic/180825-removing-space-from-the-end-of-a-variable/ Share on other sites More sharing options...
trq Posted November 9, 2009 Share Posted November 9, 2009 trim. Link to comment https://forums.phpfreaks.com/topic/180825-removing-space-from-the-end-of-a-variable/#findComment-953975 Share on other sites More sharing options...
patawic Posted November 9, 2009 Author Share Posted November 9, 2009 nevermind. i got it, its because there was a line break in there. instead of a space(which is what i thought it was ) Link to comment https://forums.phpfreaks.com/topic/180825-removing-space-from-the-end-of-a-variable/#findComment-953976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.