View Single Post
  #2 (permalink)  
Old 03-21-09, 03:44 PM
de.monkeyz's Avatar
de.monkeyz de.monkeyz is offline
Wannabe Coder
 
Join Date: Apr 2008
Location: Leeds, UK
Posts: 116
Thanks: 0
Thanked 0 Times in 0 Posts
Are you setting the header inside the php file? For it to work, you have to tell the browser that the file is an image.

PHP Code:

header('Content-type:image/png'); 

That's if you're making a png file, it's be image/jpeg for jpegs and image/gif for gifs etc.
__________________
Wanna learn AJAX? Goto http://www.deathmonkeyz.com/tutorials for free video tutorials.

AJAX - Lesson 11 - AJAX Guestbook (23/8/08)
C++ - Lesson 10 - Classes (24/8/08)
JavaScript - Lesson 03 - The DOM (24/8/08)
Need an AJAX app? Look no further, I'm available for work
Reply With Quote