removing space from the end of a variable


Posted on 16th Feb 2014 07:03 pm by admin

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
Code: 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
Did you know?Explore Trending and Topic pages for more stories like this.
how can i remove this space?
No comments posted yet

Your Answer:

Login to answer
93 Like 23 Dislike
Previous forums Next forums
Other forums

problem with query error
First Thanks to those who helped me on my previous posts, and the following code i'm using is not mi

mysql timestamp manipulation
How could I use a timestamp (e.g 2009-10-30 13:20:35 ), and with php find out if it is:

from

Display the user's weight lost in the past week
Hello everyone,

I am working on a weight loss app for my site, and I want to display the user

how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service

mr8m - reverse document
Friends,

I'm trying to reverse a document held by MIRO, but it reports the message balan

php slowing my site?
Hi all,

I think that one of the reasons that my site doesn't work fast is that the code is ve

If a form submits back to same page do you need to use $get
IM trying to pass page number and year that was selected back to the same page.

i have this c

Parse Error
Hi Guys,

I have a function in my class which returns a string link variable. The problem is i

Storing/displaying image urls in a database?
Hi
Basically I have the following scenario:
User chooses picture from list. Picture info is ad

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash